From 2449ae9a00482636bd8e96c4bdb38e3dbb380cd7 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 17 Sep 2025 22:35:25 -0400 Subject: 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 --- src/sys/arch/amd64/cpu/trap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3