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

Annotation of sys/arch/arm/arm/genassym.cf, Revision 1.1.1.1

1.1       nbrk        1: #      $OpenBSD: genassym.cf,v 1.7 2007/05/14 07:07:09 art Exp $
                      2: #      $NetBSD: genassym.cf,v 1.27 2003/11/04 10:33:16 dsl Exp$
                      3:
                      4: # Copyright (c) 1982, 1990 The Regents of the University of California.
                      5: # All rights reserved.
                      6: #
                      7: # This code is derived from software contributed to Berkeley by
                      8: # William Jolitz.
                      9: #
                     10: # Redistribution and use in source and binary forms, with or without
                     11: # modification, are permitted provided that the following conditions
                     12: # are met:
                     13: # 1. Redistributions of source code must retain the above copyright
                     14: #    notice, this list of conditions and the following disclaimer.
                     15: # 2. Redistributions in binary form must reproduce the above copyright
                     16: #    notice, this list of conditions and the following disclaimer in the
                     17: #    documentation and/or other materials provided with the distribution.
                     18: # 3. Neither the name of the University nor the names of its contributors
                     19: #    may be used to endorse or promote products derived from this software
                     20: #    without specific prior written permission.
                     21: #
                     22: # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
                     23: # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
                     24: # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
                     25: # ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
                     26: # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
                     27: # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
                     28: # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
                     29: # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
                     30: # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
                     31: # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
                     32: # SUCH DAMAGE.
                     33:
                     34: include <sys/param.h>
                     35: include <sys/proc.h>
                     36: include <sys/systm.h>
                     37: include <sys/mbuf.h>
                     38: include <sys/resourcevar.h>
                     39: include <sys/device.h>
                     40: include <sys/user.h>
                     41: include <sys/signal.h>
                     42: include <sys/mbuf.h>
                     43: include <sys/socketvar.h>
                     44: include <netinet/in.h>
                     45: include <netinet/in_systm.h>
                     46: include <netinet/ip.h>
                     47: include <netinet/ip6.h>
                     48: include <netinet/ip_var.h>
                     49:
                     50: include <machine/cpu.h>
                     51: include <uvm/uvm_extern.h>
                     52:
                     53: include <arm/fiq.h>
                     54:
                     55: include <machine/pmap.h>
                     56: include <machine/frame.h>
                     57: include <machine/vmparam.h>
                     58:
                     59: define __PROG32                1
                     60: ifdef __ARM_FIQ_INDIRECT
                     61: define __ARM_FIQ_INDIRECT      1
                     62: endif
                     63:
                     64: export VM_MIN_ADDRESS
                     65: export VM_MAXUSER_ADDRESS
                     66:
                     67: export DOMAIN_CLIENT
                     68: export PMAP_DOMAIN_KERNEL
                     69:
                     70: ifdef PMAP_INCLUDE_PTE_SYNC
                     71: define PMAP_INCLUDE_PTE_SYNC   1
                     72: endif
                     73:
                     74: export PAGE_SIZE
                     75: export UPAGES
                     76: export PAGE_SHIFT
                     77:
                     78: # Important offsets into the lwp and proc structs & associated constants
                     79: export P_TRACED
                     80: export P_PROFIL
                     81:
                     82: export SONPROC
                     83:
                     84: struct proc
                     85: member p_forw
                     86: member p_back
                     87: member p_addr
                     88: member p_priority
                     89: member p_wchan
                     90: member p_stat
                     91: # XXX use PROC_SIZEOF in new code whenever possible
                     92: define PROCSIZE                sizeof(struct proc)
                     93:
                     94: struct pcb
                     95: member pcb_tf
                     96: member pcb_pagedir
                     97: member pcb_pl1vec
                     98: member pcb_l1vec
                     99: member pcb_dacr
                    100: member pcb_cstate
                    101: member pcb_flags
                    102: member PCB_R8                  pcb_un.un_32.pcb32_r8
                    103: member PCB_R9                  pcb_un.un_32.pcb32_r9
                    104: member PCB_R10                 pcb_un.un_32.pcb32_r10
                    105: member PCB_R11                 pcb_un.un_32.pcb32_r11
                    106: member PCB_R12                 pcb_un.un_32.pcb32_r12
                    107: member PCB_SP                  pcb_un.un_32.pcb32_sp
                    108: member PCB_LR                  pcb_un.un_32.pcb32_lr
                    109: member PCB_PC                  pcb_un.un_32.pcb32_pc
                    110: member PCB_UND_SP              pcb_un.un_32.pcb32_und_sp
                    111: member pcb_onfault
                    112: # XXX use USER_SIZEOF in new code whenever possible
                    113: define USER_SIZE               sizeof(struct user)
                    114:
                    115: struct uvmexp
                    116: member V_TRAP                  traps
                    117: member V_INTR                  intrs
                    118: member V_SOFT                  softs
                    119:
                    120: struct vmspace
                    121: member vm_map
                    122: member VM_PMAP                 vm_map.pmap
                    123:
                    124: union  pmap_cache_state
                    125: member cs_tlb_id
                    126: member cs_tlb_d
                    127: member cs_tlb
                    128: member cs_cache_id
                    129: member cs_cache_d
                    130: member cs_cache
                    131: member cs_all
                    132:
                    133: struct pmap
                    134: member PMAP_CSTATE             pm_cstate
                    135:
                    136: struct uprof
                    137: member pr_base
                    138: member pr_size
                    139: member pr_off
                    140: member pr_scale
                    141:
                    142: export SIGTRAP
                    143: export SIGEMT
                    144:
                    145: struct sigframe
                    146: member SIGF_SC                 sf_sc
                    147:
                    148: struct trapframe
                    149: member tf_r0
                    150: member tf_r10
                    151: member tf_pc
                    152: # XXX use TRAFRAME_SIZEOF in new code whenever possible
                    153: define TRAPFRAMESIZE           sizeof(struct trapframe)
                    154:
                    155: struct cpu_functions
                    156: member cf_idcache_wbinv_all
                    157: member cf_dcache_wb_range
                    158: member cf_tlb_flushID_SE
                    159: member cf_context_switch
                    160: member cf_sleep
                    161: member cf_control
                    162:
                    163: struct cpu_info
                    164: #member        CI_CURPRIORITY          ci_schedstate.spc_curpriority
                    165: member ci_curproc
                    166: #member        ci_curpcb
                    167:
                    168: # Constants required for in_cksum() and friends.
                    169: define M_LEN                   offsetof(struct mbuf, m_len)
                    170: define M_DATA                  offsetof(struct mbuf, m_data)
                    171: define M_NEXT                  offsetof(struct mbuf, m_next)
                    172: define IP_SRC                  offsetof(struct ip, ip_src)
                    173: define IP_DST                  offsetof(struct ip, ip_dst)

CVSweb