From 59f6bd12ba4f2fe97cab6544a3b103ca57b59f77 Mon Sep 17 00:00:00 2001 From: Mark Cave-Ayland Date: Fri, 5 Apr 2013 09:35:08 +0000 Subject: [PATCH] loader: implement new loader type for CHRP/Apple partition bootcode (%BOOT) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit One of the primary reasons that issues with the quik bootloader were not detected earlier was because arch/ppc/qemu/main.c has a separate code path for forcing an old-world boot when -boot c is passed to QEMU. This commit implements the bootcode loader as a core OpenBIOS loader which enables old-world payloads such as quik to be executed using: load hd:,%BOOT go Note that we also fix a bug in mac-parts.c to ensure that we don't try and interpose a filesystem package when %BOOT is passed as a filename. Signed-off-by: Mark Cave-Ayland CC: Alexander Graf CC: Andreas Färber git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1105 f158a5a8-5612-0410-a976-696ce0be7e32 --- config/examples/ppc_config.xml | 1 + forth/debugging/client.fs | 4 ++ include/libopenbios/bootcode_load.h | 22 +++++++++ libopenbios/bootcode_load.c | 71 +++++++++++++++++++++++++++++ libopenbios/build.xml | 1 + libopenbios/load.c | 13 ++++++ packages/mac-parts.c | 16 +++---- 7 files changed, 119 insertions(+), 9 deletions(-) create mode 100644 include/libopenbios/bootcode_load.h create mode 100644 libopenbios/bootcode_load.c diff --git a/config/examples/ppc_config.xml b/config/examples/ppc_config.xml index ccb616d..5bb789f 100644 --- a/config/examples/ppc_config.xml +++ b/config/examples/ppc_config.xml @@ -26,6 +26,7 @@