change log for rtems (2010-04-28)

rtems-vc at rtems.org rtems-vc at rtems.org
Wed Apr 28 19:11:11 UTC 2010


 *joel*:
2010-04-28	Joel Sherrill <joel.sherrilL at OARcorp.com>

	* shared/bootloader/em86.c, shared/bootloader/mm.c,
	shared/console/polled_io.c, shared/irq/irq_init.c,
	shared/startup/bspstart.c: Remove warnings.

M  1.233  c/src/lib/libbsp/powerpc/ChangeLog
M    1.9  c/src/lib/libbsp/powerpc/shared/bootloader/em86.c
M    1.6  c/src/lib/libbsp/powerpc/shared/bootloader/mm.c
M   1.15  c/src/lib/libbsp/powerpc/shared/console/polled_io.c
M   1.29  c/src/lib/libbsp/powerpc/shared/irq/irq_init.c
M   1.55  c/src/lib/libbsp/powerpc/shared/startup/bspstart.c

diff -u rtems/c/src/lib/libbsp/powerpc/ChangeLog:1.232 rtems/c/src/lib/libbsp/powerpc/ChangeLog:1.233
--- rtems/c/src/lib/libbsp/powerpc/ChangeLog:1.232	Wed Apr 14 03:53:48 2010
+++ rtems/c/src/lib/libbsp/powerpc/ChangeLog	Wed Apr 28 13:51:58 2010
@@ -1,3 +1,9 @@
+2010-04-28	Joel Sherrill <joel.sherrilL at OARcorp.com>
+
+	* shared/bootloader/em86.c, shared/bootloader/mm.c,
+	shared/console/polled_io.c, shared/irq/irq_init.c,
+	shared/startup/bspstart.c: Remove warnings.
+
 2010-04-14	Ralf Corsépius <ralf.corsepius at rtems.org>
 
 	* shared/flash/flash.c: Include <unistd.h>.

diff -u rtems/c/src/lib/libbsp/powerpc/shared/bootloader/em86.c:1.8 rtems/c/src/lib/libbsp/powerpc/shared/bootloader/em86.c:1.9
--- rtems/c/src/lib/libbsp/powerpc/shared/bootloader/em86.c:1.8	Fri Mar 30 20:14:39 2007
+++ rtems/c/src/lib/libbsp/powerpc/shared/bootloader/em86.c	Wed Apr 28 13:51:58 2010
@@ -177,7 +177,8 @@
 		  AH=pcibios_write_config_word(BH, BL, reg, ld_le16(&CX));
 		  break;
 		case 13:      /* write_config_dword */
