[PATCH] libpayload: rename config.h to libpayload-config.h
[coreboot.git] / payloads / libpayload / i386 / coreboot.c
index 97589261a57dd410a57dcfcbc901e689819efdd2..2a675afbe69b2fae28a63333016bb3de5be60876 100644 (file)
@@ -27,6 +27,7 @@
  * SUCH DAMAGE.
  */
 
+#include <libpayload-config.h>
 #include <libpayload.h>
 #include <coreboot_tables.h>
 
@@ -151,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;
 }