Skip to content
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

Enable memory access above 4GB #795

Closed
BeataZdunczyk opened this issue Apr 17, 2024 · 2 comments
Closed

Enable memory access above 4GB #795

BeataZdunczyk opened this issue Apr 17, 2024 · 2 comments
Assignees

Comments

@BeataZdunczyk
Copy link
Member

BeataZdunczyk commented Apr 17, 2024

Brief summary

Capsules may be located in any part of RAM, not only lowest 4GB. Support for accessing higher
memory must be added to coreboot.

What is the scope of the task.

Function(s) able to copy data from memory higher than 4GB to lower memory, along with
code for entering and leaving long mode. Linking with other parts of coreboot is not
required. Dynamic memory allocation isn't allowed, to not overwrite capsule data.

@krystian-hebel
Copy link
Contributor

I forgot that SG lists may also live in higher memory. Because of that, instead of functions for copying data I created functions for mapping data in lower 4 GB. This should allow for reading data without having to copy it.

PR with changes:
Dasharo/coreboot#497

Commits sent to upstream:
https://review.coreboot.org/c/coreboot/+/82247
https://review.coreboot.org/c/coreboot/+/82248
https://review.coreboot.org/c/coreboot/+/82249

@krystian-hebel
Copy link
Contributor

Both our local PR and upstream changes has been merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants