diff options
Diffstat (limited to 'bsps/i386/pc386/start/bspreset.c')
-rw-r--r-- | bsps/i386/pc386/start/bspreset.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/bsps/i386/pc386/start/bspreset.c b/bsps/i386/pc386/start/bspreset.c new file mode 100644 index 0000000000..0fbcd0f201 --- /dev/null +++ b/bsps/i386/pc386/start/bspreset.c @@ -0,0 +1,18 @@ +/* + * COPYRIGHT (c) 1989-2017. + * On-Line Applications Research Corporation (OAR). + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE. + */ + +#include <rtems.h> +#include <bsp.h> +#include <bsp/bootcard.h> + +void bsp_reset(void) +{ + /* shutdown and reboot */ + outport_byte(0x64, 0xFE); /* use keyboard controller */ +} |