diff options
author | Ian Moffett <ian@osmora.org> | 2025-09-17 22:35:25 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-09-17 22:35:25 -0400 |
commit | 2449ae9a00482636bd8e96c4bdb38e3dbb380cd7 (patch) | |
tree | 61ea8cadebb48941967c8eff969e19753bc7c0e0 /src/sys/arch/amd64/cpu | |
parent | 79822e485edb7b447ab8cb17fdc0f572b598d829 (diff) |
kern/amd64: syscall: Use current platform latch
Use the current platform latch when selecting a syscall window from the
current domain.
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/arch/amd64/cpu')
-rw-r--r-- | src/sys/arch/amd64/cpu/trap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sys/arch/amd64/cpu/trap.c b/src/sys/arch/amd64/cpu/trap.c index d023923..921a036 100644 --- a/src/sys/arch/amd64/cpu/trap.c +++ b/src/sys/arch/amd64/cpu/trap.c @@ -173,7 +173,7 @@ trap_syscall(struct trapframe *tf) /* Get the current window */ self = pcore->curproc; scdp = &self->scdom; - scwp = &scdp->slots[0]; + scwp = &scdp->slots[scdp->platch]; if (scwp->sctab == NULL && scwp->p == 0) { printf("trap_syscall: no sctab (platch=%x)\n", scdp->platch); return; |