Difference between revisions of "APT:StartApplication"

From 3dbrew
Jump to navigation Jump to search
(Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x001B00C4] |- | 1 | Buf0 size, max size is 0x300. |- | 2 | Buf1 size, max size is...")
 
m
Line 9: Line 9:
 
|-
 
|-
 
| 1
 
| 1
| Buf0 size, max size is 0x300.
+
| Parameter Size (capped to 0x300)
 
|-
 
|-
 
| 2
 
| 2
| Buf1 size, max size is 0x20(can be zero).
+
| HMAC Size (capped to 0x20)
 
|-
 
|-
 
| 3
 
| 3
| u8 flag
+
| u8, Flag
 
|-
 
|-
 
| 4
 
| 4
| <nowiki>(Size0<<14) | 2</nowiki>
+
| <nowiki>(Parameter Size << 14) | 2</nowiki>
 
|-
 
|-
 
| 5
 
| 5
| Buf0 ptr
+
| void*, Parameter
 
|-
 
|-
 
| 6
 
| 6
| <nowiki>(Size1<<14) | 0x802</nowiki>
+
| <nowiki>(HMAC Size << 14) | 0x802</nowiki>
 
|-
 
|-
 
| 7
 
| 7
| Buf1 ptr
+
| void*, HMAC
 
|}
 
|}
  
Line 44: Line 44:
  
 
=Description=
 
=Description=
Buf0 is copied to NS FIRMparams+0x0, then Buf1 is copied to NS FIRMparams+0x480. Then the application is launched.
+
The parameter buffer is copied to NS FIRMparams+0x0, then the HMAC buffer is copied to NS FIRMparams+0x480. Then the application is launched.

Revision as of 06:54, 22 November 2015

Request

Index Word Description
0 Header code [0x001B00C4]
1 Parameter Size (capped to 0x300)
2 HMAC Size (capped to 0x20)
3 u8, Flag
4 (Parameter Size << 14) | 2
5 void*, Parameter
6 (HMAC Size << 14) | 0x802
7 void*, HMAC

Response

Index Word Description
0 Header code
1 Result code

Description

The parameter buffer is copied to NS FIRMparams+0x0, then the HMAC buffer is copied to NS FIRMparams+0x480. Then the application is launched.