From e3cbe8f7712fe97d90ff1fb5c675df9a1632eb45 Mon Sep 17 00:00:00 2001 From: Bobby Bingham Date: Sat, 11 Jul 2015 11:56:16 -0500 Subject: 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. --- src/bootinfo.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/bootinfo.h') 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 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 -- cgit v1.2.3