diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-12-16 03:55:47 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-12-16 03:55:47 +0000 |
commit | 4f068c1448d4f7b46f3463501f59255098660746 (patch) | |
tree | c45b40f1dcb2a76dd9726d1469d914da39a52861 /sys | |
parent | bf051c7ccb53c66bad13f582d15e2c1775b376cb (diff) |
do not use a label_t in the pcb. label_t may not exist in all contexts,
and causes a real pain with _KERNEL that we wish to avoid for sys/user.h
so clone a label_t thingy here
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/mips64/include/pcb.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/arch/mips64/include/pcb.h b/sys/arch/mips64/include/pcb.h index 71531d91d1c..e959c672ec6 100644 --- a/sys/arch/mips64/include/pcb.h +++ b/sys/arch/mips64/include/pcb.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pcb.h,v 1.2 2005/08/07 07:29:44 miod Exp $ */ +/* $OpenBSD: pcb.h,v 1.3 2005/12/16 03:55:46 deraadt Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -45,10 +45,11 @@ /* * MIPS process control block. This is first in the U-area. */ -struct pcb -{ +struct pcb { struct trap_frame pcb_regs; /* saved CPU and registers */ - label_t pcb_context; /* kernel context for resume */ + struct { + register_t val[14]; + } pcb_context; /* kernel context for resume */ int pcb_onfault; /* for copyin/copyout faults */ int pcb_kernel; void *pcb_segtab; /* copy of pmap pm_segtab */ |