WIP: Thread control block and TSS in kernel
This commit is contained in:
parent
0501b2580d
commit
8ddd0ad3f0
1 changed files with 162 additions and 56 deletions
|
|
@ -33,7 +33,8 @@ impl Mapper {
|
|||
let mut p1 = p2.next_table_create(page.p2_index());
|
||||
|
||||
assert!(p1[page.p1_index()].is_unused(),
|
||||
"Set to {:X}: {:?}, requesting {:X}: {:?}",
|
||||
"{:X}: Set to {:X}: {:?}, requesting {:X}: {:?}",
|
||||
page.start_address().get(),
|
||||
p1[page.p1_index()].address().get(), p1[page.p1_index()].flags(),
|
||||
frame.start_address().get(), flags);
|
||||
p1[page.p1_index()].set(frame, flags | entry::PRESENT);
|
||||
|
|
|
|||
Loading…
Reference in a new issue