File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -32,11 +32,11 @@ SECTIONS
32
32
33
33
firmware_ram_size = . - ram_min;
34
34
35
- /* Memory for 64 GiB identity mapping, keep synced with ADDRESS_SPACE_GIB */
36
- identity_mapped_gbs = 64 ;
35
+ /* Memory for identity mapping, keep synced with ADDRESS_SPACE_GIB */
36
+ address_space_gib = 4 ;
37
37
. = ALIGN (4K);
38
38
pml2t = .;
39
- . += 4K * identity_mapped_gbs ;
39
+ . += 4K * address_space_gib ;
40
40
41
41
ASSERT ((. <= ram_max - stack_size), "firmware size too big for RAM region")
42
42
Original file line number Diff line number Diff line change @@ -52,12 +52,12 @@ fn panic(info: &PanicInfo) -> ! {
52
52
53
53
/// Setup page tables to provide an identity mapping over the full 4GiB range
54
54
fn setup_pagetables ( ) {
55
- const ADDRESS_SPACE_GIB : u64 = 64 ;
56
- type Page = [ u64 ; 512 ] ;
55
+ const ADDRESS_SPACE_GIB : u64 = 4 ;
56
+ type PageTable = [ u64 ; 512 ] ;
57
57
58
58
extern "C" {
59
- static pml3t: Page ;
60
- static pml2t: [ Page ; ADDRESS_SPACE_GIB as usize ] ;
59
+ static pml3t: PageTable ;
60
+ static pml2t: [ PageTable ; ADDRESS_SPACE_GIB as usize ] ;
61
61
}
62
62
63
63
let pte = mem:: MemoryRegion :: from_slice ( unsafe { & pml2t } ) ;
You can’t perform that action at this time.
0 commit comments