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'.
This commit is contained in:
parent
cfe60d7a95
commit
8b277a3d68
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue