include/cpu/x86: Add clflush inline function
Change-Id: I74c5cc22f02302314ba010bc599051c1495a13cb Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com> Reviewed-on: https://review.coreboot.org/22848 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
d1cc3c213f
commit
1731a33e32
|
@ -50,6 +50,11 @@ static inline void invd(void)
|
|||
asm volatile("invd" ::: "memory");
|
||||
}
|
||||
|
||||
static inline void clflush(void *addr)
|
||||
{
|
||||
asm volatile ("clflush (%0)"::"r" (addr));
|
||||
}
|
||||
|
||||
/* The following functions require the always_inline due to AMD
|
||||
* function STOP_CAR_AND_CPU that disables cache as
|
||||
* RAM, the cache as RAM stack can no longer be used. Called
|
||||
|
|
Loading…
Reference in New Issue