Rev 16 | Rev 22 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 16 | Rev 20 | ||
|---|---|---|---|
| Line 293... | Line 293... | ||
| 293 | typedef PACKED (struct) image_trailer_v2_s |
293 | typedef PACKED (struct) image_trailer_v2_s |
| 294 | { |
294 | { |
| 295 | uint8_t sha512[64]; // SHA512 from start of image header to start of trailer |
295 | uint8_t sha512[64]; // SHA512 from start of image header to start of trailer |
| 296 | uint32_t cksum; // checksum from start of header to start of this member |
296 | uint32_t cksum; // checksum from start of header to start of this member |
| 297 | } image_trailer_v2_t; // NOTE: this is the same structure as startup_trailer_v2_t |
297 | } image_trailer_v2_t; // NOTE: this is the same structure as startup_trailer_v2_t |
| - | 298 | END_OF_PACKED_STRUCT () // restore default alignment |
|
| - | 299 | ||
| - | 300 | ||
| - | 301 | START_OF_PACKED_STRUCT () // we need byte-alignment for this struct |
|
| - | 302 | typedef PACKED (struct) bootargs_entry_s |
|
| - | 303 | { |
|
| - | 304 | uint8_t size_lo; // includes entire structure |
|
| - | 305 | uint8_t size_hi; |
|
| - | 306 | uint8_t argc; // number of C-style strings that make up argv[] in args |
|
| - | 307 | uint8_t envc; // number of C-style strings that make up envp[] in args after argv[] |
|
| - | 308 | // if the actual startup header address cannot be represented in 32 bits, then shdr_addr is set to 0xFFFFFFFF and a uint64_t with the REAL shdr_address |
|
| - | 309 | // immediately follows the last byte of the variable-length <args>. It will be included in the advertised <size_*> and is located at <bootargs_addr>+<size>-8 |
|
| - | 310 | uint32_t shdr_addr; |
|
| - | 311 | //char *args; // variable length |
|
| - | 312 | } bootargs_entry_t; |
|
| 298 | END_OF_PACKED_STRUCT () // restore default alignment |
313 | END_OF_PACKED_STRUCT () // restore default alignment |
| 299 | 314 | ||
| 300 | 315 | ||
| 301 | // undefine the helpers we no longer need |
316 | // undefine the helpers we no longer need |
| 302 | #undef START_OF_PACKED_STRUCT |
317 | #undef START_OF_PACKED_STRUCT |