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>
This commit is contained in:
parent
465eff61f4
commit
a969ed34db
9 changed files with 17 additions and 8 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue