diff options
author | Bobby Bingham <koorogi@koorogi.info> | 2015-07-11 11:56:16 -0500 |
---|---|---|
committer | Bobby Bingham <koorogi@koorogi.info> | 2015-09-15 22:43:32 -0500 |
commit | e3cbe8f7712fe97d90ff1fb5c675df9a1632eb45 (patch) | |
tree | 657ed072fe2e24223e32dc086363c6d190152550 /src/bootinfo.h | |
parent | d9a15195a48be307abea623d883144dbd7f3a51d (diff) |
make systemid structure match memory layout
This will be useful when it comes time to share this structure definition
with the bootloader code. Additionally, it makes the write_output function
simpler, as we can output most of the fields with a single write() call.
Diffstat (limited to 'src/bootinfo.h')
-rw-r--r-- | src/bootinfo.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bootinfo.h b/src/bootinfo.h index 976f8e1..a40ca40 100644 --- a/src/bootinfo.h +++ b/src/bootinfo.h @@ -4,20 +4,25 @@ #include <stdint.h> struct systemid { - char title [112]; + char magic [ 16]; char maker [ 16]; char product [ 10]; char version [ 6]; char reldate [ 8]; char device [ 8]; char regions [ 10]; + char padding1 [ 6]; char peripherals[ 16]; + char title [112]; + uint32_t padding2[4]; uint32_t bootsize; + uint32_t padding3; uint32_t stack_master; uint32_t stack_slave; uint32_t load_addr; uint32_t load_size; + uint32_t padding4[2]; }; #endif |