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

find_kernel: initialize the allocator based on the start address for unrelocatable kernels #378

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cagatay-y
Copy link
Contributor

I am not sure why initializing PhysAlloc after the mapping works, as the mapping functions seem to depend on it.

@mkroening mkroening self-assigned this Oct 14, 2024
@mkroening mkroening self-requested a review October 14, 2024 09:35
Copy link
Member

@mkroening mkroening left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure why initializing PhysAlloc after the mapping works, as the mapping functions seem to depend on it.

That is only true if there are no additional page tables (and thus physical frames) needed to perform the mapping. See Mapper::map_to_with_table_flags

We are also moving away from unrelocatable kernels. We now support relocatable GCC-based kernels: hermit-os/hermit-entry#37

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