All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] doc: global data pointer on x86, x86_64
@ 2020-12-13 13:14 Heinrich Schuchardt
  2020-12-15  4:00 ` Simon Glass
  0 siblings, 1 reply; 2+ messages in thread
From: Heinrich Schuchardt @ 2020-12-13 13:14 UTC (permalink / raw)
  To: u-boot

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@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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH 1/1] doc: global data pointer on x86, x86_64
  2020-12-13 13:14 [PATCH 1/1] doc: global data pointer on x86, x86_64 Heinrich Schuchardt
@ 2020-12-15  4:00 ` Simon Glass
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Glass @ 2020-12-15  4:00 UTC (permalink / raw)
  To: u-boot

On Sun, 13 Dec 2020 at 06:14, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
>
> 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@gmx.de>
> ---
>  doc/develop/global_data.rst | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg@chromium.org>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-15  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-13 13:14 [PATCH 1/1] doc: global data pointer on x86, x86_64 Heinrich Schuchardt
2020-12-15  4:00 ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.