[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[MULTIBOOT2 DOC PATCH v3 11/13] multiboot2: Add C structure members alig
From: |
Daniel Kiper |
Subject: |
[MULTIBOOT2 DOC PATCH v3 11/13] multiboot2: Add C structure members alignment and padding consideration section |
Date: |
Tue, 6 Dec 2016 23:52:59 +0100 |
Signed-off-by: Daniel Kiper <address@hidden>
---
v2 - suggestions/fixes:
- rephrase whole section
(suggested by Andrew Cooper).
---
doc/multiboot.texi | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/doc/multiboot.texi b/doc/multiboot.texi
index 35f2bed..f566114 100644
--- a/doc/multiboot.texi
+++ b/doc/multiboot.texi
@@ -1398,6 +1398,7 @@ document, but are included for prospective operating
system and boot
loader writers.
@menu
+* C structure members alignment and padding consideration::
* Notes on PC::
* BIOS device mapping techniques::
* Example OS code::
@@ -1405,6 +1406,16 @@ loader writers.
@end menu
address@hidden C structure members alignment and padding consideration
address@hidden C structure members alignment and padding consideration
+
+It is preferred that the structures used for communication between the
bootloader
+and the OS image conform to chosen ABI for a given architecture. If it is not
+possible then GCC @samp{__attribute__ ((__packed__))} (or anything else which
has
+similar meaning for chosen C compiler) have to be added to relevant structures
+definitions to avoid spurious, in this case, padding and alignment.
+
+
@node Notes on PC
@section Notes on PC
--
1.7.10.4
- [MULTIBOOT2 DOC PATCH v3 04/13] multiboot2: Replace redundant if with the, (continued)
- [MULTIBOOT2 DOC PATCH v3 04/13] multiboot2: Replace redundant if with the, Daniel Kiper, 2016/12/06
- [MULTIBOOT2 DOC PATCH v3 05/13] multiboot2: Clarify meaning of information request header tag, Daniel Kiper, 2016/12/06
- [MULTIBOOT2 DOC PATCH v3 03/13] multiboot2: Rename Multiboot to Multiboot2, Daniel Kiper, 2016/12/06
- [MULTIBOOT2 DOC PATCH v3 06/13] multiboot2: Fix description of EFI boot services tag, Daniel Kiper, 2016/12/06
- [MULTIBOOT2 DOC PATCH v3 07/13] multiboot2: Add description of support for EFI boot services, Daniel Kiper, 2016/12/06
- [MULTIBOOT2 DOC PATCH v3 10/13] multiboot2: Say that memory maps may not be available on EFI platforms, Daniel Kiper, 2016/12/06
- [MULTIBOOT2 DOC PATCH v3 08/13] multiboot2: Add description of EFI image handle tags, Daniel Kiper, 2016/12/06
- [MULTIBOOT2 DOC PATCH v3 09/13] multiboot2: Add description of support for relocatable images, Daniel Kiper, 2016/12/06
- [MULTIBOOT2 DOC PATCH v3 11/13] multiboot2: Add C structure members alignment and padding consideration section,
Daniel Kiper <=
- [MULTIBOOT2 DOC PATCH v3 12/13] multiboot2: Add me to authors, Daniel Kiper, 2016/12/06
- [MULTIBOOT2 DOC PATCH v3 13/13] multiboot2: Bump version to 2.0, Daniel Kiper, 2016/12/06
- Re: [MULTIBOOT2 DOC PATCH v3 00/13] multiboot2: Update documentation, Konrad Rzeszutek Wilk, 2016/12/06
- Re: [MULTIBOOT2 DOC PATCH v3 00/13] multiboot2: Update documentation, Daniel Kiper, 2016/12/09