-		  AH=pcibios_write_config_dword(BH, BL, reg, ld_le32(&ECX));
+		  AH=pcibios_write_config_dword(
+			BH, BL, reg, ld_le32((uint32_t *)&ECX));
 		  break;
 		default:
 		  printf("Unimplemented or illegal PCI service call #%d!\n",
@@ -207,7 +208,7 @@
 
 int int10h(x86 * p) { /* Process BIOS video interrupt */
   	unsigned vector;
-	vector=ld_le32((unsigned *)p->vbase+0x10);
+	vector=ld_le32((uint32_t *)p->vbase+0x10);
 	if (((vector&0xffff0000)>>16)==0xc000) {
 		push2(p, p->eflags);
 		push2(p, p->cs);
@@ -528,7 +529,7 @@
 	*(u_int *)(p->ssbase+ld_le16(&SP)) = UINT_MAX;
 
 	/* Interrupt for BIOS EGA services is 0xf000:0xf065 (int 0x10) */
-	st_le32((u_int *)p->vbase + 0x10, 0xf000f065);
+	st_le32((uint32_t *)p->vbase + 0x10, 0xf000f065);
 
 	/* Enable the ROM, read it and disable it immediately */
 	pci_bootloader_read_config_dword(dev, PCI_ROM_ADDRESS, &saved_rom);

diff -u rtems/c/src/lib/libbsp/powerpc/shared/bootloader/mm.c:1.5 rtems/c/src/lib/libbsp/powerpc/shared/bootloader/mm.c:1.6
--- rtems/c/src/lib/libbsp/powerpc/shared/bootloader/mm.c:1.5	Wed Apr 21 11:01:44 2004
+++ rtems/c/src/lib/libbsp/powerpc/shared/bootloader/mm.c	Wed Apr 28 13:51:58 2010
@@ -46,6 +46,9 @@
 #include <libcpu/page.h>
 #include <limits.h>
 
+extern void (tlb_handlers)(void);
+extern void (_handler_glue)(void);
+
 /* We use our own kind of simple memory areas for the loader, but
  * we want to avoid potential clashes with kernel includes.
  * Here a map maps contiguous areas from base to end,
@@ -706,8 +709,6 @@
 	u_long lowpage=ULONG_MAX, highpage;
 	struct _mm_private *mm = (struct _mm_private *) bd->mm_private;
 	RESIDUAL * res=bd->residual;
-	extern void (tlb_handlers)(void);
-	extern void (_handler_glue)(void);
 	int i;
 	map *p;
 

diff -u rtems/c/src/lib/libbsp/powerpc/shared/console/polled_io.c:1.14 rtems/c/src/lib/libbsp/powerpc/shared/console/polled_io.c:1.15
--- rtems/c/src/lib/libbsp/powerpc/shared/console/polled_io.c:1.14	Thu Dec 10 00:02:14 2009
+++ rtems/c/src/lib/libbsp/powerpc/shared/console/polled_io.c	Wed Apr 28 13:51:58 2010
@@ -1094,7 +1094,7 @@
 					n = (short) n;
 				else
 				  	n = (unsigned short) n;
-			} else if (! flags & LONG) {
+			} else if (!(flags & LONG)) {
 				/* Here the compiler correctly removes this
 				 * do nothing code on 32 bit PPC.
 				 */

diff -u rtems/c/src/lib/libbsp/powerpc/shared/irq/irq_init.c:1.28 rtems/c/src/lib/libbsp/powerpc/shared/irq/irq_init.c:1.29
--- rtems/c/src/lib/libbsp/powerpc/shared/irq/irq_init.c:1.28	Thu Dec 10 02:50:57 2009
+++ rtems/c/src/lib/libbsp/powerpc/shared/irq/irq_init.c	Wed Apr 28 13:51:58 2010
@@ -39,23 +39,31 @@
 static pci_isa_bridge_device bridge;
 
 /*
- * default on/off function
- */
-static void nop_func(void){}
-/*
- * default isOn function
- */
-static int not_connected(void) {return 0;}
-/*
- * default possible isOn function
-static int connected(void) {return 1;}
+ * default methods
  */
+static void nop_hdl(rtems_irq_hdl_param ignored)
+{
+}
+
+static void nop_irq_enable(const struct __rtems_irq_connect_data__*ignored)
+{
+}
+
+static int irq_is_connected(const struct __rtems_irq_connect_data__*ignored)
+{
+  return 0;
+}
+
 
 static rtems_irq_connect_data     	rtemsIrq[BSP_IRQ_NUMBER];
 static rtems_irq_global_settings     	initial_config;
 static rtems_irq_connect_data     	defaultIrq = {
-  /* vectorIdex,	 hdl		, handle	, on		, off		, isOn */
-  0, 			 nop_func	, NULL		, nop_func	, nop_func	, not_connected
+  0,                /* vector */
+  nop_hdl,          /* hdl */
+  NULL,             /* handle */
+  nop_irq_enable,   /* on */
+  nop_irq_enable,   /* off */
+  irq_is_connected  /* isOn */
 #ifdef BSP_SHARED_HANDLER_SUPPORT
   , NULL /* next_handler */
 #endif

diff -u rtems/c/src/lib/libbsp/powerpc/shared/startup/bspstart.c:1.54 rtems/c/src/lib/libbsp/powerpc/shared/startup/bspstart.c:1.55
--- rtems/c/src/lib/libbsp/powerpc/shared/startup/bspstart.c:1.54	Sat Mar 27 15:47:39 2010
+++ rtems/c/src/lib/libbsp/powerpc/shared/startup/bspstart.c	Wed Apr 28 13:51:58 2010
@@ -17,8 +17,6 @@
  *  $Id$
  */
 
-#warning The interrupt disable mask is now stored in SPRG0, please verify that this is compatible to this BSP (see also bootcard.c).
-
 #include <string.h>
 
 #include <bsp.h>
@@ -127,8 +125,8 @@
  * Processor Address Map B (CHRP).
  */
 unsigned int get_eumbbar(void) {
-  out_le32( (uint32_t*)0xfec00000, 0x80000078 );
-  return in_le32( (uint32_t*)0xfee00000 );
+  out_le32( (volatile unsigned *)0xfec00000, 0x80000078 );
+  return in_le32( (volatile unsigned *)0xfee00000 );
 }
 #endif
 
@@ -309,7 +307,6 @@
 #endif
 
 /* See above */
-#warning The interrupt disable mask is now stored in SPRG0, please verify that this is compatible to this BSP (see also bootcard.c).
 
   BSP_mem_size            = residualCopy.TotalMemory;
   BSP_bus_frequency       = residualCopy.VitalProductData.ProcessorBusHz;


 *joel*:
2010-04-28	Joel Sherrill <joel.sherrilL at OARcorp.com>

	* startup/linkcmds: Needed to be assigned to a memory region.

M  1.130  c/src/lib/libbsp/mips/genmongoosev/ChangeLog
M   1.17  c/src/lib/libbsp/mips/genmongoosev/startup/linkcmds

diff -u rtems/c/src/lib/libbsp/mips/genmongoosev/ChangeLog:1.129 rtems/c/src/lib/libbsp/mips/genmongoosev/ChangeLog:1.130
--- rtems/c/src/lib/libbsp/mips/genmongoosev/ChangeLog:1.129	Tue Apr 27 12:10:58 2010
+++ rtems/c/src/lib/libbsp/mips/genmongoosev/ChangeLog	Wed Apr 28 13:59:01 2010
@@ -1,3 +1,7 @@
+2010-04-28	Joel Sherrill <joel.sherrilL at OARcorp.com>
+
+	* startup/linkcmds: Needed to be assigned to a memory region.
+
 2010-04-27	Joel Sherrill <joel.sherrill at oarcorp.com>
 
 	* startup/linkcmds: Revert previous change. Remove .reginfo from .bss

diff -u rtems/c/src/lib/libbsp/mips/genmongoosev/startup/linkcmds:1.16 rtems/c/src/lib/libbsp/mips/genmongoosev/startup/linkcmds:1.17
--- rtems/c/src/lib/libbsp/mips/genmongoosev/startup/linkcmds:1.16	Tue Apr 27 12:10:58 2010
+++ rtems/c/src/lib/libbsp/mips/genmongoosev/startup/linkcmds	Wed Apr 28 13:59:01 2010
@@ -34,6 +34,7 @@
       *(.gnu.linkonce.t*)
       *(.mips16.fn.*)
       *(.mips16.call.*)
+      *(.reginfo)
       PROVIDE (__runtime_reloc_start = .);
       *(.rel.sdata)
       *(.rel.dyn)


 *joel*:
2010-04-28	Joel Sherrill <joel.sherrilL at OARcorp.com>

	* mongoosev/duart/mg5uart.c: Remove warnings.

M   1.98  c/src/lib/libcpu/mips/ChangeLog
M   1.13  c/src/lib/libcpu/mips/mongoosev/duart/mg5uart.c

diff -u rtems/c/src/lib/libcpu/mips/ChangeLog:1.97 rtems/c/src/lib/libcpu/mips/ChangeLog:1.98
--- rtems/c/src/lib/libcpu/mips/ChangeLog:1.97	Mon Nov 16 04:04:35 2009
+++ rtems/c/src/lib/libcpu/mips/ChangeLog	Wed Apr 28 13:59:33 2010
@@ -1,3 +1,7 @@
+2010-04-28	Joel Sherrill <joel.sherrilL at OARcorp.com>
+
+	* mongoosev/duart/mg5uart.c: Remove warnings.
+
 2009-11-16	Ralf Corsépius <ralf.corsepius at rtems.org>
 
 	* Makefile.am: Add shared/interrupts/isr_entries.h.

diff -u rtems/c/src/lib/libcpu/mips/mongoosev/duart/mg5uart.c:1.12 rtems/c/src/lib/libcpu/mips/mongoosev/duart/mg5uart.c:1.13
--- rtems/c/src/lib/libcpu/mips/mongoosev/duart/mg5uart.c:1.12	Sun Nov 29 23:09:01 2009
+++ rtems/c/src/lib/libcpu/mips/mongoosev/duart/mg5uart.c	Wed Apr 28 13:59:33 2010
@@ -440,6 +440,8 @@
  */
 
 
+extern void mips_default_isr(int vector);
+
 #define __ISR(_TYPE, _OFFSET) \
   MG5UART_STATIC void mg5uart_process_isr_ ## _TYPE ( \
     int  minor \
@@ -450,8 +452,7 @@
   ) \
   { \
     int   minor; \
-    extern void mips_default_isr(int vector); \
-   \
+    \
     for(minor=0 ; minor<Console_Port_Count ; minor++) { \
       if( Console_Port_Tbl[minor].deviceType == SERIAL_MG5UART && \
           vector == Console_Port_Tbl[minor].ulIntVector + _OFFSET ) { \
@@ -469,9 +470,6 @@
 __ISR(rx_ready, MG5UART_IRQ_RX_READY)
 
 
-
-
-
 MG5UART_STATIC void mg5uart_process_isr_rx_error(
    int  minor,
    uint32_t   mask
@@ -679,10 +677,10 @@
  *
  */
 
-MG5UART_STATIC int mg5uart_write_support_polled(
+MG5UART_STATIC ssize_t mg5uart_write_support_polled(
   int         minor,
   const char *buf,
-  int         len
+  size_t      len
 )
 {
   int nwrite = 0;


 *joel*:
2010-04-28	Joel Sherrill <joel.sherrilL at OARcorp.com>

	* gdbstub/rtems-stub-glue.c: Remove warnings.

M  1.166  c/src/lib/libbsp/shared/ChangeLog
M   1.11  c/src/lib/libbsp/shared/gdbstub/rtems-stub-glue.c

diff -u rtems/c/src/lib/libbsp/shared/ChangeLog:1.165 rtems/c/src/lib/libbsp/shared/ChangeLog:1.166
--- rtems/c/src/lib/libbsp/shared/ChangeLog:1.165	Fri Apr  9 15:24:57 2010
+++ rtems/c/src/lib/libbsp/shared/ChangeLog	Wed Apr 28 13:59:41 2010
@@ -1,3 +1,7 @@
+2010-04-28	Joel Sherrill <joel.sherrilL at OARcorp.com>
+
+	* gdbstub/rtems-stub-glue.c: Remove warnings.
+
 2010-04-09	Thomas Doerfler <Thomas.Doerfler at embedded-brains.de>
 
 	* umon/umonrtemsglue.c: change type to avoid warning

diff -u rtems/c/src/lib/libbsp/shared/gdbstub/rtems-stub-glue.c:1.10 rtems/c/src/lib/libbsp/shared/gdbstub/rtems-stub-glue.c:1.11
--- rtems/c/src/lib/libbsp/shared/gdbstub/rtems-stub-glue.c:1.10	Tue May  5 16:17:47 2009
+++ rtems/c/src/lib/libbsp/shared/gdbstub/rtems-stub-glue.c	Wed Apr 28 13:59:41 2010
@@ -283,7 +283,6 @@
    int first_posix_id, first_rtems_id;
    Objects_Information *obj_info;
    Thread_Control *th;
-   uint32_t   name;
    char tmp_buf[20];
 
    ASSERT(info != NULL);


 *joel*:
2010-04-28	Joel Sherrill <joel.sherrilL at OARcorp.com>

	* shared/gdbstub/mips-stub.c: Remove warnings.

M   1.34  c/src/lib/libbsp/mips/ChangeLog
M   1.17  c/src/lib/libbsp/mips/shared/gdbstub/mips-stub.c

diff -u rtems/c/src/lib/libbsp/mips/ChangeLog:1.33 rtems/c/src/lib/libbsp/mips/ChangeLog:1.34
--- rtems/c/src/lib/libbsp/mips/ChangeLog:1.33	Mon Aug 18 02:31:18 2008
+++ rtems/c/src/lib/libbsp/mips/ChangeLog	Wed Apr 28 13:59:49 2010
@@ -1,3 +1,7 @@
+2010-04-28	Joel Sherrill <joel.sherrilL at OARcorp.com>
+
+	* shared/gdbstub/mips-stub.c: Remove warnings.
+
 2008-08-18	Ralf Corsépius <ralf.corsepius at rtems.org>
 
 	* shared/gdbstub/mips-stub.c: Add missing prototypes.

diff -u rtems/c/src/lib/libbsp/mips/shared/gdbstub/mips-stub.c:1.16 rtems/c/src/lib/libbsp/mips/shared/gdbstub/mips-stub.c:1.17
--- rtems/c/src/lib/libbsp/mips/shared/gdbstub/mips-stub.c:1.16	Sun Nov 29 09:27:07 2009
+++ rtems/c/src/lib/libbsp/mips/shared/gdbstub/mips-stub.c	Wed Apr 28 13:59:49 2010
@@ -931,6 +931,7 @@
  * reacts to gdb's requests.
  */
 
+extern void clear_cache(void);
 void handle_exception (rtems_vector_number vector, CPU_Interrupt_frame *frame)
 {
    int          host_has_detached = 0;
@@ -1439,12 +1440,7 @@
     *  but not necessarily the I-cache.
     */
 
-   {
-      extern void clear_cache(void);
-      clear_cache();
-   }
-
-   return;
+   clear_cache();
 }
 
 static int numsegs;



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20100428/ee202e44/attachment-0001.html>


More information about the vc mailing list