Powerpc: bsp_reset()

Feng, Kate feng at bnl.gov
Tue Jan 27 02:45:23 UTC 2009


Hi Matt,
 
It seems that your original  plan was to do
outb(inb(0x92) | 1, 0x92);
 
I do not have datasheet for those boards.
Anyway, it probably does not make a differnce since you are
resetting the board.
 
Kate

________________________________

From: rtems-users-bounces at rtems.org on behalf of Matt Rippa
Sent: Mon 1/26/2009 8:16 PM
To: rtems-users at rtems.org
Subject: Powerpc: bsp_reset()



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 */

_______________________________________________
rtems-users mailing list
rtems-users at rtems.com
http://rtems.rtems.org/mailman/listinfo/rtems-users





More information about the users mailing list