[coreboot] New patch to review for coreboot: af46000 Add a notifier just before entering payload

Kyösti Mälkki (kyosti.malkki@gmail.com) gerrit at coreboot.org
Thu Aug 2 14:00:19 CEST 2012

Kyösti Mälkki (kyosti.malkki at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/1395


commit af46000277c86642890af68262110a5e153f9be8
Author: Kyösti Mälkki <kyosti.malkki at gmail.com>
Date:   Thu Aug 2 09:46:54 2012 +0300

    Add a notifier just before entering payload
    Mainboard code may want to update POST display / LEDs / play
    fanfare once it has succesfully loaded the payload.
    Change-Id: I6abd3ce883f07d09a0c7ddec745f388e95b8a7e9
    Signed-off-by: Kyösti Mälkki <kyosti.malkki at gmail.com>
 src/boot/hardwaremain.c     |    3 +++
 src/include/device/device.h |    1 +
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/boot/hardwaremain.c b/src/boot/hardwaremain.c
index bb7f264..57a01f0 100644
--- a/src/boot/hardwaremain.c
+++ b/src/boot/hardwaremain.c
@@ -150,6 +150,9 @@ void hardwaremain(int boot_complete)
 	if (! payload)
 		die("Could not find a payload\n");
+	if (mainboard_coreboot_completed)
+		mainboard_coreboot_completed();
 	printk(BIOS_DEBUG, "Got a payload\n");
 	/* Before we go off to run the payload, see if
 	 * we stayed within our bounds.
diff --git a/src/include/device/device.h b/src/include/device/device.h
index eaf84c6..ceae6aa 100644
--- a/src/include/device/device.h
+++ b/src/include/device/device.h
@@ -123,6 +123,7 @@ void dev_configure(void);
 void dev_enable(void);
 void dev_initialize(void);
 void dev_optimize(void);
+void __attribute__((weak)) mainboard_coreboot_completed(void);
 /* Generic device helper functions */
 int reset_bus(struct bus *bus);

More information about the coreboot mailing list