diff options
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/x86/include/arch/early_variables.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/arch/x86/include/arch/early_variables.h b/src/arch/x86/include/arch/early_variables.h index ba7df97059..ea1a133ae0 100644 --- a/src/arch/x86/include/arch/early_variables.h +++ b/src/arch/x86/include/arch/early_variables.h @@ -21,8 +21,12 @@ #define ARCH_EARLY_VARIABLES_H #ifdef __PRE_RAM__ -#define CAR_GLOBAL __attribute__((section(".car.global_data,\"w\",@nobits#"))) -#define CAR_CBMEM __attribute__((section(".car.cbmem_console,\"w\",@nobits#"))) +asm(".section .car.global_data,\"w\",@nobits"); +asm(".previous"); +asm(".section .car.cbmem_console,\"w\",@nobits"); +asm(".previous"); +#define CAR_GLOBAL __attribute__((section(".car.global_data"))) +#define CAR_CBMEM __attribute__((section(".car.cbmem_console"))) #else #define CAR_GLOBAL #define CAR_CBMEM |