TuxSH 59543da23d bootloader: zerofill N3DS ABL regs when autobooting DSi title
Closes #2137.

Even though (when running TWL/AGB FIRM) the SoC is in O3DS mode, and the GPU also is,
as well as most other components behaving as such (external RAM, L2C not usable, etc.),
this is NOT the case for the LCD and adaptive backlight logic which retains FULL N3DS
functionality, including a feature where the window is blended with a given color depending
on the overall relative luminance of that window.

However, Nintendo's own code mistakenly assumes the opposite, and clearly so ("if GPU in N3DS mode"
checks, not passing N3DS extra adaptive backlight (ABL) to TWL/AGB_FIRM). This has implications:

- Powersaving (ABL) settings in TWL/AGB_FIRM is inconsistent with *both* O3DS (because the new RGB blend
LUT has been set to its current value by NATIVE_FIRM) and N3DS (because "pwn_cnt" and "inertia" are missing
their N3DS-only bits)
- "rave party" when booting into TWL/AGB_FIRM or O3DS NATIVE_FIRM without these regs (well, the LUT)
initialized. Easiest way to do so is by leveraging the "DSi autooboot" feature Luma provides. It is worth
noting at least the LUT survives hardware reboots (if Nintendo were using DSi software that was using
TLNC-based reboots, they wouldn't have noticed).

Only touch the autoboot path, for now
2025-05-12 03:10:52 +02:00
..
2020-04-25 13:42:10 +01:00
2020-04-25 13:42:10 +01:00
2020-04-25 13:42:10 +01:00
2020-04-25 13:42:10 +01:00
2020-04-25 13:42:10 +01:00
2020-04-25 13:42:10 +01:00
2020-04-25 13:42:10 +01:00
2020-04-25 13:42:10 +01:00
2022-03-28 20:30:02 +01:00
2020-04-25 13:42:10 +01:00
2024-12-30 14:29:32 +01:00
2020-04-25 13:42:10 +01:00
2020-04-25 13:42:10 +01:00
2019-03-15 23:03:20 +01:00
2022-03-28 20:30:02 +01:00
2022-03-28 20:30:02 +01:00
2020-04-25 13:42:10 +01:00
2022-06-04 22:27:31 +01:00
2020-04-25 13:42:10 +01:00
2020-04-25 13:42:10 +01:00