In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

Changes

Jump to navigation Jump to search
4 bytes added ,  04:14, 10 June 2022
→‎Syscall Table: syscall 43 has code to return error -9 if the kernel booting function returns
Line 263: Line 263:  
| 42 || <nowiki>[[noreturn]]</nowiki> IOSError ios_boot(const char* path, bool suspendBroadway, u32 version) || Suspends the IPC thread, loads a new IOS kernel from the NAND to 0x10100000 in IOS59), then calls <code>boot_new_ios_kernel(0x10100000, version)</code>. This can only be called from UID 0. || Doesn't return if the boot succeeded; otherwise, an error code is returned.
 
| 42 || <nowiki>[[noreturn]]</nowiki> IOSError ios_boot(const char* path, bool suspendBroadway, u32 version) || Suspends the IPC thread, loads a new IOS kernel from the NAND to 0x10100000 in IOS59), then calls <code>boot_new_ios_kernel(0x10100000, version)</code>. This can only be called from UID 0. || Doesn't return if the boot succeeded; otherwise, an error code is returned.
 
|-
 
|-
| 43 || <nowiki>[[noreturn]]</nowiki> void boot_new_ios_kernel(void* ios_binary_address, u32 new_version) || Sets the version at 0x3140 to <code>new_version</code> and the IPC buffer range ("DDR settings") to the legacy range ("12M"), before branching to the new kernel. This can only be called from UID 0. || -
+
| 43 || <nowiki>[[noreturn]]</nowiki> IOSError boot_new_ios_kernel(void* ios_binary_address, u32 new_version) || Sets the version at 0x3140 to <code>new_version</code> and the IPC buffer range ("DDR settings") to the legacy range ("12M"), before branching to the new kernel. This can only be called from UID 0. || -
 
|-
 
|-
 
| 44 || int assert_di_reset() || Clears bit 10 (DI) of [[Hardware/Hollywood_Registers#HW_RESETS|HW_RESETS]] (can only be called from DI) || Returns 0 on success, -1 on error
 
| 44 || int assert_di_reset() || Clears bit 10 (DI) of [[Hardware/Hollywood_Registers#HW_RESETS|HW_RESETS]] (can only be called from DI) || Returns 0 on success, -1 on error
5,579

edits

Navigation menu