예제 #1
0
void kernel_poweroff()
{
	if(current_task->uid)
		return;
	kernel_shutdown();
	super_cli();
	acpiPowerOff();
	kprintf("\nYou can now turn off your computer.\n");
	for(;;) 
		asm("nop");
}
예제 #2
0
파일: klib.c 프로젝트: alebian/alebianOS
void k_shutdown(){
	k_disable();
	k_shutdownScreen();
	// Just to appreciate the art
	_Sti();
	sleep(30);
	if(ACPIinitialized()){
		acpiPowerOff();
	}else{
		_Cli();
		while(1){}
	}
	return;
}