Skip to content

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

@cagatay-y
Copy link
Contributor Author

We are not interested in supporting any feature that is not needed by hermit, right? In that case we can remove the part for adjusting the start address based on the ELF object. Should we still add a check to see if the kernel expects to be located at a certain address and error if that's the case?

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