File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,12 @@ mod vesa;
24
24
/// We use this partition type to store the second bootloader stage;
25
25
const BOOTLOADER_SECOND_STAGE_PARTITION_TYPE : u8 = 0x20 ;
26
26
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 ;
30
33
31
34
static mut DISK_BUFFER : AlignedArrayBuffer < 0x4000 > = AlignedArrayBuffer {
32
35
buffer : [ 0 ; 0x4000 ] ,
Original file line number Diff line number Diff line change 1
1
ENTRY (_start )
2
2
3
3
SECTIONS {
4
- . = 0x00200000;
4
+ # must match STAGE_4_DST address in bios/stage-2/src/main.rs
5
+ . = 0x00130000;
5
6
6
7
.start : {
7
8
*(.start)
You can’t perform that action at this time.
0 commit comments