diff options
author | Stefan Reinauer <reinauer@chromium.org> | 2012-10-12 18:48:45 +0000 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2012-11-30 13:44:03 -0800 |
commit | 93c1735f41aa290c7f3ebc8545ccc8d9edd9f22f (patch) | |
tree | 7e8d12e0705a9692e6931253a77184fd8e349868 /arch/x86/cpu/coreboot/tables.c | |
parent | b8715d8def240014da5614a4f940130ec06d9ebf (diff) |
x86: coreboot: Drop sysinfo.c
sysinfo.c only contains the lib_sysinfo data structure which
is used/filled by tables.c. This split was introduced by importing
code from libpayload originally, but to keep the code simple, add
the single line of actual code to tables.c
Signed-off-by: Stefan Reinauer <reinauer@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/cpu/coreboot/tables.c')
-rw-r--r-- | arch/x86/cpu/coreboot/tables.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/cpu/coreboot/tables.c b/arch/x86/cpu/coreboot/tables.c index 0e3451bb22..25ca50ded1 100644 --- a/arch/x86/cpu/coreboot/tables.c +++ b/arch/x86/cpu/coreboot/tables.c @@ -33,6 +33,14 @@ #include <asm/arch-coreboot/tables.h> /* + * This needs to be in the .data section so that it's copied over during + * relocation. By default it's put in the .bss section which is simply filled + * with zeroes when transitioning from "ROM", which is really RAM, to other + * RAM. + */ +struct sysinfo_t lib_sysinfo __attribute__((section(".data"))); + +/* * Some of this is x86 specific, and the rest of it is generic. Right now, * since we only support x86, we'll avoid trying to make lots of infrastructure * we don't need. If in the future, we want to use coreboot on some other |