make all drivers relocatable. Per default, an 1:1 mapping is assumed.
[coreboot.git] / payloads / libpayload / i386 / coreboot.c
index af76f182fc6bbd27d7712f50d30b33ed4cc00058..d27e0f3abbe18055c876c0e9afcee0503e5f8d13 100644 (file)
@@ -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;
 }