diff options
Diffstat (limited to 'src/include/cpu/x86')
-rw-r--r-- | src/include/cpu/x86/cr.h | 8 | ||||
-rw-r--r-- | src/include/cpu/x86/mtrr.h | 2 | ||||
-rw-r--r-- | src/include/cpu/x86/smm.h | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/include/cpu/x86/cr.h b/src/include/cpu/x86/cr.h index 175b1e84be..dafa791213 100644 --- a/src/include/cpu/x86/cr.h +++ b/src/include/cpu/x86/cr.h @@ -42,7 +42,7 @@ static alwaysinline CRx_TYPE read_cr0(void) CRx_TYPE value; __asm__ __volatile__ ( "mov %%cr0, %0" - : CRx_RET (value) + : CRx_RET(value) : : COMPILER_BARRIER ); @@ -54,7 +54,7 @@ static alwaysinline void write_cr0(CRx_TYPE data) __asm__ __volatile__ ( "mov %0, %%cr0" : - : CRx_IN (data) + : CRx_IN(data) : COMPILER_BARRIER ); } @@ -64,7 +64,7 @@ static alwaysinline CRx_TYPE read_cr4(void) CRx_TYPE value; __asm__ __volatile__ ( "mov %%cr4, %0" - : CRx_RET (value) + : CRx_RET(value) : : COMPILER_BARRIER ); @@ -76,7 +76,7 @@ static alwaysinline void write_cr4(CRx_TYPE data) __asm__ __volatile__ ( "mov %0, %%cr4" : - : CRx_IN (data) + : CRx_IN(data) : COMPILER_BARRIER ); } diff --git a/src/include/cpu/x86/mtrr.h b/src/include/cpu/x86/mtrr.h index ddafc1eec3..e4e1f9b8e5 100644 --- a/src/include/cpu/x86/mtrr.h +++ b/src/include/cpu/x86/mtrr.h @@ -43,7 +43,7 @@ #define MTRR_FIX_4K_F0000 0x26e #define MTRR_FIX_4K_F8000 0x26f -#if !defined (__ASSEMBLER__) && !defined(__PRE_RAM__) +#if !defined(__ASSEMBLER__) && !defined(__PRE_RAM__) #include <stdint.h> #include <stddef.h> diff --git a/src/include/cpu/x86/smm.h b/src/include/cpu/x86/smm.h index 0489ece917..f07cac35cf 100644 --- a/src/include/cpu/x86/smm.h +++ b/src/include/cpu/x86/smm.h @@ -511,7 +511,7 @@ struct smm_module_params { }; /* smm_handler_t is called with arg of smm_module_params pointer. */ -typedef void asmlinkage (*smm_handler_t)(void *); +typedef asmlinkage void (*smm_handler_t)(void *); #ifdef __SMM__ /* SMM Runtime helpers. */ |