File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ mod memory_map;
9
9
#[ derive( Debug ) ]
10
10
#[ repr( C ) ]
11
11
pub struct BootInfo {
12
- pub p4_table_addr : u64 ,
13
12
pub memory_map : MemoryMap ,
14
13
pub package : Package ,
15
14
}
@@ -29,9 +28,8 @@ impl Deref for Package {
29
28
}
30
29
31
30
impl BootInfo {
32
- pub fn new ( p4_table_addr : u64 , memory_map : MemoryMap , package : & ' static [ u8 ] ) -> Self {
31
+ pub fn new ( memory_map : MemoryMap , package : & ' static [ u8 ] ) -> Self {
33
32
BootInfo {
34
- p4_table_addr,
35
33
memory_map,
36
34
package : Package {
37
35
ptr : package. as_ptr ( ) ,
Original file line number Diff line number Diff line change 1
1
#![ no_std]
2
2
3
+ /// The virtual address of the recursively mapped level 4 page table.
4
+ #[ cfg( feature = "recursive_level_4_table" ) ]
5
+ pub const RECURSIVE_LEVEL_4_TABLE_ADDR : u64 = 0o_177777_777_777_777_777_0000 ;
6
+
3
7
pub mod bootinfo;
4
8
5
9
/// Defines the entry point function.
Original file line number Diff line number Diff line change @@ -223,11 +223,7 @@ fn load_elf(
223
223
} ;
224
224
225
225
// Construct boot info structure.
226
- let mut boot_info = BootInfo :: new (
227
- recursive_page_table_addr. start_address ( ) . as_u64 ( ) ,
228
- memory_map,
229
- & [ ] ,
230
- ) ;
226
+ let mut boot_info = BootInfo :: new ( memory_map, & [ ] ) ;
231
227
boot_info. memory_map . sort ( ) ;
232
228
233
229
// Write boot info to boot info page.
You can’t perform that action at this time.
0 commit comments