Refactor ACPI, implement poweroff correctly using the DSDT in ACPI
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@
|
||||
//! The Redox OS Kernel is a hybrid kernel that supports X86_64 systems and
|
||||
//! provides Unix-like syscalls for primarily Rust applications
|
||||
|
||||
#![deny(warnings)]
|
||||
//#![deny(warnings)]
|
||||
#![feature(alloc)]
|
||||
#![feature(asm)]
|
||||
#![feature(collections)]
|
||||
|
||||
@@ -855,6 +855,16 @@ pub fn exit(status: usize) -> ! {
|
||||
println!("{:?} not found for exit vfork unblock", ppid);
|
||||
}
|
||||
}
|
||||
|
||||
if pid == ContextId::from(1) {
|
||||
println!("Main kernel thread exited with status {:X}, calling kstop", status);
|
||||
|
||||
extern {
|
||||
fn kstop() -> !;
|
||||
}
|
||||
|
||||
unsafe { kstop(); }
|
||||
}
|
||||
}
|
||||
|
||||
unsafe { context::switch(); }
|
||||
|
||||
Reference in New Issue
Block a user