multiboot2: Fix alignment of header tags
PATCH 1/1 multiboot2: Fix alignment of header tags
Header tags have to be 8-bytes aligned. So, fix it. Additionally, mention header closing tag in the spec.
Signed-off-by Daniel Kiper <[email protected]>
--- doc/multiboot.texi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
doc/multiboot.texi +3 -2
@@ -408,8 +408,9 @@ and @samp{header_length}), must have a 32-bit unsigned sum of zero. @node Header tags @subsection General tag structure -Tags constitutes a buffer of structures following each other padded on @samp{u32} size. -Every structure has following format: +Tags constitutes a buffer of structures following each other padded when necessary +in order for each tag to start at 8-bytes aligned address. Tags are terminated by +a tag of type @samp{0} and size @samp{8}. Every structure has following format: @example @group
Signature · 1 line
1.7.10.4
Quoted 4 lines · Daniel Kiper
Header tags have to be 8-bytes aligned. So, fix it. Additionally, mention header closing tag in the spec.
Signed-off-by Daniel Kiper <[email protected]>
If there are no objections I will apply this at the beginning of next week.
Daniel
Quoted 4 lines · Daniel Kiper
Header tags have to be 8-bytes aligned. So, fix it. Additionally, mention header closing tag in the spec.
Signed-off-by Daniel Kiper <[email protected]>
Reviewed-by Konrad Rzeszutek Wilk <[email protected]>
Quoted 23 lines
--- doc/multiboot.texi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)doc/multiboot.texi +3
-2@@ -408,8 +408,9 @@ and @samp{header_length}), must have a 32-bit unsigned sum of zero. @node Header tags @subsection General tag structure -Tags constitutes a buffer of structures following each other padded on @samp{u32} size. -Every structure has following format: +Tags constitutes a buffer of structures following each other padded when necessary +in order for each tag to start at 8-bytes aligned address. Tags are terminated by +a tag of type @samp{0} and size @samp{8}. Every structure has following format: @example @groupSignature · 1 line
1.7.10.4
Quoted 7 lines · Konrad Rzeszutek Wilk
Quoted 4 lines · Daniel Kiper
Header tags have to be 8-bytes aligned. So, fix it. Additionally, mention header closing tag in the spec.
Signed-off-by Daniel Kiper <[email protected]>Reviewed-by Konrad Rzeszutek Wilk <[email protected]>
Committed! Err... Sorry, I forgot to add your Reviewed-by.
Daniel