fusee_cpp: tweaks, now completes SecureInitialize on hardware

This commit is contained in:
Michael Scire authored and SciresM committed 2021-09-06 16:26:50 -07:00
1 parent c91f95e8f6
commit f2a1c60218
6 files changed
+24 -41

No files matched your search

+1 -4
View File
@@ -28,7 +28,7 @@ namespace ams::nxboot::crt0 {
}
void Initialize(uintptr_t bss_start, uintptr_t bss_end) {
void Initialize() {
/* TODO: Collect timing information? */
/* Setup exception vectors. */
@@ -43,9 +43,6 @@ namespace ams::nxboot::crt0 {
SetExceptionVector(7, reinterpret_cast<uintptr_t>(::ams::nxboot::ExceptionHandler7));
}
/* Clear bss. */
std::memset(reinterpret_cast<void *>(bss_start), 0, bss_end - bss_start);
/* Call init array. */
__libc_init_array();
}
+1 -3
View File
@@ -62,9 +62,7 @@ _ZN3ams6nxboot5StartEv:
ldr lr, =_ZN3ams6nxboot16ExceptionHandlerEv
/* Perform runtime initialization. */
ldr r0, =__bss_start__
ldr r1, =__bss_end__
bl _ZN3ams6nxboot4crt010InitializeEjj
bl _ZN3ams6nxboot4crt010InitializeEv
/* Perform nx boot procedure. */
bl _ZN3ams6nxboot4MainEv