Annotation of sys/arch/hp300/hp300/genassym.cf, Revision 1.1.1.1
1.1 nbrk 1: # $OpenBSD: genassym.cf,v 1.21 2005/09/27 22:05:37 miod Exp $
2: # $NetBSD: genassym.cf,v 1.11 1998/02/16 20:58:29 thorpej Exp $
3:
4: #
5: # Copyright (c) 1982, 1990, 1993
6: # The Regents of the University of California. All rights reserved.
7: #
8: # Redistribution and use in source and binary forms, with or without
9: # modification, are permitted provided that the following conditions
10: # are met:
11: # 1. Redistributions of source code must retain the above copyright
12: # notice, this list of conditions and the following disclaimer.
13: # 2. Redistributions in binary form must reproduce the above copyright
14: # notice, this list of conditions and the following disclaimer in the
15: # documentation and/or other materials provided with the distribution.
16: # 3. Neither the name of the University nor the names of its contributors
17: # may be used to endorse or promote products derived from this software
18: # without specific prior written permission.
19: #
20: # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21: # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22: # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23: # ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24: # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25: # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26: # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27: # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28: # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29: # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30: # SUCH DAMAGE.
31: #
32: # @(#)genassym.c 8.3 (Berkeley) 1/4/94
33: #
34:
35: include <sys/param.h>
36: include <sys/buf.h>
37: include <sys/proc.h>
38: include <sys/mbuf.h>
39: include <sys/msgbuf.h>
40: include <sys/syscall.h>
41: include <sys/user.h>
42:
43: include <uvm/uvm_extern.h>
44:
45: include <machine/hp300spu.h>
46: include <machine/cpu.h>
47: include <machine/psl.h>
48: include <machine/reg.h>
49: include <machine/pte.h>
50:
51: include <hp300/dev/frodoreg.h>
52: include <hp300/hp300/clockreg.h>
53:
54: # values for machineid
55: export HP_320
56: export HP_330
57: export HP_340
58: export HP_345
59: export HP_350
60: export HP_360
61: export HP_362
62: export HP_370
63: export HP_375
64: export HP_380
65: export HP_382
66: export HP_385
67: export HP_400
68: export HP_425
69: export HP_433
70:
71: # values for mmuid
72: export MMUID_345
73: export MMUID_375
74: export MMUID_382
75: export MMUID_385
76: export MMUID_425_T
77: export MMUID_425_S
78: export MMUID_433_T
79: export MMUID_433_S
80: export MMUID_425_E
81:
82: export MMUID_SHIFT
83: export MMUID_MASK
84:
85: # values for ectype
86: export EC_PHYS
87: export EC_NONE
88: export EC_VIRT
89:
90: # general constants
91: export UPAGES
92: export USPACE
93: export PGSHIFT
94: export USRSTACK
95: export MAXADDR
96:
97: # proc fields and values
98: struct proc
99: member P_MD_FLAGS p_md.md_flags
100: member P_MD_REGS p_md.md_regs
101:
102: export SSLEEP
103:
104: # PSL values
105: export PSL_S
106: export PSL_IPL7
107: export PSL_LOWIPL
108: export PSL_USER
109: define PSL_TS PSL_T | PSL_S
110: define SPL1 PSL_S | PSL_IPL1
111: define SPL2 PSL_S | PSL_IPL2
112: define SPL3 PSL_S | PSL_IPL3
113: define SPL4 PSL_S | PSL_IPL4
114: define SPL5 PSL_S | PSL_IPL5
115: define SPL6 PSL_S | PSL_IPL6
116:
117: # magic
118: export FC_PURGE
119: export INTIOBASE
120: export MMUBASE
121: export MMUSTAT
122: export MMUCMD
123: export MMUSSTP
124: export MMUUSTP
125: export MMUTBINVAL
126: export MMU_BERR
127: export MMU_ENAB
128: export MMU_FAULT
129: export MMU_CEN
130: export MMU_IEN
131: export MMU_FPE
132: export CACHE_ON
133: export CACHE_OFF
134: export CACHE_CLR
135: export IC_CLEAR
136: export DC_CLEAR
137:
138: # pte/ste bits
139: export PG_V
140: export PG_NV
141: export PG_RO
142: export PG_RW
143: export PG_CI
144: export PG_PROT
145: export PG_FRAME
146: export SG_V
147: export SG_NV
148: export SG_RW
149: export SG_FRAME
150: export SG_ISHIFT
151:
152: # pcb fields
153: struct pcb
154: member pcb_ps
155: member pcb_usp
156: member pcb_regs
157: member PCB_FPCTX pcb_fpregs
158: define SIZEOF_PCB sizeof(struct pcb)
159:
160: # exception frame size
161: define FR_SIZE sizeof(struct trapframe)
162:
163: # system calls
164: export SYS_execve
165:
166: # clock registers
167: export CLKSR
168: export CLKMSB1
169: export CLKMSB3
170:
171: # frodo physical address
172: export FRODO_BASE
CVSweb