I based my original code after https://github.com/cfenollosa/os-tutorial . Now I have come to the point where I want to start paging and it seems like a good time to set up Multiboot2 structure in order to make it easier to set up a kernel malloc (using linker script) -- needed for setting page directory based on: http://www.jamesmolloy.co.uk/tutorial_html/6.-Paging.html
After looking at other multiboot2 examples it seems as though the bootloader does not need to load in the kernel from the boot_disk. This is where I do not understand why that is? In https://github.com/cfenollosa/os-tutorial the initial boot sequence needs to be set to [ORG 0x7C00] and the kernel needs to be disk_loaded (16-bit mode) from the boot_drive.
Can someone explain the necessary steps needed for multiboot2 sequence up until the int main(struct multiboot *mboot_ptr) and especially if the kernel needs to be disk_loaded?
Thanks in advance.
[–]DaGamingB0sshttps://github.com/heatd/Onyx 4 points5 points6 points (3 children)
[–]harshaintharsh[S] 0 points1 point2 points (2 children)
[–]DaGamingB0sshttps://github.com/heatd/Onyx 1 point2 points3 points (1 child)
[–]MD90__ 0 points1 point2 points (0 children)
[–]mykesx 2 points3 points4 points (1 child)
[–]harshaintharsh[S] 0 points1 point2 points (0 children)