Conversation
…s memory This will help us be more dynamic, and we don't have to be strict on the rules of at least 128MB. Also having the bios memory not mapped, we can use that space for something else. For now its not being used, but maybe in the future. This will bring us one step closter to using UEFI
Just using 0x1000 arbitrarily is dangerous as it could be used by something else. And looks like its used for Multiboot2 info in EFI mode. So its better to have a specific space in memory allocated for us only.
Switching to multiboot2 gives us a lot of benefits, such as: - able to boot UEFI devices. - better way to get RSDP table directly from boot instead of finding it in memory, which doesn't work in UEFI. - More configuration control (more options/tags we can specify to the bootloader)
…ey are reserved So, looks like this won't trigger an exception (#UD) unless the `CR4.DE` bit is set, which looks like its set by default in BIOS boot, but UEFI (at least the firmware I use), makes it not set which triggered an issue.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixed #1
Added:
5MBonly in BIOS and80MB~in UEFI for some reason)boot.S, we shouldn't just use address0x1000and such, so allocated a specific space in the ELF file.multiboot2, it has more features and support EFI easily.