This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Mach".
The branch, master has been updated
via 4ecc24148c4c80e6e40fac04d71017e0eee9c5c6 (commit)
from c6bc72a76ba752fb2a4739dfcbeac08ae94e7aaa (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 4ecc24148c4c80e6e40fac04d71017e0eee9c5c6
Author: Damien Zammit <[email protected]>
Date: Sun Jan 18 03:47:07 2026 +0000
x86_64: Implement swapgs logic
This is difficult to get correct: we add r12 register to interrupt state
restore so that every interrupt context knows which mode to return to
for swapgs. Testing if gs base is negative is enough to know which mode
to enter from, since user cannot set gs base negative currently.
(That would require FSGSBASE cpu feature enabled, but for now we leave
it disabled).
syscall64 enters with interrupts disabled and requires swapgs at
beginning and end, as it is known to be called only from userspace.
Message-ID: <[email protected]>
-----------------------------------------------------------------------
Summary of changes:
i386/i386/gdt.c | 18 +++++++++++
i386/i386/ldt.c | 2 +-
i386/i386/pcb.c | 8 +++--
i386/i386/thread.h | 1 +
x86_64/boothdr.S | 2 --
x86_64/locore.S | 92 +++++++++++++++++++++++++++++++++++++++++++-----------
6 files changed, 98 insertions(+), 25 deletions(-)
hooks/post-receive
--
GNU Mach