diff options
Diffstat (limited to 'bootloader.h')
-rw-r--r-- | bootloader.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/bootloader.h b/bootloader.h index 712aa1a2..c2895dd9 100644 --- a/bootloader.h +++ b/bootloader.h | |||
@@ -38,11 +38,24 @@ extern "C" { | |||
38 | * The recovery field is only written by linux and used | 38 | * The recovery field is only written by linux and used |
39 | * for the system to send a message to recovery or the | 39 | * for the system to send a message to recovery or the |
40 | * other way around. | 40 | * other way around. |
41 | * | ||
42 | * The stage field is written by packages which restart themselves | ||
43 | * multiple times, so that the UI can reflect which invocation of the | ||
44 | * package it is. If the value is of the format "#/#" (eg, "1/3"), | ||
45 | * the UI will add a simple indicator of that status. | ||
41 | */ | 46 | */ |
42 | struct bootloader_message { | 47 | struct bootloader_message { |
43 | char command[32]; | 48 | char command[32]; |
44 | char status[32]; | 49 | char status[32]; |
45 | char recovery[1024]; | 50 | char recovery[768]; |
51 | |||
52 | // The 'recovery' field used to be 1024 bytes. It has only ever | ||
53 | // been used to store the recovery command line, so 768 bytes | ||
54 | // should be plenty. We carve off the last 256 bytes to store the | ||
55 | // stage string (for multistage packages) and possible future | ||
56 | // expansion. | ||
57 | char stage[32]; | ||
58 | char reserved[224]; | ||
46 | }; | 59 | }; |
47 | 60 | ||
48 | /* Read and write the bootloader command from the "misc" partition. | 61 | /* Read and write the bootloader command from the "misc" partition. |