Drop ROMCC code and header guards
Change-Id: I730f80afd8aad250f26534435aec24bea75a849c Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/37334 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
This commit is contained in:
committed by
Kyösti Mälkki
parent
4f66cb9b28
commit
1cb9cd5798
@ -23,28 +23,11 @@
|
||||
|
||||
#if !defined(__ASSEMBLER__)
|
||||
|
||||
/*
|
||||
* Need two versions because ROMCC chokes on certain clobbers:
|
||||
* cache.h:29.71: cache.h:60.24: earlymtrr.c:117.23: romstage.c:144.33:
|
||||
* 0x1559920 asm Internal compiler error: lhs 1 regcm == 0
|
||||
*/
|
||||
|
||||
#if defined(__GNUC__)
|
||||
|
||||
static inline void wbinvd(void)
|
||||
{
|
||||
asm volatile ("wbinvd" ::: "memory");
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
static inline void wbinvd(void)
|
||||
{
|
||||
asm volatile ("wbinvd");
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
static inline void invd(void)
|
||||
{
|
||||
asm volatile("invd" ::: "memory");
|
||||
|
Reference in New Issue
Block a user