aboutsummaryrefslogtreecommitdiff
path: root/core/platform.c
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2016-12-21 15:52:30 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-01-04 17:15:57 +1100
commitf332fb40baa5da03ee7db4deaa1eb589f21272f0 (patch)
treec337dec7aa71590122c6f5abe2f1e51a157e7bee /core/platform.c
parent6f7bd78463e051dad239b349caf5dd641e2a4dd7 (diff)
downloadskiboot-f332fb40baa5da03ee7db4deaa1eb589f21272f0.zip
skiboot-f332fb40baa5da03ee7db4deaa1eb589f21272f0.tar.gz
skiboot-f332fb40baa5da03ee7db4deaa1eb589f21272f0.tar.bz2
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 <oohall@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/platform.c')
-rw-r--r--core/platform.c4
1 files changed, 1 insertions, 3 deletions
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();