[OpenBIOS] [commit] r1292 - trunk/openbios-devel/drivers

repository service svn at openbios.org
Mon May 12 17:43:44 CEST 2014


Author: mcayland
Date: Mon May 12 17:43:44 2014
New Revision: 1292
URL: http://tracker.coreboot.org/trac/openbios/changeset/1292

Log:
pc_serial.c: fix up missing address property

Create the missing address property for the PC serial port, otherwise
pc_serial_open() will dereference a NULL pointer when opening the serial port
device.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland at ilande.co.uk>

Modified:
   trunk/openbios-devel/drivers/pc_serial.c

Modified: trunk/openbios-devel/drivers/pc_serial.c
==============================================================================
--- trunk/openbios-devel/drivers/pc_serial.c	Mon May 12 17:43:41 2014	(r1291)
+++ trunk/openbios-devel/drivers/pc_serial.c	Mon May 12 17:43:44 2014	(r1292)
@@ -190,6 +190,12 @@
     fword("encode+");
     push_str("reg");
     fword("property");
+    
+    PUSH(offset);
+    fword("encode-int");
+    push_str("address");
+    fword("property");
+    
 #if defined(CONFIG_SPARC64)
     set_int_property(get_cur_dev(), "interrupts", 1);
 #endif



More information about the OpenBIOS mailing list