Skip to content

feat: allow for usage of passed dtb addr - #482

Merged
mkroening merged 1 commit into
hermit-os:mainfrom
fstracke:feat-dtb-addr
Sep 4, 2025
Merged

feat: allow for usage of passed dtb addr#482
mkroening merged 1 commit into
hermit-os:mainfrom
fstracke:feat-dtb-addr

Conversation

@fstracke

Copy link
Copy Markdown
Contributor

When using different boot protocols, the dtb address can be passed to the loader. Use the passed dtb address instead of qemu default. Use qemu as fallback.

When using different boot protocols, the dtb address can be passed to the loader.
Use the passed dtb address instead of qemu default. Use qemu as fallback.

@Gelbpunkt Gelbpunkt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, see "Call the kernel image" section in the booting.txt document or https://github.com/torvalds/linux/blob/master/arch/arm64/kernel/head.S#L51

@mkroening mkroening left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'd prefer passing this via a register in the future, but this is a strict improvement over hardcoding it. 👍

@mkroening
mkroening added this pull request to the merge queue Sep 4, 2025
Merged via the queue into hermit-os:main with commit 1ca6d63 Sep 4, 2025
11 checks passed
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.

3 participants