[SOLVED] UEFI Loader custom memory types

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
chicken
Posts: 11
Joined: Fri Aug 09, 2024 4:30 am

[SOLVED] UEFI Loader custom memory types

Post 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?
Last edited by chicken on Fri Dec 27, 2024 3:58 am, edited 1 time in total.
chicken
Posts: 11
Joined: Fri Aug 09, 2024 4:30 am

Re: UEFI Loader custom memory types

Post 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
Octocontrabass
Member
Member
Posts: 5623
Joined: Mon Mar 25, 2013 7:01 pm

Re: UEFI Loader custom memory types

Post by Octocontrabass »

Post Reply