Skip to content

tool: fix regression from bde5eb#485

Merged
Ivan-Velickovic merged 1 commit intomainfrom
fix_regression
May 4, 2026
Merged

tool: fix regression from bde5eb#485
Ivan-Velickovic merged 1 commit intomainfrom
fix_regression

Conversation

@Ivan-Velickovic
Copy link
Copy Markdown
Collaborator

I wrongly assumed that the kernel started at a 2MB alignment and so for certain platforms (particularly, the Raspberry Pi 4B), this assert goes off.

We do not need this assert since it is expected the kernel is not always 2MB aligned. The loader code still always uses 2MB pages for mapping the kernel, however it will round down to the nearest 2MB alignment which is why this hasn't been an issue previously. This logic follows what the kernel does for its own mappings as well.

I wrongly assumed that the kernel started at a 2MB alignment
and so for certain platforms (particularly, the Raspberry Pi 4B),
this assert goes off.

We do not need this assert since it is expected the kernel is not
always 2MB aligned. The loader code still always uses 2MB pages
for mapping the kernel, however it will round down to the nearest
2MB alignment which is why this hasn't been an issue previously.
This logic follows what the kernel does for its own mappings as
well.

Signed-off-by: Ivan Velickovic <i.velickovic@unsw.edu.au>
@Ivan-Velickovic Ivan-Velickovic merged commit 0ad3891 into main May 4, 2026
11 checks passed
@Ivan-Velickovic Ivan-Velickovic deleted the fix_regression branch May 4, 2026 06:41
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