summaryrefslogtreecommitdiff
path: root/payloads/libpayload/i386/coreboot.c
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2008-08-19 17:49:53 +0000
committerStefan Reinauer <stepan@openbios.org>2008-08-19 17:49:53 +0000
commit99c085690365fa7af18863be292d7ada32fcf53a (patch)
tree8c305cfb60e6cb7e95bfe99321070528c7a5e649 /payloads/libpayload/i386/coreboot.c
parentaddf443e1206f04e46828ac4f19a04788a8046fc (diff)
make all drivers relocatable. Per default, an 1:1 mapping is assumed.
Patch to add relocation to libpayload will follow. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Jordan Crouse <jordan.crouse@amd.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3524 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads/libpayload/i386/coreboot.c')
-rw-r--r--payloads/libpayload/i386/coreboot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/payloads/libpayload/i386/coreboot.c b/payloads/libpayload/i386/coreboot.c
index af76f182fc..d27e0f3abb 100644
--- a/payloads/libpayload/i386/coreboot.c
+++ b/payloads/libpayload/i386/coreboot.c
@@ -152,10 +152,10 @@ static int cb_parse_header(void *addr, int len, struct sysinfo_t *info)
int get_coreboot_info(struct sysinfo_t *info)
{
- int ret = cb_parse_header((void *)0x0, 0x1000, info);
+ int ret = cb_parse_header(phys_to_virt(0x00000000), 0x1000, info);
if (ret != 1)
- ret = cb_parse_header((void *)0xf0000, 0x1000, info);
+ ret = cb_parse_header(phys_to_virt(0x000f0000), 0x1000, info);
return (ret == 1) ? 0 : -1;
}