The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/powerpc/powerpc/genassym.c

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*-
    2  * Copyright (c) 1982, 1990 The Regents of the University of California.
    3  * All rights reserved.
    4  *
    5  * This code is derived from software contributed to Berkeley by
    6  * William Jolitz.
    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  * 4. 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  *      from: @(#)genassym.c    5.11 (Berkeley) 5/10/91
   33  * $FreeBSD: releng/8.0/sys/powerpc/powerpc/genassym.c 192532 2009-05-21 11:43:37Z raj $
   34  */
   35 
   36 #include <sys/param.h>
   37 #include <sys/assym.h>
   38 #include <sys/errno.h>
   39 #include <sys/ktr.h>
   40 #include <sys/proc.h>
   41 #include <sys/queue.h>
   42 #include <sys/signal.h>
   43 #include <sys/smp.h>
   44 #include <sys/systm.h>
   45 #include <sys/ucontext.h>
   46 #include <sys/ucontext.h>
   47 #include <sys/vmmeter.h>
   48 
   49 #include <vm/vm.h>
   50 #include <vm/vm_param.h>
   51 #include <vm/pmap.h>
   52 #include <vm/vm_map.h>
   53 
   54 #include <machine/pcb.h>
   55 #include <machine/pmap.h>
   56 #include <machine/sigframe.h>
   57 
   58 ASSYM(PC_CURTHREAD, offsetof(struct pcpu, pc_curthread));
   59 ASSYM(PC_CURPCB, offsetof(struct pcpu, pc_curpcb));
   60 ASSYM(PC_CURPMAP, offsetof(struct pcpu, pc_curpmap));
   61 ASSYM(PC_TEMPSAVE, offsetof(struct pcpu, pc_tempsave));
   62 ASSYM(PC_DISISAVE, offsetof(struct pcpu, pc_disisave));
   63 ASSYM(PC_DBSAVE, offsetof(struct pcpu, pc_dbsave));
   64 
   65 #ifdef E500
   66 ASSYM(PC_BOOKE_CRITSAVE, offsetof(struct pcpu, pc_booke_critsave));
   67 ASSYM(PC_BOOKE_MCHKSAVE, offsetof(struct pcpu, pc_booke_mchksave));
   68 ASSYM(PC_BOOKE_TLBSAVE, offsetof(struct pcpu, pc_booke_tlbsave));
   69 ASSYM(PC_BOOKE_TLB_LEVEL, offsetof(struct pcpu, pc_booke_tlb_level));
   70 ASSYM(PC_BOOKE_TLB_LOCK, offsetof(struct pcpu, pc_booke_tlb_lock));
   71 #endif
   72 
   73 ASSYM(CPUSAVE_R28, CPUSAVE_R28*4);
   74 ASSYM(CPUSAVE_R29, CPUSAVE_R29*4);
   75 ASSYM(CPUSAVE_R30, CPUSAVE_R30*4);
   76 ASSYM(CPUSAVE_R31, CPUSAVE_R31*4);
   77 ASSYM(CPUSAVE_SRR0, CPUSAVE_SRR0*4);
   78 ASSYM(CPUSAVE_SRR1, CPUSAVE_SRR1*4);
   79 ASSYM(CPUSAVE_AIM_DAR, CPUSAVE_AIM_DAR*4);
   80 ASSYM(CPUSAVE_AIM_DSISR, CPUSAVE_AIM_DSISR*4);
   81 ASSYM(CPUSAVE_BOOKE_DEAR, CPUSAVE_BOOKE_DEAR*4);
   82 ASSYM(CPUSAVE_BOOKE_ESR, CPUSAVE_BOOKE_ESR*4);
   83 
   84 ASSYM(TLBSAVE_BOOKE_LR, TLBSAVE_BOOKE_LR*4);
   85 ASSYM(TLBSAVE_BOOKE_CR, TLBSAVE_BOOKE_CR*4);
   86 ASSYM(TLBSAVE_BOOKE_SRR0, TLBSAVE_BOOKE_SRR0*4);
   87 ASSYM(TLBSAVE_BOOKE_SRR1, TLBSAVE_BOOKE_SRR1*4);
   88 ASSYM(TLBSAVE_BOOKE_R20, TLBSAVE_BOOKE_R20*4);
   89 ASSYM(TLBSAVE_BOOKE_R21, TLBSAVE_BOOKE_R21*4);
   90 ASSYM(TLBSAVE_BOOKE_R22, TLBSAVE_BOOKE_R22*4);
   91 ASSYM(TLBSAVE_BOOKE_R23, TLBSAVE_BOOKE_R23*4);
   92 ASSYM(TLBSAVE_BOOKE_R24, TLBSAVE_BOOKE_R24*4);
   93 ASSYM(TLBSAVE_BOOKE_R25, TLBSAVE_BOOKE_R25*4);
   94 ASSYM(TLBSAVE_BOOKE_R26, TLBSAVE_BOOKE_R26*4);
   95 ASSYM(TLBSAVE_BOOKE_R27, TLBSAVE_BOOKE_R27*4);
   96 ASSYM(TLBSAVE_BOOKE_R28, TLBSAVE_BOOKE_R28*4);
   97 ASSYM(TLBSAVE_BOOKE_R29, TLBSAVE_BOOKE_R29*4);
   98 ASSYM(TLBSAVE_BOOKE_R30, TLBSAVE_BOOKE_R30*4);
   99 ASSYM(TLBSAVE_BOOKE_R31, TLBSAVE_BOOKE_R31*4);
  100 
  101 ASSYM(MTX_LOCK, offsetof(struct mtx, mtx_lock));
  102 
  103 #if defined(AIM)
  104 ASSYM(PM_KERNELSR, offsetof(struct pmap, pm_sr[KERNEL_SR]));
  105 ASSYM(PM_USRSR, offsetof(struct pmap, pm_sr[USER_SR]));
  106 ASSYM(PM_SR, offsetof(struct pmap, pm_sr));
  107 #elif defined(E500)
  108 ASSYM(PM_PDIR, offsetof(struct pmap, pm_pdir));
  109 #endif
  110 
  111 #if defined(E500)
  112 ASSYM(PTE_RPN, offsetof(struct pte, rpn));
  113 ASSYM(PTE_FLAGS, offsetof(struct pte, flags));
  114 ASSYM(TLB0_ENTRY_SIZE, sizeof(struct tlb_entry));
  115 #endif
  116 
  117 ASSYM(FSP, 8);
  118 ASSYM(FRAMELEN, FRAMELEN);
  119 ASSYM(FRAME_0, offsetof(struct trapframe, fixreg[0]));
  120 ASSYM(FRAME_1, offsetof(struct trapframe, fixreg[1]));
  121 ASSYM(FRAME_2, offsetof(struct trapframe, fixreg[2]));
  122 ASSYM(FRAME_3, offsetof(struct trapframe, fixreg[3]));
  123 ASSYM(FRAME_4, offsetof(struct trapframe, fixreg[4]));
  124 ASSYM(FRAME_5, offsetof(struct trapframe, fixreg[5]));
  125 ASSYM(FRAME_6, offsetof(struct trapframe, fixreg[6]));
  126 ASSYM(FRAME_7, offsetof(struct trapframe, fixreg[7]));
  127 ASSYM(FRAME_8, offsetof(struct trapframe, fixreg[8]));
  128 ASSYM(FRAME_9, offsetof(struct trapframe, fixreg[9]));
  129 ASSYM(FRAME_10, offsetof(struct trapframe, fixreg[10]));
  130 ASSYM(FRAME_11, offsetof(struct trapframe, fixreg[11]));
  131 ASSYM(FRAME_12, offsetof(struct trapframe, fixreg[12]));
  132 ASSYM(FRAME_13, offsetof(struct trapframe, fixreg[13]));
  133 ASSYM(FRAME_14, offsetof(struct trapframe, fixreg[14]));
  134 ASSYM(FRAME_15, offsetof(struct trapframe, fixreg[15]));
  135 ASSYM(FRAME_16, offsetof(struct trapframe, fixreg[16]));
  136 ASSYM(FRAME_17, offsetof(struct trapframe, fixreg[17]));
  137 ASSYM(FRAME_18, offsetof(struct trapframe, fixreg[18]));
  138 ASSYM(FRAME_19, offsetof(struct trapframe, fixreg[19]));
  139 ASSYM(FRAME_20, offsetof(struct trapframe, fixreg[20]));
  140 ASSYM(FRAME_21, offsetof(struct trapframe, fixreg[21]));
  141 ASSYM(FRAME_22, offsetof(struct trapframe, fixreg[22]));
  142 ASSYM(FRAME_23, offsetof(struct trapframe, fixreg[23]));
  143 ASSYM(FRAME_24, offsetof(struct trapframe, fixreg[24]));
  144 ASSYM(FRAME_25, offsetof(struct trapframe, fixreg[25]));
  145 ASSYM(FRAME_26, offsetof(struct trapframe, fixreg[26]));
  146 ASSYM(FRAME_27, offsetof(struct trapframe, fixreg[27]));
  147 ASSYM(FRAME_28, offsetof(struct trapframe, fixreg[28]));
  148 ASSYM(FRAME_29, offsetof(struct trapframe, fixreg[29]));
  149 ASSYM(FRAME_30, offsetof(struct trapframe, fixreg[30]));
  150 ASSYM(FRAME_31, offsetof(struct trapframe, fixreg[31]));
  151 ASSYM(FRAME_LR, offsetof(struct trapframe, lr));
  152 ASSYM(FRAME_CR, offsetof(struct trapframe, cr));
  153 ASSYM(FRAME_CTR, offsetof(struct trapframe, ctr));
  154 ASSYM(FRAME_XER, offsetof(struct trapframe, xer));
  155 ASSYM(FRAME_SRR0, offsetof(struct trapframe, srr0));
  156 ASSYM(FRAME_SRR1, offsetof(struct trapframe, srr1));
  157 ASSYM(FRAME_EXC, offsetof(struct trapframe, exc));
  158 ASSYM(FRAME_AIM_DAR, offsetof(struct trapframe, cpu.aim.dar));
  159 ASSYM(FRAME_AIM_DSISR, offsetof(struct trapframe, cpu.aim.dsisr));
  160 ASSYM(FRAME_BOOKE_DEAR, offsetof(struct trapframe, cpu.booke.dear));
  161 ASSYM(FRAME_BOOKE_ESR, offsetof(struct trapframe, cpu.booke.esr));
  162 ASSYM(FRAME_BOOKE_DBCR0, offsetof(struct trapframe, cpu.booke.dbcr0));
  163 
  164 ASSYM(CF_FUNC, offsetof(struct callframe, cf_func));
  165 ASSYM(CF_ARG0, offsetof(struct callframe, cf_arg0));
  166 ASSYM(CF_ARG1, offsetof(struct callframe, cf_arg1));
  167 ASSYM(CF_SIZE, sizeof(struct callframe));
  168 
  169 ASSYM(PCB_CONTEXT, offsetof(struct pcb, pcb_context));
  170 ASSYM(PCB_CR, offsetof(struct pcb, pcb_cr));
  171 ASSYM(PCB_SP, offsetof(struct pcb, pcb_sp));
  172 ASSYM(PCB_LR, offsetof(struct pcb, pcb_lr));
  173 ASSYM(PCB_ONFAULT, offsetof(struct pcb, pcb_onfault));
  174 ASSYM(PCB_FLAGS, offsetof(struct pcb, pcb_flags));
  175 ASSYM(PCB_FPU, PCB_FPU);
  176 ASSYM(PCB_VEC, PCB_VEC);
  177 
  178 ASSYM(PCB_AIM_USR, offsetof(struct pcb, pcb_cpu.aim.usr));
  179 ASSYM(PCB_BOOKE_CTR, offsetof(struct pcb, pcb_cpu.booke.ctr));
  180 ASSYM(PCB_BOOKE_XER, offsetof(struct pcb, pcb_cpu.booke.xer));
  181 ASSYM(PCB_BOOKE_DBCR0, offsetof(struct pcb, pcb_cpu.booke.dbcr0));
  182 
  183 ASSYM(TD_LOCK, offsetof(struct thread, td_lock));
  184 ASSYM(TD_PROC, offsetof(struct thread, td_proc));
  185 ASSYM(TD_PCB, offsetof(struct thread, td_pcb));
  186 
  187 ASSYM(P_VMSPACE, offsetof(struct proc, p_vmspace));
  188 
  189 ASSYM(VM_PMAP, offsetof(struct vmspace, vm_pmap));
  190 
  191 ASSYM(TD_FLAGS, offsetof(struct thread, td_flags));
  192 
  193 ASSYM(TDF_ASTPENDING, TDF_ASTPENDING);
  194 ASSYM(TDF_NEEDRESCHED, TDF_NEEDRESCHED);
  195 
  196 ASSYM(SF_UC, offsetof(struct sigframe, sf_uc));
  197 
  198 ASSYM(KERNBASE, KERNBASE);
  199 ASSYM(MAXCOMLEN, MAXCOMLEN);

Cache object: 0a2b8550321d7a2b27679132340d708e


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.