summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-05-27 19:19:31 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-05-27 19:19:31 +0000
commit8d62ece80e22f83085e0d16284ac58126ac41338 (patch)
tree997e5d43f6285b5a13768fd5fbf0883f57c53d3b /c/src/lib/libbsp
parentCorrected interrupt stack allocation. (diff)
downloadrtems-8d62ece80e22f83085e0d16284ac58126ac41338.tar.bz2
Moved rtemsReboot() to here from exit.c. This appears to have been
necessary because a patch did not apply cleanly.
Diffstat (limited to 'c/src/lib/libbsp')
-rw-r--r--c/src/lib/libbsp/i386/pc386/console/inch.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/i386/pc386/console/inch.c b/c/src/lib/libbsp/i386/pc386/console/inch.c
index 7469c54a54..bcb9a17312 100644
--- a/c/src/lib/libbsp/i386/pc386/console/inch.c
+++ b/c/src/lib/libbsp/i386/pc386/console/inch.c
@@ -71,6 +71,18 @@ static char kbd_buffer[KBD_BUF_SIZE];
static rtems_unsigned16 kbd_first = 0;
static rtems_unsigned16 kbd_last = 0;
+/*-------------------------------------------------------------------------+
+| Function: rtemsReboot
+| Description: Reboot the PC.
+| Global Variables: None.
+| Arguments: None.
+| Returns: Nothing.
++--------------------------------------------------------------------------*/
+void rtemsReboot(void)
+{
+ /* shutdown and reboot */
+ outport_byte(0x64, 0xFE); /* use keyboard controler to do the job... */
+} /* rtemsReboot */
/*-------------------------------------------------------------------------+
| Function: _IBMPC_scankey