<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2011-08-23)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>jennifer</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-08-23 Jennifer Averett <Jennifer.Averett@OARcorp.com>

        * Makefile.am, console/config.c: Resolved printk issues.
        * console/printk_support.c: New file.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/powerpc/ep1a/ChangeLog.diff?r1=text&tr1=1.95&r2=text&tr2=1.96&diff_format=h">M</a></td><td width='1%'>1.96</td><td width='100%'>c/src/lib/libbsp/powerpc/ep1a/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/powerpc/ep1a/Makefile.am.diff?r1=text&tr1=1.33&r2=text&tr2=1.34&diff_format=h">M</a></td><td width='1%'>1.34</td><td width='100%'>c/src/lib/libbsp/powerpc/ep1a/Makefile.am</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/powerpc/ep1a/console/config.c.diff?r1=text&tr1=1.8&r2=text&tr2=1.9&diff_format=h">M</a></td><td width='1%'>1.9</td><td width='100%'>c/src/lib/libbsp/powerpc/ep1a/console/config.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/powerpc/ep1a/console/printk_support.c?rev=1.1&content-type=text/vnd.viewcvs-markup">A</a></td><td width='1%'><font color="#000088">1.1</font></td><td width='100%'><font color="#000088">c/src/lib/libbsp/powerpc/ep1a/console/printk_support.c</font></td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/c/src/lib/libbsp/powerpc/ep1a/ChangeLog:1.95 rtems/c/src/lib/libbsp/powerpc/ep1a/ChangeLog:1.96
--- rtems/c/src/lib/libbsp/powerpc/ep1a/ChangeLog:1.95  Tue Aug 23 11:28:22 2011
+++ rtems/c/src/lib/libbsp/powerpc/ep1a/ChangeLog       Tue Aug 23 13:06:08 2011
</font><font color='#997700'>@@ -1,5 +1,10 @@
</font> 2011-08-23        Jennifer Averett <Jennifer.Averett@OARcorp.com>
 
<font color='#000088'>+   * Makefile.am, console/config.c: Resolved printk issues.
+       * console/printk_support.c: New file.
+
+2011-08-23     Jennifer Averett <Jennifer.Averett@OARcorp.com>
+
</font>   * Makefile.am: Removed console.c and linked to the shared console.c.
        Note: This change was verified through compilation only.
        * console/console.c: Removed.

<font color='#006600'>diff -u rtems/c/src/lib/libbsp/powerpc/ep1a/Makefile.am:1.33 rtems/c/src/lib/libbsp/powerpc/ep1a/Makefile.am:1.34
--- rtems/c/src/lib/libbsp/powerpc/ep1a/Makefile.am:1.33        Tue Aug 23 11:28:22 2011
+++ rtems/c/src/lib/libbsp/powerpc/ep1a/Makefile.am     Tue Aug 23 13:06:08 2011
</font><font color='#997700'>@@ -52,7 +52,8 @@
</font> # console
 libbsp_a_SOURCES += ../../shared/console.c console/ns16550cfg.c \
     console/mc68360_scc.c console/rsPMCQ1.c console/alloc360.c \
<font color='#880000'>-    console/init68360.c
</font><font color='#000088'>+    console/init68360.c console/config.c console/printk_support.c \
+    console/config.c
</font> 
 include_bsp_HEADERS += ../../powerpc/shared/openpic/openpic.h
 # openpic

<font color='#006600'>diff -u rtems/c/src/lib/libbsp/powerpc/ep1a/console/config.c:1.8 rtems/c/src/lib/libbsp/powerpc/ep1a/console/config.c:1.9
--- rtems/c/src/lib/libbsp/powerpc/ep1a/console/config.c:1.8    Sun Nov 29 22:25:26 2009
+++ rtems/c/src/lib/libbsp/powerpc/ep1a/console/config.c        Tue Aug 23 13:06:08 2011
</font><font color='#997700'>@@ -12,6 +12,7 @@
</font>  */
 
 #include <libchip/serial.h>
<font color='#000088'>+#include <libchip/ns16550.h>
</font> #include "ns16550cfg.h"
 #include <bsp.h>
 #include <libcpu/io.h>
<font color='#997700'>@@ -362,6 +363,13 @@
</font>         }
 };
 
<font color='#000088'>+/* rtems console uses the following minor number */
+rtems_device_minor_number  Console_Port_Minor = 0;
+
+#define NUM_CONSOLE_PORTS (sizeof(Console_Port_Tbl)/sizeof(console_tbl))
+unsigned long  Console_Port_Count = NUM_CONSOLE_PORTS;
+console_data    Console_Port_Data[NUM_CONSOLE_PORTS];
+
</font> static bool config_68360_scc_base_probe(int minor, unsigned long busNo, unsigned long slotNo, int channel)
 {
   M68360_t chip = M68360_chips;

<font color='#006600'>diff -u /dev/null rtems/c/src/lib/libbsp/powerpc/ep1a/console/printk_support.c:1.1
--- /dev/null   Tue Aug 23 13:12:47 2011
+++ rtems/c/src/lib/libbsp/powerpc/ep1a/console/printk_support.c        Tue Aug 23 13:06:08 2011
</font><font color='#997700'>@@ -0,0 +1,51 @@
</font><font color='#000088'>+/*
+ *  This file contains the ep1a printk support routines
+ *
+ *  COPYRIGHT (c) 2011.
+ *  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$
+ */
+
+#include <bsp.h>
+#include <rtems/libio.h>
+#include <stdlib.h>
+#include <assert.h>
+#include <termios.h>
+
+#include "console.h"
+#include <rtems/bspIo.h>
+
+/* const char arg to be compatible with BSP_output_char decl. */
+void
+debug_putc_onlcr(const char c)
+{
+  volatile int i;
+
+  /*
+   * Note:  Hack to get printk to work.  Depends upon bit
+   *        and silverchip to initialize the port and just
+   *        forces a character to be polled out of com1
+   *        regardless of where the console is.
+   */
+
+  volatile unsigned char *ptr = (void *)0xff800000;
+
+  if ('\n'==c){
+     *ptr = '\r';
+     __asm__ volatile("sync");
+     for (i=0;i<0x0fff;i++);
+  }
+
+  *ptr = c;
+  __asm__ volatile("sync");
+  for (i=0;i<0x0fff;i++);
+}
+
+BSP_output_char_function_type     BSP_output_char = debug_putc_onlcr;
+BSP_polling_getchar_function_type BSP_poll_char = NULL;
+
</font></pre>
<p> </p>

<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>