Stefan Reinauer (stefan.reinauer@coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/1693
-gerrit
commit ee375c7c97fceb2b8d6f080fa33aecd9e17d509e Author: Stefan Reinauer reinauer@chromium.org Date: Tue Aug 7 13:14:20 2012 -0700
Add POST code for "All devices initialized"
Right now we only had a post code for "All devices enabled" which was emitted at the wrong time (after the device initialize stage rather than the device enable stage)
Change-Id: Iee82bff020de844c7095703f8d6521953003032c Signed-off-by: Stefan Reinauer reinauer@google.com --- src/boot/hardwaremain.c | 3 ++- src/include/console/post_codes.h | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/src/boot/hardwaremain.c b/src/boot/hardwaremain.c index 099ab3a..8348493 100644 --- a/src/boot/hardwaremain.c +++ b/src/boot/hardwaremain.c @@ -102,13 +102,14 @@ void hardwaremain(int boot_complete) #endif /* Now actually enable devices on the bus */ dev_enable(); + post_code(POST_DEVICES_ENABLED);
#if CONFIG_COLLECT_TIMESTAMPS timestamps[4] = rdtsc(); #endif /* And of course initialize devices on the bus */ dev_initialize(); - post_code(POST_DEVICES_ENABLED); + post_code(POST_DEVICES_INITIALIZED);
#if CONFIG_COLLECT_TIMESTAMPS timestamps[5] = rdtsc(); diff --git a/src/include/console/post_codes.h b/src/include/console/post_codes.h index 1d12e5a..c716b72 100644 --- a/src/include/console/post_codes.h +++ b/src/include/console/post_codes.h @@ -134,6 +134,13 @@ #define POST_DEVICES_ENABLED 0x89
/** + * \brief Devices have been initialized + * + * Devices have been initialized. + */ +#define POST_DEVICES_INITIALIZED 0x8a + +/** * \brief Entry into elf boot * * This POST code is called right before invoking jmp_to_elf_entry()