Skip to content

Add deep sleep support. - #9

Open
dleicht wants to merge 1 commit into
profi200:masterfrom
dleicht:sleep
Open

Add deep sleep support.#9
dleicht wants to merge 1 commit into
profi200:masterfrom
dleicht:sleep

Conversation

@dleicht

@dleicht dleicht commented Sep 5, 2026

Copy link
Copy Markdown

This adds the low-level support required for reliable GBA lid sleep and PDN suspend/resume.

It introduces a minimal 12-byte ARM7 STOP trampoline in the GBA vector overlay, allowing the IRQ vector to be temporarily redirected to GBA BIOS SWI 03h without modifying the loaded ROM image or using GBA RAM. It also adds the corresponding LGY runtime control needed to enter and leave GBA STOP while preserving the normal BIOS IRQ path and directBoot behavior.

On the ARM11 side, the patch adds the PDN sleep/wake lifecycle for Core0/Core1, including dormant-state synchronization and wake handling, together with a cold graphics resume path that reinitializes the hardware state lost across PDN sleep while reusing the existing graphics initialization logic where possible.

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.

1 participant