Skip to content
Snippets Groups Projects
Unverified Commit 3f2bd559 authored by Jeremy Soller's avatar Jeremy Soller Committed by GitHub
Browse files

Merge pull request #90 from jabedude/master

Fix TODO: Use triple fault to guarantee reboot
parents 5cfe3f82 aff0c339
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,10 @@ pub unsafe extern fn kreset() -> ! { ...@@ -14,7 +14,10 @@ pub unsafe extern fn kreset() -> ! {
port.write(0xFE); port.write(0xFE);
} }
// TODO: Use triple fault to guarantee reset // Use triple fault to guarantee reset
asm!("cli" : : : : "intel", "volatile");
asm!("lidt cs:0" : : : : "intel", "volatile");
asm!("int $$3" : : : : "intel", "volatile");
unreachable!(); unreachable!();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment