summaryrefslogtreecommitdiffstats
path: root/c/src/libchip/serial/ns16550_p.h
diff options
context:
space:
mode:
authorJennifer Averett <jennifer.averett@oarcorp.com>2012-02-23 10:40:33 -0600
committerJennifer Averett <jennifer.averett@oarcorp.com>2012-02-23 10:40:33 -0600
commit4f1173bcdeaadd1ca815922b59b1475cb475de63 (patch)
treec66d9c14b1d8f51b283a7bafcd9d6894a360e090 /c/src/libchip/serial/ns16550_p.h
parent2012-02-22 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-4f1173bcdeaadd1ca815922b59b1475cb475de63.tar.bz2
Avoid NULL dereference in printk() before libchip console initialized
With the addition of dynamically registered libchip serial devices, there is the need to be able to use printk() before the console driver has initialized the indirect pointer table. This lets printk() support routines call pass a control structure directly without a lookup through the uninitialized indirect one.
Diffstat (limited to '')
-rw-r--r--c/src/libchip/serial/ns16550_p.h32
1 files changed, 22 insertions, 10 deletions
diff --git a/c/src/libchip/serial/ns16550_p.h b/c/src/libchip/serial/ns16550_p.h
index 7a5fe1bad9..920023ca64 100644
--- a/c/src/libchip/serial/ns16550_p.h
+++ b/c/src/libchip/serial/ns16550_p.h
@@ -1,17 +1,29 @@
+/**
+ * @file
+ *
+ */
+
/*
* COPYRIGHT (c) 1998 by Radstone Technology
*
*
- * THIS FILE IS PROVIDED TO YOU, THE USER, "AS IS", WITHOUT WARRANTY OF ANY
- * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK
- * AS TO THE QUALITY AND PERFORMANCE OF ALL CODE IN THIS FILE IS WITH YOU.
+ * THIS FILE IS PROVIDED TO YOU, THE USER, "AS IS", WITHOUT WARRANTY OF ANY
+ * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK
+ * AS TO THE QUALITY AND PERFORMANCE OF ALL CODE IN THIS FILE IS WITH YOU.
*
- * You are hereby granted permission to use, copy, modify, and distribute
- * this file, provided that this notice, plus the above copyright notice
- * and disclaimer, appears in all copies. Radstone Technology will provide
- * no support for this code.
+ * You are hereby granted permission to use, copy, modify, and distribute
+ * this file, provided that this notice, plus the above copyright notice
+ * and disclaimer, appears in all copies. Radstone Technology will provide
+ * no support for this code.
*
+ * COPYRIGHT (c) 1989-2012.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
* $Id$
*/
@@ -190,8 +202,8 @@ NS16550_STATIC int ns16550_inbyte_nonblocking_polled(
);
NS16550_STATIC void ns16550_enable_interrupts(
- int minor,
- int mask
+ console_tbl *c,
+ int mask
);
NS16550_STATIC int ns16550_set_attributes(