-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AllocateAddress in src/booloader/src/loader.c makes errors (NotFound) #6
Comments
Hello! Are you saying that you rewrote the bootloader in Zig? According to the UEFI spec, on page 163, if you're getting an There is some information about UEFI on osdev.org. I got most of my information from the UEFI specification. The actual 'loader' part of my code isn't much different than parsing an ELF executable in userspace. |
Well, I ran both bootloaders (this one and the one in Zig) and both had this error. |
Hmm. I'm currently traveling at the moment. When I get home in a couple of days I'll try to take a look at your kernel and see if there's anything I can find that would cause this. |
The |
That's good news that you've resolved the issue in your bootloader. What was causing the issue? I can see the commit in your repository where you resolved the issue, but there's too many changes in that commit to pin down exactly what the cause was. |
The cause for that issues is that we can't, as far as I know, assume that any address in the memory is free because of UEFI. |
I sincerely apologise for not replying to this earlier! The last few months have been so busy on my end. |
Recently, I wanted to start developing some kind of simple combination of bootloader and kernel in ZIG (https://ziglang.org) and I searched for an example. Because of that, I found this really cool repo and rewrote it in ZIG.
But, as I executed it, there was the error "NotFound", which, after some research, was obvious to be in src/booloader/src/loader.c:62. Because I have zero experience about programming bootloaders and I wanted (as described above) to have a good example, it would be wonderful to implement physical address handling.
Or is there anything I could read about that on OSDev?
The text was updated successfully, but these errors were encountered: