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-swan.c
File editor
#include <arch/system.h> #include <arch/io.h> #include <arch/irq.h> #include <arch/swan.h> /* * 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) { hard_reset_now(); } void hard_reset_now(void) { /* Disable interrupts */ outb(0x00, 0xB2); outb(0xFF, 0xB6); clr_irq(); /* Hard reset */ asm("ljmp $0xFFFF,$0\n\t"); } void apm_shutdown_now(void) { /* Disable interrupts */ outb(0x00, 0xB2); outb(0xFF, 0xB6); clr_irq(); /* Request poweroff */ outb(1, 0x62); /* Halt CPU */ while(1) asm("hlt"); }
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