Annotation of sys/arch/mac68k/mac68k/genassym.cf, Revision 1.1
1.1 ! nbrk 1: # $OpenBSD: genassym.cf,v 1.14 2006/01/01 13:14:44 miod Exp $
! 2: # $NetBSD: genassym.cf,v 1.7 1998/01/06 08:46:16 thorpej Exp $
! 3:
! 4: #
! 5: # Copyright (c) 1990 The Regents of the University of California.
! 6: # 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 7.8 (Berkeley) 5/7/91
! 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/systm.h>
! 42: include <sys/types.h>
! 43: include <sys/user.h>
! 44:
! 45: include <uvm/uvm_extern.h>
! 46:
! 47: include <machine/cpu.h>
! 48: include <machine/psl.h>
! 49: include <machine/reg.h>
! 50: include <machine/pte.h>
! 51:
! 52: # proc fields and values
! 53: struct proc
! 54: member P_MD_REGS p_md.md_regs
! 55: member P_MD_FLAGS p_md.md_flags
! 56:
! 57: # PSL values
! 58: export PSL_S
! 59: export PSL_IPL7
! 60: export PSL_LOWIPL
! 61: export PSL_USER
! 62: define PSL_TS PSL_T | PSL_S
! 63: define SPL1 PSL_S | PSL_IPL1
! 64:
! 65: # pte/ste bits
! 66: export PG_FRAME
! 67:
! 68: # general constants
! 69: export USPACE
! 70: export PGSHIFT
! 71: export USRSTACK
! 72:
! 73: # pcb fields
! 74: struct pcb
! 75: member pcb_ps
! 76: member pcb_usp
! 77: member pcb_regs
! 78: member PCB_FPCTX pcb_fpregs
! 79: define SIZEOF_PCB sizeof(struct pcb)
! 80:
! 81: # exception frame size
! 82: define FR_SIZE sizeof(struct trapframe)
! 83:
! 84: # mac68k-specific
! 85: define CPUINFO_CLASS offsetof(struct cpu_model_info, class)
! 86: export MACH_CLASSAV
CVSweb