mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-03 08:08:39 -04:00
exo: receive saved lcd vendor from bl
This commit is contained in:
parent
a843cc0ee7
commit
69f9fb8713
5 changed files with 35 additions and 13 deletions
|
@ -22,11 +22,17 @@ _start:
|
|||
ldr x20, =0x1F00FC000
|
||||
mov sp, x20
|
||||
|
||||
/* Save any arguments we may have. */
|
||||
stp x0, x1, [sp, #-16]!
|
||||
|
||||
/* Initialize all memory to expected state. */
|
||||
ldr x0, =__bss_start__
|
||||
ldr x1, =__bss_end__
|
||||
bl _ZN3ams6secmon5fatal10InitializeEmm
|
||||
|
||||
/* Restore any arguments we may have. */
|
||||
ldp x0, x1, [sp], #16
|
||||
|
||||
/* Jump to the fatal program. */
|
||||
ldr x16, =_ZN3ams6secmon5fatal4MainEv
|
||||
br x16
|
||||
|
|
|
@ -60,6 +60,7 @@ namespace ams::secmon::fatal {
|
|||
|
||||
/* Display the fatal error. */
|
||||
{
|
||||
AMS_SECMON_LOG("Showing Display, LCD Vendor = %04x\n", GetLcdVendor());
|
||||
InitializeDisplay();
|
||||
ShowDisplay(f_ctx, result);
|
||||
FinalizeDisplay();
|
||||
|
|
|
@ -30,6 +30,7 @@ namespace ams::secmon::fatal {
|
|||
sdmmc::SpeedMode speed_mode;
|
||||
sdmmc::BusWidth bus_width;
|
||||
R_TRY(CheckSdCardConnection(std::addressof(speed_mode), std::addressof(bus_width)));
|
||||
AMS_SECMON_LOG("Sd Card Connection:\n");
|
||||
AMS_SECMON_LOG(" Speed Mode: %u\n", static_cast<u32>(speed_mode));
|
||||
AMS_SECMON_LOG(" Bus Width: %u\n", static_cast<u32>(bus_width));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue