aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2019-07-22 12:55:48 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2019-07-22 13:02:00 +0200
commita56aa64ed030a30377931a13a3da98a8419326ca (patch)
tree0e8b4044319305e0a1a422441c060e29d80c0f6a /main.c
parentab6d7ee29d95ecee28190644f8d001b08d480b34 (diff)
downloadqboot-a56aa64ed030a30377931a13a3da98a8419326ca.zip
qboot-a56aa64ed030a30377931a13a3da98a8419326ca.tar.gz
qboot-a56aa64ed030a30377931a13a3da98a8419326ca.tar.bz2
drop cbfs experiment
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'main.c')
-rw-r--r--main.c19
1 files changed, 4 insertions, 15 deletions
diff --git a/main.c b/main.c
index 8ac2a68..547712c 100644
--- a/main.c
+++ b/main.c
@@ -77,17 +77,6 @@ static void extract_e820(void)
e820_seg = ((uintptr_t) e820) >> 4;
}
-static bool detect_cbfs_and_boot(void)
-{
- size_t sz;
- void *base = pflash_base(1, &sz);
-
- if (!base)
- return false;
-
- return boot_from_cbfs(base, sz);
-}
-
int __attribute__ ((section (".text.startup"))) main(void)
{
#ifdef BENCHMARK_HACK
@@ -95,8 +84,9 @@ int __attribute__ ((section (".text.startup"))) main(void)
#endif
setup_hw();
- // Now go to the F-segment: we need to move away from flash area
- // in order to probe CBFS!
+ // Only the 16-bit trampoline for vmlinuz and the 16-bit interrupt
+ // handlers need to run from the F-segment, but keep things simple
+ // and jump there. From this point we can modify global variables.
asm("ljmp $0x8, $1f; 1:");
have_mmconfig = setup_mmconfig();
@@ -106,7 +96,6 @@ int __attribute__ ((section (".text.startup"))) main(void)
extract_acpi();
extract_e820();
// extract_smbios();
- if (!detect_cbfs_and_boot())
- boot_from_fwcfg();
+ boot_from_fwcfg();
panic();
}