Line 1,005:
Line 1,005:
// Deadlock
// Deadlock
loc_D400A3A();
loc_D400A3A();
+
+
== BootInfo ==
+
This is the "boot_info" structure used for sharing information between boot1 and IOS-MCP.
+
+
{| class="wikitable" border="1"
+
|-
+
! Offset || Size || Description
+
|-
+
| 0x0 || 0x4 || Version
+
|-
+
| 0x4 || 0x4 || [[#BootFlags]]
+
|-
+
| 0x8 || 0x4 || PowerFlags
+
|-
+
| 0xC || 0x4 || BootCount
+
|-
+
| 0x10 || 0x4 || CurrentSystemMode
+
|-
+
| 0x14 || 0x4 || NextSystemMode
+
|-
+
| 0x18 || 0x4 ||
+
|-
+
| 0x1C || 0x4 ||
+
|-
+
| 0x20 || 0x4 ||
+
|-
+
| 0x24 || 0x4 ||
+
|-
+
| 0x28 || 0x4 || RamFwImgOsIdHigh
+
|-
+
| 0x2C || 0x4 || RamFwImgOsIdLow
+
|-
+
| 0x30 || 0x4 || RamFwImgAddress
+
|-
+
| 0x34 || 0x4 || RamFwImgSize
+
|-
+
| 0x38 || 0x4 || Boot1MainTime
+
|-
+
| 0x3C || 0x4 || Boot1ReadTime
+
|-
+
| 0x40 || 0x4 || Boot1VerifyTime
+
|-
+
| 0x44 || 0x4 || Boot1DecryptTime
+
|-
+
| 0x48 || 0x4 || Boot0MainTime
+
|-
+
| 0x4C || 0x4 || Boot0ReadTime
+
|-
+
| 0x50 || 0x4 || Boot0VerifyTime
+
|-
+
| 0x54 || 0x4 || Boot0DecryptTime
+
|}
+
+
=== BootFlags ===
+
{| class="wikitable" border="1"
+
|-
+
! Bit
+
! Description
+
|-
+
| 0
+
| IsPowerTransitionsEnabled
+
|-
+
| 1
+
| IsProd
+
|-
+
| 2
+
| HasBootTimeStats
+
|-
+
| 3
+
|
+
|-
+
| 4
+
|
+
|-
+
| 5
+
| IsBootModeNand
+
|-
+
| 6
+
| IsWarmboot
+
|-
+
| 7
+
|
+
|-
+
| 8
+
|
+
|-
+
| 9
+
|
+
|-
+
| 10
+
|
+
|-
+
| 11
+
|
+
|-
+
| 12
+
|
+
|-
+
| 13
+
|
+
|-
+
| 14
+
|
+
|-
+
| 15
+
| IsPonEjectBtn
+
|}
== Error codes ==
== Error codes ==