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

Relocatable extracted RAM disk #77

Merged
merged 8 commits into from
Nov 2, 2024
Merged

Conversation

phaubertin
Copy link
Owner

@phaubertin phaubertin commented Nov 2, 2024

Make extracted RAM disk relocatable by replacing pointers with relative offsets.

Rationale:

  • We want the user space loader to pass the RAM disk location to the initial process so that process can map it in its own address space and use it.
  • Future direction: we want to add the extracted RAM disk format as a supported RAM disk image format. Using this format uncompressed as the RAM disk image would allow the loader to use it in place so there wouldn't be two copies of the RAM disk in memory (original image + extracted). This would be useful for embedded systems with limited memory that run entirely off the initial RAM disk.

@phaubertin phaubertin force-pushed the feature_relocatable_ramdisk branch from c9efc32 to 8331c2d Compare November 2, 2024 21:56
@phaubertin phaubertin marked this pull request as ready for review November 2, 2024 22:53
@phaubertin phaubertin merged commit 752f978 into main Nov 2, 2024
2 checks passed
@phaubertin phaubertin deleted the feature_relocatable_ramdisk branch November 2, 2024 22:53
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.

1 participant