-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
integration-test: boot multiboot2_chainloader itself also via Multiboot2
Since I don't use QEMU Multiboot1-direct boot anymore, we can use Multiboot2 here as well. This also fights some problems with Limine which doesn't want to load the Multiboot1 kernel in an UEFI environment.
- Loading branch information
Showing
12 changed files
with
102 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 0 additions & 41 deletions
41
integration-test/bins/multiboot2_chainloader/src/multiboot.rs
This file was deleted.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
integration-test/bins/multiboot2_chainloader/src/multiboot2_header.S
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# The assembly code uses the GNU Assembly (GAS) flavor with Intel noprefix | ||
# syntax. | ||
|
||
# Symbol from main.rs | ||
.EXTERN start | ||
|
||
.code32 | ||
.align 8 | ||
.section .multiboot2_header | ||
|
||
mb2_header_start: | ||
.long 0xe85250d6 # magic number | ||
.long 0 # architecture 0 (protected mode i386) | ||
.long mb2_header_end - mb2_header_start # header length | ||
# checksum | ||
.long 0x100000000 - (0xe85250d6 + 0 + (mb2_header_end - mb2_header_start)) | ||
|
||
# REQUIRED END TAG | ||
.align 8 | ||
.Lmb2_header_tag_end_start: | ||
.word 0 # type (16bit) | ||
.word 0 # flags (16bit) | ||
.long .Lmb2_header_tag_end_end - .Lmb2_header_tag_end_start # size (32bit) | ||
.Lmb2_header_tag_end_end: | ||
mb2_header_end: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
integration-test/bins/multiboot2_payload/src/multiboot2_header.S
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters