From 48a4a7f24453e8fd0672146d78d7790539c6a2f8 Mon Sep 17 00:00:00 2001 From: Vadim Bendebury Date: Thu, 7 Jun 2012 18:47:13 -0700 Subject: Provide MRC with a console printing callback function Let memory initialization code use the coreboot romstage console. This simplifies the code and makes sure that all output is available in /sys/firmware/log. The pei_data structure is modified to allow passing the console output function pointer. Romstage console_tx_byte() is used for this purpose. Change-Id: I722cfcb9ff0cf527c12cb6cac09d77ef17b588e0 Signed-off-by: Vadim Bendebury Reviewed-on: http://review.coreboot.org/1823 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth Reviewed-by: Ronald G. Minnich --- src/include/console/console.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/console/console.h b/src/include/console/console.h index 00be96f80f..375e5a42f9 100644 --- a/src/include/console/console.h +++ b/src/include/console/console.h @@ -38,7 +38,6 @@ #endif #ifndef __PRE_RAM__ -void console_tx_byte(unsigned char byte); void console_tx_flush(void); unsigned char console_rx_byte(void); int console_tst_byte(void); @@ -68,6 +67,7 @@ extern int console_loglevel; #ifndef __ROMCC__ void console_init(void); +void console_tx_byte(unsigned char byte); void post_code(u8 value); /* this function is weak and can be overridden by a mainboard function. */ void mainboard_post(u8 value); -- cgit v1.2.3