File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,12 @@ mod vesa;
2424/// We use this partition type to store the second bootloader stage;
2525const BOOTLOADER_SECOND_STAGE_PARTITION_TYPE : u8 = 0x20 ;
2626
27- const STAGE_3_DST : * mut u8 = 0x0010_0000 as * mut u8 ; // 1MiB (typically 14MiB accessible here)
28- const STAGE_4_DST : * mut u8 = 0x0020_0000 as * mut u8 ; // 2MiB (typically still 13MiB accessible here)
29- const KERNEL_DST : * mut u8 = 0x0100_0000 as * mut u8 ; // 16MiB
27+ // 1MiB (typically 14MiB accessible here)
28+ const STAGE_3_DST : * mut u8 = 0x0010_0000 as * mut u8 ;
29+ // must match the start address in bios/stage-4/stage-4-link.ld
30+ const STAGE_4_DST : * mut u8 = 0x0013_0000 as * mut u8 ;
31+ // 16MiB
32+ const KERNEL_DST : * mut u8 = 0x0100_0000 as * mut u8 ;
3033
3134static mut DISK_BUFFER : AlignedArrayBuffer < 0x4000 > = AlignedArrayBuffer {
3235 buffer : [ 0 ; 0x4000 ] ,
Original file line number Diff line number Diff line change 11ENTRY (_start)
22
33SECTIONS {
4- . = 0x00200000 ;
4+ # must match STAGE_4_DST address in bios/stage-2 /src/main.rs
5+ . = 0x00130000 ;
56
67 .start : {
78 *(.start )
You can’t perform that action at this time.
0 commit comments