[rtems commit] pc386/.../bspreset.c: Readd proper reset code.

Joel Sherrill joel at rtems.org
Mon Oct 9 03:26:34 UTC 2017


Module:    rtems
Branch:    master
Commit:    19cbd1943da39c0bfc9236667edcfa717229bc8a
Changeset: http://git.rtems.org/rtems/commit/?id=19cbd1943da39c0bfc9236667edcfa717229bc8a

Author:    Joel Sherrill <joel at rtems.org>
Date:      Sun Oct  8 22:24:50 2017 -0500

pc386/.../bspreset.c: Readd proper reset code.

The removal of the Edison code removed the wrong part of the
conditional.

Closes #3172.

---

 c/src/lib/libbsp/i386/pc386/startup/bspreset.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/c/src/lib/libbsp/i386/pc386/startup/bspreset.c b/c/src/lib/libbsp/i386/pc386/startup/bspreset.c
index ebb283b..0fbcd0f 100644
--- a/c/src/lib/libbsp/i386/pc386/startup/bspreset.c
+++ b/c/src/lib/libbsp/i386/pc386/startup/bspreset.c
@@ -1,5 +1,5 @@
 /*
- *  COPYRIGHT (c) 1989-2008.
+ *  COPYRIGHT (c) 1989-2017.
  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
@@ -14,5 +14,5 @@
 void bsp_reset(void)
 {
   /* shutdown and reboot */
-  *((uint32_t*)0xff009000) = 0xf3;  /* use watchdog */
+  outport_byte(0x64, 0xFE);        /* use keyboard controller */
 }



More information about the vc mailing list