diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2016-06-15 06:08:15 +0300 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2016-06-17 00:19:08 +0200 |
commit | a969ed34dbaebc595e298f60810669f0e8a3bcd2 (patch) | |
tree | f55750965fb4f87db09d73e4571f28eb20a59964 /src/arch/x86 | |
parent | 465eff61f4f0f730476aa7afe8819f1e6b118068 (diff) |
Move definitions of HIGH_MEMORY_SAVE
This is more of ACPI S3 resume and x86 definition than CBMEM.
Change-Id: Iffbfb2e30ab5ea0b736e5626f51c86c7452f3129
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/15190
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/arch/x86')
-rw-r--r-- | src/arch/x86/include/arch/acpi.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/arch/x86/include/arch/acpi.h b/src/arch/x86/include/arch/acpi.h index 276ca5210d..5674c3a240 100644 --- a/src/arch/x86/include/arch/acpi.h +++ b/src/arch/x86/include/arch/acpi.h @@ -24,6 +24,14 @@ #ifndef __ASM_ACPI_H #define __ASM_ACPI_H +#if IS_ENABLED(CONFIG_HAVE_ACPI_RESUME) && \ + ! IS_ENABLED(CONFIG_RELOCATABLE_RAMSTAGE) +#define HIGH_MEMORY_SAVE (CONFIG_RAMTOP - CONFIG_RAMBASE) +#else +#define HIGH_MEMORY_SAVE 0 +#endif + +#ifndef __ASSEMBLER__ #include <stdint.h> #include <rules.h> #include <commonlib/helpers.h> @@ -643,4 +651,6 @@ static inline uintptr_t acpi_align_current(uintptr_t current) return ALIGN(current, 16); } +#endif /* __ASSEMBLER__ */ + #endif /* __ASM_ACPI_H */ |