summaryrefslogtreecommitdiff
path: root/sys/arch/sgi
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>2004-08-08 14:21:28 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>2004-08-08 14:21:28 +0000
commitbadf9a5ca2736f560550a0544450d6a099cf391b (patch)
tree9099dca89beca21d45cf37b237c0f436bf4a5234 /sys/arch/sgi
parent6ef5a56a66746c2c514430bfc93f651cc3e8a5ef (diff)
Various fixes and cleanups from miod@, tested and OK.
Diffstat (limited to 'sys/arch/sgi')
-rw-r--r--sys/arch/sgi/sgi/genassym.cf41
1 files changed, 22 insertions, 19 deletions
diff --git a/sys/arch/sgi/sgi/genassym.cf b/sys/arch/sgi/sgi/genassym.cf
index cc590c68b3e..4c8cb4cc8ef 100644
--- a/sys/arch/sgi/sgi/genassym.cf
+++ b/sys/arch/sgi/sgi/genassym.cf
@@ -1,4 +1,4 @@
-# $OpenBSD: genassym.cf,v 1.1 2004/08/06 21:12:19 pefo Exp $ */
+# $OpenBSD: genassym.cf,v 1.2 2004/08/08 14:21:27 pefo Exp $ */
#
# Copyright (c) 1997 Per Fogelstrom / Opsycon AB
#
@@ -33,22 +33,25 @@ include <sys/user.h>
export SONPROC
-define P_FORW offsetof(struct proc, p_forw)
-define P_BACK offsetof(struct proc, p_back)
-define P_PRIORITY offsetof(struct proc, p_priority)
-define P_STAT offsetof(struct proc, p_stat)
-define P_ADDR offsetof(struct proc, p_addr)
-#define P_UPTE offsetof(struct proc, p_md.md_upte)
-define P_PC_CTRL offsetof(struct proc, p_md.md_pc_ctrl)
-define P_PC_COUNT offsetof(struct proc, p_md.md_pc_count)
-define P_WATCH_1 offsetof(struct proc, p_md.md_watch_1)
-define P_WATCH_2 offsetof(struct proc, p_md.md_watch_2)
-define P_WATCH_M offsetof(struct proc, p_md.md_watch_m)
-define U_PCB_REGS offsetof(struct user, u_pcb.pcb_regs.zero)
-define U_PCB_FPREGS offsetof(struct user, u_pcb.pcb_regs.f0)
-define U_PCB_CONTEXT offsetof(struct user, u_pcb.pcb_context)
-define U_PCB_ONFAULT offsetof(struct user, u_pcb.pcb_onfault)
-define U_PCB_SEGTAB offsetof(struct user, u_pcb.pcb_segtab)
+struct proc
+member p_forw
+member p_back
+member p_priority
+member p_stat
+member p_addr
+#member P_UPTE p_md.md_upte
+member P_PC_CTRL p_md.md_pc_ctrl
+member P_PC_COUNT p_md.md_pc_count
+member P_WATCH_1 p_md.md_watch_1
+member P_WATCH_2 p_md.md_watch_2
+member P_WATCH_M p_md.md_watch_m
-define VM_MIN_KERNEL_ADDRESS VM_MIN_KERNEL_ADDRESS
-define SIGFPE SIGFPE
+struct user
+member U_PCB_REGS u_pcb.pcb_regs.zero
+member U_PCB_FPREGS u_pcb.pcb_regs.f0
+member U_PCB_CONTEXT u_pcb.pcb_context
+member U_PCB_ONFAULT u_pcb.pcb_onfault
+member U_PCB_SEGTAB u_pcb.pcb_segtab
+
+export VM_MIN_KERNEL_ADDRESS
+export SIGFPE