[PATCH 1/1] doc: global data pointer on x86, x86_64

Heinrich Schuchardt xypron.glpk at gmx.de
Sun Dec 13 14:14:43 CET 2020


On x86 the global data pointer is stored in register fs.
On x86_64 no register is used for the global data pointer.

Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
---
 doc/develop/global_data.rst | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/doc/develop/global_data.rst b/doc/develop/global_data.rst
index 9e7c8a24da..230ebcd860 100644
--- a/doc/develop/global_data.rst
+++ b/doc/develop/global_data.rst
@@ -33,8 +33,10 @@ On most architectures the global data pointer is stored in a register.
 +------------+----------+
 | SuperH     | r13      |
 +------------+----------+
+| x86 32bit  | fs       |
++------------+----------+

-The sandbox, x86, and Xtensa are notable exceptions.
+The sandbox, x86_64, and Xtensa are notable exceptions.

 Clang for ARM does not support assigning a global register. When using Clang
 gd is defined as an inline function using assembly code. This adds a few bytes
--
2.28.0



More information about the U-Boot mailing list