From 8b277a3d6896c4d6b1fe05904946db4928b751d0 Mon Sep 17 00:00:00 2001 From: fvdl Date: Tue, 28 May 2002 23:09:36 +0000 Subject: [PATCH] Add definition for CPU-private data (in a remapped page in the data segment). Somewhat of a kludge to be able to switch stack pointers in in the syscall entry point without clobering a register, avoiding the terror of 'swapgs'. --- sys/arch/x86_64/include/frameasm.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/arch/x86_64/include/frameasm.h b/sys/arch/x86_64/include/frameasm.h index 44d896d4df2e..a6d2a2a8ac1e 100644 --- a/sys/arch/x86_64/include/frameasm.h +++ b/sys/arch/x86_64/include/frameasm.h @@ -1,4 +1,4 @@ -/* $NetBSD: frameasm.h,v 1.1 2001/06/19 00:20:10 fvdl Exp $ */ +/* $NetBSD: frameasm.h,v 1.2 2002/05/28 23:09:36 fvdl Exp $ */ #ifndef _X86_64_MACHINE_FRAMEASM_H #define _X86_64_MACHINE_FRAMEASM_H @@ -50,4 +50,6 @@ addq $16,%rsp ; \ iretq +#define CPUPRIV(off) (cpu_private+CPRIV_/**/off)(%rip) + #endif /* _X86_64_MACHINE_FRAMEASM_H */