Replace cache control magic numbers with symbols
Instead of opaque numbers like (1<<29), use symbols like CR0_NoWriteThrough. Change-Id: Id845e087fb472cfaf5f71beaf37fbf0d407880b5 Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/833 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
committed by
Stefan Reinauer
parent
8919729307
commit
05e740fc40
@ -20,6 +20,11 @@
|
||||
#ifndef CPU_X86_CACHE
|
||||
#define CPU_X86_CACHE
|
||||
|
||||
#define CR0_CacheDisable (1 << 30)
|
||||
#define CR0_NoWriteThrough (1 << 29)
|
||||
|
||||
#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:
|
||||
@ -107,4 +112,5 @@ static inline __attribute__((always_inline)) void disable_cache(void)
|
||||
void x86_enable_cache(void);
|
||||
#endif
|
||||
|
||||
#endif /* !__ASSEMBLER__ */
|
||||
#endif /* CPU_X86_CACHE */
|
||||
|
Reference in New Issue
Block a user