From 8d62ece80e22f83085e0d16284ac58126ac41338 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 27 May 1998 19:19:31 +0000 Subject: Moved rtemsReboot() to here from exit.c. This appears to have been necessary because a patch did not apply cleanly. --- c/src/lib/libbsp/i386/pc386/console/inch.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'c/src/lib/libbsp/i386/pc386/console/inch.c') 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 -- cgit v1.2.3