Skip to content

Commit 5884d15

Browse files
committed
Remove more commented out code that was already reimplmented
1 parent 34a5da8 commit 5884d15

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/bin/bios.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -137,24 +137,9 @@ fn bootloader_main(
137137
);
138138

139139
/*
140-
// Enable support for the no-execute bit in page tables.
141-
enable_nxe_bit();
142-
143140
// Make sure that the kernel respects the write-protection bits, even when in ring 0.
144141
enable_write_protect_bit();
145142
146-
if cfg!(not(feature = "recursive_page_table")) {
147-
// unmap recursive entry
148-
rec_page_table
149-
.unmap(Page::<Size4KiB>::containing_address(
150-
recursive_page_table_addr,
151-
))
152-
.expect("error deallocating recursive entry")
153-
.1
154-
.flush();
155-
mem::drop(rec_page_table);
156-
}
157-
158143
#[cfg(feature = "sse")]
159144
sse::enable_sse();
160145

0 commit comments

Comments
 (0)