Powerpc: bsp_reset()

Matt Rippa mrippa at gemini.edu
Tue Jan 27 01:16:07 UTC 2009


Hi -

For older mvme boards I noticed bsp_reset() was not actually 
resetting my board. Tracked this down to 
libbsp/powerpc/shared/console/reboot.c and propose the following 
patch.

I've also submitted PR 1362 and updated the wiki for the 
mvme2700, although I think this affects mvme2300--mvme2700.

Thanks for helping Till,

-Matt
--

--- 
/tmp/rtems-4.9.1/c/src/lib/libbsp/powerpc/shared/console/reboot.c 
   2008-10-23 03:45:55.000000000 -1000
+++ reboot.c    2009-01-26 09:30:30.295646000 -1000
@@ -16,10 +16,14 @@
    printk("Printing a stack trace for your convenience :-)\n");
    CPU_print_stack();
    /* shutdown and reboot */
-#if defined(BSP_KBD_IOBASE)
-  kbd_outb(0x4, 0xFE);      /* use keyboard controler to do the 
job... */
-#endif
+
  #if defined(mvme2100)
    *(unsigned char*)0xffe00000 |= 0x80;
+#else
+   /* Memory-mapped Port 92 PIB device access
+   *(unsigned char*)0x80000092 |= 0x01;
+   */
+   outb(1, 0x92);
+
  #endif
  } /* bsp_reset */




More information about the users mailing list