Page 1 of 1

[SOLVED] UEFI Loader custom memory types

Posted: Thu Dec 26, 2024 9:58 am
by chicken
I am writing a bootloader for my hobby OS that targets UEFI. In the UEFI specification it is stated that operating system vendors can use custom Memory Types for allocations:
MemoryType values in the range 0x80000000..0xFFFFFFFF are reserved for use by UEFI OS loaders that are provided by operating system vendors.
When I do so the application hangs when exiting boot services. This does not happen if I use predefined memory types instead.

Someone on StackOverflow faces the same issue, their post also provides further explanation of the issue: https://stackoverflow.com/questions/674 ... emorytypes

I also openened an issue on the uefi-rs GitHub since my loader is written in Rust: https://github.com/rust-osdev/uefi-rs/issues/1375

Am I misinterpreting the specification or is there a different reason for why the application hangs?

Re: UEFI Loader custom memory types

Posted: Thu Dec 26, 2024 12:16 pm
by chicken
After some more testing it turns out that this is a platform-specific issue. Nevertheless, I would be curious if anyone faced the same issue

Re: UEFI Loader custom memory types

Posted: Thu Dec 26, 2024 4:55 pm
by Octocontrabass