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
3232
3333 firmware_ram_size = . - ram_min;
3434
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 ;
3737 . = ALIGN (4K);
3838 pml2t = .;
39- . += 4K * identity_mapped_gbs ;
39+ . += 4K * address_space_gib ;
4040
4141 ASSERT ((. <= ram_max - stack_size), " firmware size too big for RAM region" )
4242
Original file line number Diff line number Diff line change @@ -52,12 +52,12 @@ fn panic(info: &PanicInfo) -> ! {
5252
5353/// Setup page tables to provide an identity mapping over the full 4GiB range
5454fn 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 ] ;
5757
5858 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 ] ;
6161 }
6262
6363 let pte = mem:: MemoryRegion :: from_slice ( unsafe { & pml2t } ) ;
You can’t perform that action at this time.
0 commit comments