enter protected mode and jump to rust binary
This commit is contained in:
1 parent
e20030fbc3
commit
a86d73e6ee
4 files changed
+343
-13
No files matched your search
@@ -4,6 +4,7 @@ OUTPUT_FORMAT("binary")
|
||||
|
||||
SECTIONS {
|
||||
.prelude : {
|
||||
KEEP(*(.prelude))
|
||||
*(.prelude)
|
||||
}
|
||||
|
||||
@@ -27,8 +28,16 @@ SECTIONS {
|
||||
*(.rodata.*)
|
||||
}
|
||||
|
||||
.magic : {
|
||||
/* Magic bytes the prelude uses to make sure it's loaded the subsequent sectors correctly. */
|
||||
LONG(0x544e4150)
|
||||
}
|
||||
|
||||
boot1_magic = ADDR(.magic);
|
||||
|
||||
/* Define a symbol for the total length of the binary, so the prelude knows how many blocks to
|
||||
* load from disk.
|
||||
*/
|
||||
boot1_bin_len = . - 0x8200;
|
||||
boot1_bin_sectors = (boot1_bin_len + 511) / 512;
|
||||
}
|
||||
Reference in new issue
Block a user