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

Kernel/aarch64: Don't use the memory before .text as the initial stack (+ some linker script fixes) #25313

Merged
merged 6 commits into from
Nov 7, 2024

Conversation

spholz
Copy link
Member

@spholz spholz commented Nov 7, 2024

This moves the initial aarch64 stack similar to how #23205 moved it for RISC-V.

I also included some small improvements to the aarch64 linker script while I'm here.

@github-actions github-actions bot added the 👀 pr-needs-review PR needs review from a maintainer or community member label Nov 7, 2024
@@ -30,7 +30,6 @@ SECTIONS
end_of_safemem_atomic_text = .;

*(.text*)
end_of_kernel_text = .;
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you intentionally remove this here?

Copy link
Member Author

Choose a reason for hiding this comment

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

I moved it to the end of .unmap_after_init. That matches the position of the symbol on x86-64 and riscv64.
(.unmap_after_init is also part of the text pheader)

@nico nico merged commit 7c71080 into SerenityOS:master Nov 7, 2024
14 checks passed
@github-actions github-actions bot removed the 👀 pr-needs-review PR needs review from a maintainer or community member label Nov 7, 2024
@spholz spholz deleted the aarch64-move-initial-stack branch November 7, 2024 14:35
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