elks-enhanced
public
Read
Owner: themaster
Branch: master
Commits: 6893
Updated: 2026-04-19 00:15
Git CLI clone URL
git clone https://www.xt-emporium.com/git/elks-enhanced.git
Fullscreen desktop URL
Code
Commits
History
Branches
Bug Reports
Discussions
Compare
Settings
elks-enhanced
/
elks
/
arch
/
i86
/
kernel
/
reset-pc98.c
File editor
#include <arch/system.h> #include <arch/io.h> #define PORT_CTRL_REG 0x37 #define PORT_STATUS_SHUT 0xF0 /* * This function gets called by the keyboard interrupt handler. * As it's called within an interrupt, it may NOT sync. */ void ctrl_alt_del(void) { } void hard_reset_now(void) { outb(0x0B, PORT_CTRL_REG); /* SHUT1: 1 */ outb(0x0F, PORT_CTRL_REG); /* SHUT0: 1 */ if (inb(PORT_STATUS_SHUT) & 0x02) /* V30 mode */ outb(0x07, PORT_STATUS_SHUT); else /* 286/386 mode */ outb(0x00, PORT_STATUS_SHUT); asm("ljmp $0xFFFF,$0\n\t"); } void apm_shutdown_now(void) { }
Commit message
This repository is read-only for this account.
Repository snapshot
Current branch
master
Visibility
public
Your access
Read
Remote
Configured
File activity
View file history