Nographic mode, fix userspace transition by setting kernel TLS back on syscall
This commit is contained in:
parent
fb0df8530d
commit
a5d79d7957
1 changed files with 48 additions and 16 deletions
|
|
@ -71,7 +71,9 @@ interrupt_error!(protection, {
|
|||
});
|
||||
|
||||
interrupt_error!(page, {
|
||||
print!("Page fault\n");
|
||||
let cr2: usize;
|
||||
asm!("mov rax, cr2" : "={rax}"(cr2) : : : "intel", "volatile");
|
||||
println!("Page fault: {:>016X}", cr2);
|
||||
stack_trace();
|
||||
loop { halt(); }
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue