From f332fb40baa5da03ee7db4deaa1eb589f21272f0 Mon Sep 17 00:00:00 2001 From: Oliver O'Halloran Date: Wed, 21 Dec 2016 15:52:30 +1100 Subject: console: use opal_con_ops API Adds a new structure that contains the implementations of the various OPAL console handlers. This is intended to replace the existing ad-hoc mechanism where the OPAL call handlers are overwritten in the OPAL console driver's init function. Currently this just moves the site where the OPAL call handlers are overwritten to inside of console.c, but it is intended to give us a mechanism for implementing features such as pointer validation for the OPAL console calls without having to manually update each driver. This also helps to clarify differences between the internal (skiboot) console and the external (OPAL) console. Signed-off-by: Oliver O'Halloran Signed-off-by: Stewart Smith --- core/platform.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'core/platform.c') diff --git a/core/platform.c b/core/platform.c index 838dfd6..bde3932 100644 --- a/core/platform.c +++ b/core/platform.c @@ -114,9 +114,7 @@ static bool generic_platform_probe(void) static void generic_platform_init(void) { if (uart_enabled()) - uart_setup_opal_console(); - else - force_dummy_console(); + set_opal_console(&uart_opal_con); /* Enable a BT interface if we find one too */ bt_init(); -- cgit v1.1