Skip to content

fix elfloader: add UART MMIO mapping for debug output on AArch64 after MMU enable.#254

Open
Whatever314 wants to merge 1 commit intoseL4:masterfrom
Whatever314:uart_mmu
Open

fix elfloader: add UART MMIO mapping for debug output on AArch64 after MMU enable.#254
Whatever314 wants to merge 1 commit intoseL4:masterfrom
Whatever314:uart_mmu

Conversation

@Whatever314
Copy link
Copy Markdown

@Whatever314 Whatever314 commented Apr 3, 2026

Previously el1 error traps defined in //debug.c doesn't print anything cos the uart memory regions are not mapped after enabling mmu. This is a preliminary fix for arm aarch64 platforms.

Limitations

Sorry that I have neither time nor hardware to implement and test this fix on other platforms.

@Whatever314 Whatever314 force-pushed the uart_mmu branch 2 times, most recently from 4650695 to 178dd41 Compare April 3, 2026 04:46
… aarch64.

Previously el1 error traps defined in <arch>/<mode>/debug.c doesn't print anything cos the uart memory regions are not mapped after enabling mmu. This commit is a preliminary fix for arm aarch64 platforms.

Signed-off-by: W Sun <[email protected]>
@Whatever314 Whatever314 marked this pull request as ready for review April 3, 2026 04:54
@Indanz
Copy link
Copy Markdown
Contributor

Indanz commented Apr 3, 2026

I'd rather disable the MMU in the trap code than this. That would make it possible to debug traps caused by bad MMU setups too.

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