summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2019-06-26 20:17:50 +0200
committerMartin Roth <martinroth@google.com>2019-07-02 16:14:36 +0000
commit63f98f23045e072b0d07ecdd4cd50d01ad844df7 (patch)
treecd0cff2a76b8b44b9563de0cf63f2e8b831e9735 /src/include
parent7803e487bdd64ec0f1a8a17a483a4298d38bb77a (diff)
downloadcoreboot-63f98f23045e072b0d07ecdd4cd50d01ad844df7.tar.xz
src: Use CRx_TYPE type for CRx
Change-Id: If50d9218119d5446d0ce98b8a9297b23bae65c72 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33816 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/cpu/x86/cache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/cpu/x86/cache.h b/src/include/cpu/x86/cache.h
index c8d26abad4..7f135e5390 100644
--- a/src/include/cpu/x86/cache.h
+++ b/src/include/cpu/x86/cache.h
@@ -67,7 +67,7 @@ static inline void clflush(void *addr)
*/
static __always_inline void enable_cache(void)
{
- unsigned long cr0;
+ CRx_TYPE cr0;
cr0 = read_cr0();
cr0 &= ~(CR0_CD | CR0_NW);
write_cr0(cr0);
@@ -76,7 +76,7 @@ static __always_inline void enable_cache(void)
static __always_inline void disable_cache(void)
{
/* Disable and write back the cache */
- unsigned long cr0;
+ CRx_TYPE cr0;
cr0 = read_cr0();
cr0 |= CR0_CD;
wbinvd();