[BACK]Return to genassym.cf CVS log [TXT][DIR] Up to [local] / sys / arch / arm / arm

File: [local] / sys / arch / arm / arm / genassym.cf (download)

Revision 1.1, Tue Mar 4 16:05:09 2008 UTC (16 years, 2 months ago) by nbrk
Branch point for: MAIN

Initial revision

#	$OpenBSD: genassym.cf,v 1.7 2007/05/14 07:07:09 art Exp $
#	$NetBSD: genassym.cf,v 1.27 2003/11/04 10:33:16 dsl Exp$

# Copyright (c) 1982, 1990 The Regents of the University of California.
# All rights reserved.
#
# This code is derived from software contributed to Berkeley by
# William Jolitz.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
# 3. Neither the name of the University nor the names of its contributors
#    may be used to endorse or promote products derived from this software
#    without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.

include <sys/param.h>
include <sys/proc.h>
include <sys/systm.h>
include <sys/mbuf.h>
include <sys/resourcevar.h>
include <sys/device.h>
include <sys/user.h>
include <sys/signal.h>
include <sys/mbuf.h>
include <sys/socketvar.h>
include <netinet/in.h>
include <netinet/in_systm.h>
include <netinet/ip.h>
include <netinet/ip6.h>
include <netinet/ip_var.h>

include <machine/cpu.h>
include <uvm/uvm_extern.h>

include <arm/fiq.h>

include <machine/pmap.h>
include <machine/frame.h>
include <machine/vmparam.h>

define	__PROG32		1
ifdef __ARM_FIQ_INDIRECT
define	__ARM_FIQ_INDIRECT	1
endif

export	VM_MIN_ADDRESS
export	VM_MAXUSER_ADDRESS

export	DOMAIN_CLIENT
export	PMAP_DOMAIN_KERNEL

ifdef PMAP_INCLUDE_PTE_SYNC
define	PMAP_INCLUDE_PTE_SYNC	1
endif

export	PAGE_SIZE
export	UPAGES
export	PAGE_SHIFT

# Important offsets into the lwp and proc structs & associated constants
export	P_TRACED
export	P_PROFIL

export	SONPROC

struct	proc
member	p_forw
member	p_back
member	p_addr
member	p_priority
member	p_wchan
member	p_stat
# XXX use PROC_SIZEOF in new code whenever possible
define	PROCSIZE		sizeof(struct proc)

struct	pcb
member	pcb_tf
member	pcb_pagedir
member	pcb_pl1vec
member	pcb_l1vec
member	pcb_dacr
member	pcb_cstate
member	pcb_flags
member	PCB_R8			pcb_un.un_32.pcb32_r8
member	PCB_R9			pcb_un.un_32.pcb32_r9
member	PCB_R10			pcb_un.un_32.pcb32_r10
member	PCB_R11			pcb_un.un_32.pcb32_r11
member	PCB_R12			pcb_un.un_32.pcb32_r12
member	PCB_SP			pcb_un.un_32.pcb32_sp
member	PCB_LR			pcb_un.un_32.pcb32_lr
member	PCB_PC			pcb_un.un_32.pcb32_pc
member	PCB_UND_SP		pcb_un.un_32.pcb32_und_sp
member	pcb_onfault
# XXX use USER_SIZEOF in new code whenever possible
define	USER_SIZE		sizeof(struct user)

struct	uvmexp
member	V_TRAP			traps
member	V_INTR			intrs
member	V_SOFT			softs

struct	vmspace
member	vm_map
member	VM_PMAP			vm_map.pmap

union	pmap_cache_state
member	cs_tlb_id
member	cs_tlb_d
member	cs_tlb
member	cs_cache_id
member	cs_cache_d
member	cs_cache
member	cs_all

struct	pmap
member	PMAP_CSTATE		pm_cstate

struct	uprof
member	pr_base
member	pr_size
member	pr_off
member	pr_scale

export	SIGTRAP
export	SIGEMT

struct	sigframe
member	SIGF_SC			sf_sc

struct	trapframe
member	tf_r0
member	tf_r10
member	tf_pc
# XXX use TRAFRAME_SIZEOF in new code whenever possible
define	TRAPFRAMESIZE		sizeof(struct trapframe)

struct	cpu_functions
member	cf_idcache_wbinv_all
member	cf_dcache_wb_range
member	cf_tlb_flushID_SE
member	cf_context_switch
member	cf_sleep
member	cf_control

struct	cpu_info
#member	CI_CURPRIORITY		ci_schedstate.spc_curpriority
member	ci_curproc
#member	ci_curpcb

# Constants required for in_cksum() and friends.
define	M_LEN			offsetof(struct mbuf, m_len)
define	M_DATA			offsetof(struct mbuf, m_data)
define	M_NEXT			offsetof(struct mbuf, m_next)
define	IP_SRC			offsetof(struct ip, ip_src)
define	IP_DST			offsetof(struct ip, ip_dst)