SPL services: Difference between revisions
No edit summary |
No edit summary |
||
Line 22: | Line 22: | ||
| 10 || || wrapper for [[SMC#ExpMod|ExpMod]] | | 10 || || wrapper for [[SMC#ExpMod|ExpMod]] | ||
|- | |- | ||
| 11 || [[#IsDevUnit]] || | | 11 || [[#IsDevUnit]] || | ||
|- | |- | ||
| 12 || GenerateSpecificAesKey || wrapper for [[SMC#KeygenA|KeygenA]] | | 12 || GenerateSpecificAesKey || wrapper for [[SMC#KeygenA|KeygenA]] | ||
Line 61: | Line 61: | ||
|- | |- | ||
| 5 || HardwareType (0=Icosa, 1=Copper) | | 5 || HardwareType (0=Icosa, 1=Copper) | ||
|- | |||
| 6 || IsRetail | |||
|- | |- | ||
| 7 || IsRecoveryBoot | | 7 || IsRecoveryBoot | ||
Line 96: | Line 98: | ||
== IsDevUnit == | == IsDevUnit == | ||
No input params. | No input params. | ||
Uses [[#GetConfig]] internally with id=6. Returns true if output from that is 0, or if the SMC returned error 2. | |||
Returns an u8 flag for whether the system is devunit. Output flag is 0 on retail. | Returns an u8 flag for whether the system is devunit. Output flag is 0 on retail. |