Line 271:
Line 271:
| 46 || bool check_di_reset() || Checks bit 10 (DI) of [[Hardware/Hollywood_Registers#HW_RESETS|HW_RESETS]] (can only be called from DI) || Returns 1 on reset asserted, 0 on deasserted or error
| 46 || bool check_di_reset() || Checks bit 10 (DI) of [[Hardware/Hollywood_Registers#HW_RESETS|HW_RESETS]] (can only be called from DI) || Returns 1 on reset asserted, 0 on deasserted or error
|-
|-
−
| 47 || void get_kernel_flavor(u32 *type, u16 *unk) || The implementation of this syscall differs between "flavors" of kernel and returns some identifiers. ||
+
| 47 || void get_kernel_flavor(u32 *type, u16 *unk) || The implementation of this syscall differs between "flavors" of kernel and returns some identifiers. || The IOSv58 kernel writes (*type=3, *unk=0). The boot2v04 kernel writes (*type=0, *unk_0). ES has code to delete [[:/sys/launch.sys]] without reading it for types 1 and 2.
−
The IOSv58 system menu kernel writes (*type=3, *unk=0).
−
The boot2v04 kernel writes (*type=0, *unk_0).
|-
|-
| 48 || void get_unk_flavor(u32 *type, u16 *unk) || Potentially vestigial. Probably related to syscall 0x47 above. || Always returns (*type=1, *unk=0).
| 48 || void get_unk_flavor(u32 *type, u16 *unk) || Potentially vestigial. Probably related to syscall 0x47 above. || Always returns (*type=1, *unk=0).