File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ features = ["unicode"]
24
24
[features ]
25
25
default = []
26
26
vga_320x200 = []
27
- recursive_level_4_table = []
27
+ recursive_page_table = []
28
28
map_physical_memory = []
29
29
30
30
[profile .dev ]
@@ -36,4 +36,4 @@ lto = false
36
36
debug = true
37
37
38
38
[package .metadata .docs .rs ]
39
- features = [ " recursive_level_4_table " , " map_physical_memory" ]
39
+ features = [ " recursive_page_table " , " map_physical_memory" ]
Original file line number Diff line number Diff line change 1
1
## Breaking
2
2
3
- - The level 4 page table is only recursively mapped if the ` recursive_level_4_table ` feature is enabled.
3
+ - The level 4 page table is only recursively mapped if the ` recursive_page_table ` feature is enabled.
4
4
- Replace ` BootInfo::p4_table_addr ` with ` RECURSIVE_LEVEL_4_TABLE_ADDR ` constant (only present if the cargo feature is enabled)
5
5
- Remove ` From<PhysFrameRange> ` implemenations for x86_64 ` FrameRange `
6
6
- This only works when the versions align, so it is not a good general solution.
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ mod memory_map;
9
9
pub struct BootInfo {
10
10
pub memory_map : MemoryMap ,
11
11
/// The virtual address of the recursively mapped level 4 page table.
12
- #[ cfg( feature = "recursive_level_4_table " ) ]
13
- pub recursive_level_4_table_addr : u64 ,
12
+ #[ cfg( feature = "recursive_page_table " ) ]
13
+ pub recursive_page_table_addr : u64 ,
14
14
/// The offset into the virtual address space where the physical memory is mapped.
15
15
///
16
16
/// Physical addresses can be converted to virtual addresses by adding this offset to them.
@@ -26,11 +26,11 @@ pub struct BootInfo {
26
26
27
27
impl BootInfo {
28
28
#[ allow( unused_variables) ]
29
- pub fn new ( memory_map : MemoryMap , recursive_level_4_table_addr : u64 , physical_memory_offset : u64 ) -> Self {
29
+ pub fn new ( memory_map : MemoryMap , recursive_page_table_addr : u64 , physical_memory_offset : u64 ) -> Self {
30
30
BootInfo {
31
31
memory_map,
32
- #[ cfg( feature = "recursive_level_4_table " ) ]
33
- recursive_level_4_table_addr ,
32
+ #[ cfg( feature = "recursive_page_table " ) ]
33
+ recursive_page_table_addr ,
34
34
#[ cfg( feature = "map_physical_memory" ) ]
35
35
physical_memory_offset,
36
36
_non_exhaustive : 0 ,
Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ fn load_elf(
266
266
// Make sure that the kernel respects the write-protection bits, even when in ring 0.
267
267
enable_write_protect_bit ( ) ;
268
268
269
- if cfg ! ( not( feature = "recursive_level_4_table " ) ) {
269
+ if cfg ! ( not( feature = "recursive_page_table " ) ) {
270
270
// unmap recursive entry
271
271
rec_page_table
272
272
. unmap ( recursive_page_table_addr)
You can’t perform that action at this time.
0 commit comments