nb/intel/x4x/rcven.c: Rename memory barrier function
Use the name of the assembly instruction it uses, mfence. Change-Id: I98d7926434694a41fb6415bed4276741fa7996af Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/43822 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
This commit is contained in:
parent
4ea1d166a5
commit
879c4de66f
|
@ -19,7 +19,7 @@ struct rec_timing {
|
||||||
u8 tap;
|
u8 tap;
|
||||||
};
|
};
|
||||||
|
|
||||||
static inline void barrier(void)
|
static inline void mfence(void)
|
||||||
{
|
{
|
||||||
asm volatile("mfence":::);
|
asm volatile("mfence":::);
|
||||||
}
|
}
|
||||||
|
@ -33,10 +33,10 @@ static u8 sampledqs(u32 addr, u8 lane, u8 channel)
|
||||||
udelay(2);
|
udelay(2);
|
||||||
MCHBAR8(RESET_CNTL(channel)) |= 0x2;
|
MCHBAR8(RESET_CNTL(channel)) |= 0x2;
|
||||||
udelay(2);
|
udelay(2);
|
||||||
barrier();
|
mfence();
|
||||||
/* Read strobe */
|
/* Read strobe */
|
||||||
read32((u32 *)addr);
|
read32((u32 *)addr);
|
||||||
barrier();
|
mfence();
|
||||||
return (MCHBAR8(sample_offset) >> 6) & 1;
|
return (MCHBAR8(sample_offset) >> 6) & 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue