Skip to content

Make memory maps repr(C)#2007

Open
SpecificProtagonist wants to merge 1 commit into
rust-osdev:mainfrom
SpecificProtagonist:push-qrstumutxspt
Open

Make memory maps repr(C)#2007
SpecificProtagonist wants to merge 1 commit into
rust-osdev:mainfrom
SpecificProtagonist:push-qrstumutxspt

Conversation

@SpecificProtagonist

Copy link
Copy Markdown

I want to hand over a memory map to a binary that uses the same version of uefi but may have been compiled with different rustflags; this makes it easier to do so soundly.

Checklist

  • Sensible git history (for example, squash "typo" or "fix" commits). See the Rewriting History guide for help.
  • Update the changelog (if necessary)

@nicholasbishop

Copy link
Copy Markdown
Member

Thanks for the PR. Can you tell me a bit more about your use case? I don't think there's anything wrong with doing this, but I'd like to understand a bit more about why it's necessary.

@SpecificProtagonist

SpecificProtagonist commented Jul 14, 2026

Copy link
Copy Markdown
Author

Not a serious use case at all, just playing around with manually loading some binaries & toy kernels which may run after boot services have been exited. I could obviously pass along the map more manually (maybe even following an established boot protocol) but this is nice for a toy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants