Legacy FIRM PXI: Difference between revisions

Riley (talk | contribs)
cmd5 correction
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 19: Line 19:
| PrepareArm9ForAgb(u64 application_titleID) This launches the specified GBA VC title. On success, returns u64 GBA VC title exeFS .code length in cmdbuf[2].
| PrepareArm9ForAgb(u64 application_titleID) This launches the specified GBA VC title. On success, returns u64 GBA VC title exeFS .code length in cmdbuf[2].
|-
|-
| 0x00040080
| 0x00040080 / 0x00040000
| [[1.0.0-0]]
| [[1.0.0-0]]
| Process9 will eventually wait for the ARM11 to send this command, see [[FIRM|here]]. The command input parameters are not used.
| Process9 will eventually wait for the ARM11 to send this command after PrepareArm9ForTwl/PrepareArm9ForAgb is called, see [[FIRM|here]]. The input parameters should be 0 and 0x00040000 as this is a nested message of which the ITCM code consumes the first half. Returns 0 after going into AGB mode
|-
|-
| 0x0005....
| 0x00050040
| [[1.0.0-0]]
| [[1.0.0-0]]
| (u8 unk) Does some lowlevel sd/emmc register setting (different for unk=0 and unk=1). If unk=1, sets a flag, code ran during the pxi main-func loop detects this and calls <code>svcKernelSetState(2,0)</code>.
| (u8 unk) Does some lowlevel sd/emmc register setting (different for unk=0 and unk=1). If unk=1, sets a flag, code ran during the pxi main-func loop detects this and calls <code>svcKernelSetState(2,0)</code>.
Line 47: Line 47:
| Sets Process9's internal date/time, see below.
| Sets Process9's internal date/time, see below.
|-
|-
| 0x000B0040
| 0x000B0240
| [[1.0.0-0]]
| [[1.0.0-0]]
| This is used for TWL initialization, prior to using command 0x00020080.
| This is used for TWL initialization, prior to using command 0x00020080. Arguments: u8 <2 if card, else 3>, u8 <bit 1 from firmlaunchparams+0x460>, u64 tid, u8 bannerHmac[0x14]
|-
|-
| 0x000C0800
| 0x000C0800