summaryrefslogtreecommitdiff
path: root/src/bootinfo.h
diff options
context:
space:
mode:
authorBobby Bingham <koorogi@koorogi.info>2015-07-11 11:56:16 -0500
committerBobby Bingham <koorogi@koorogi.info>2015-09-15 22:43:32 -0500
commite3cbe8f7712fe97d90ff1fb5c675df9a1632eb45 (patch)
tree657ed072fe2e24223e32dc086363c6d190152550 /src/bootinfo.h
parentd9a15195a48be307abea623d883144dbd7f3a51d (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.h7
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