Nographic mode, fix userspace transition by setting kernel TLS back on syscall
This commit is contained in:
parent
fb0df8530d
commit
a5d79d7957
6 changed files with 48 additions and 16 deletions
|
@ -303,8 +303,8 @@ impl Page {
|
|||
}
|
||||
|
||||
pub fn containing_address(address: VirtualAddress) -> Page {
|
||||
assert!(address.get() < 0x0000_8000_0000_0000 || address.get() >= 0xffff_8000_0000_0000,
|
||||
"invalid address: 0x{:x}", address.get());
|
||||
//TODO assert!(address.get() < 0x0000_8000_0000_0000 || address.get() >= 0xffff_8000_0000_0000,
|
||||
// "invalid address: 0x{:x}", address.get());
|
||||
Page { number: address.get() / PAGE_SIZE }
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue