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/6.1/sys/powerpc/powerpc/genassym.c 137906 2004-11-20 02:28:14Z das $
   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 ASSYM(CPUSAVE_R28,CPUSAVE_R28*4);
   66 ASSYM(CPUSAVE_R29,CPUSAVE_R29*4);
   67 ASSYM(CPUSAVE_R30,CPUSAVE_R30*4);
   68 ASSYM(CPUSAVE_R31,CPUSAVE_R31*4);
   69 ASSYM(CPUSAVE_DAR,CPUSAVE_DAR*4);
   70 ASSYM(CPUSAVE_DSISR,CPUSAVE_DSISR*4);
   71 ASSYM(CPUSAVE_SRR0,CPUSAVE_SRR0*4);
   72 ASSYM(CPUSAVE_SRR1,CPUSAVE_SRR1*4);
   73 
   74 ASSYM(MTX_LOCK, offsetof(struct mtx, mtx_lock));
   75 ASSYM(MTX_RECURSECNT, offsetof(struct mtx, mtx_recurse));
   76 
   77 ASSYM(PM_KERNELSR, offsetof(struct pmap, pm_sr[KERNEL_SR]));
   78 ASSYM(PM_USRSR, offsetof(struct pmap, pm_sr[USER_SR]));
   79 ASSYM(PM_SR, offsetof(struct pmap, pm_sr));
   80 
   81 ASSYM(FSP, 8);
   82 ASSYM(FRAMELEN, FRAMELEN);
   83 ASSYM(FRAME_0, offsetof(struct trapframe, fixreg[0]));
   84 ASSYM(FRAME_1, offsetof(struct trapframe, fixreg[1]));
   85 ASSYM(FRAME_2, offsetof(struct trapframe, fixreg[2]));
   86 ASSYM(FRAME_3, offsetof(struct trapframe, fixreg[3]));
   87 ASSYM(FRAME_4, offsetof(struct trapframe, fixreg[4]));
   88 ASSYM(FRAME_5, offsetof(struct trapframe, fixreg[5]));
   89 ASSYM(FRAME_6, offsetof(struct trapframe, fixreg[6]));
   90 ASSYM(FRAME_7, offsetof(struct trapframe, fixreg[7]));
   91 ASSYM(FRAME_8, offsetof(struct trapframe, fixreg[8]));
   92 ASSYM(FRAME_9, offsetof(struct trapframe, fixreg[9]));
   93 ASSYM(FRAME_10, offsetof(struct trapframe, fixreg[10]));
   94 ASSYM(FRAME_11, offsetof(struct trapframe, fixreg[11]));
   95 ASSYM(FRAME_12, offsetof(struct trapframe, fixreg[12]));
   96 ASSYM(FRAME_13, offsetof(struct trapframe, fixreg[13]));
   97 ASSYM(FRAME_14, offsetof(struct trapframe, fixreg[14]));
   98 ASSYM(FRAME_15, offsetof(struct trapframe, fixreg[15]));
   99 ASSYM(FRAME_16, offsetof(struct trapframe, fixreg[16]));
  100 ASSYM(FRAME_17, offsetof(struct trapframe, fixreg[17]));
  101 ASSYM(FRAME_18, offsetof(struct trapframe, fixreg[18]));
  102 ASSYM(FRAME_19, offsetof(struct trapframe, fixreg[19]));
  103 ASSYM(FRAME_20, offsetof(struct trapframe, fixreg[20]));
  104 ASSYM(FRAME_21, offsetof(struct trapframe, fixreg[21]));
  105 ASSYM(FRAME_22, offsetof(struct trapframe, fixreg[22]));
  106 ASSYM(FRAME_23, offsetof(struct trapframe, fixreg[23]));
  107 ASSYM(FRAME_24, offsetof(struct trapframe, fixreg[24]));
  108 ASSYM(FRAME_25, offsetof(struct trapframe, fixreg[25]));
  109 ASSYM(FRAME_26, offsetof(struct trapframe, fixreg[26]));
  110 ASSYM(FRAME_27, offsetof(struct trapframe, fixreg[27]));
  111 ASSYM(FRAME_28, offsetof(struct trapframe, fixreg[28]));
  112 ASSYM(FRAME_29, offsetof(struct trapframe, fixreg[29]));
  113 ASSYM(FRAME_30, offsetof(struct trapframe, fixreg[30]));
  114 ASSYM(FRAME_31, offsetof(struct trapframe, fixreg[31]));
  115 ASSYM(FRAME_LR, offsetof(struct trapframe, lr));
  116 ASSYM(FRAME_CR, offsetof(struct trapframe, cr));
  117 ASSYM(FRAME_CTR, offsetof(struct trapframe, ctr));
  118 ASSYM(FRAME_XER, offsetof(struct trapframe, xer));
  119 ASSYM(FRAME_SRR0, offsetof(struct trapframe, srr0));
  120 ASSYM(FRAME_SRR1, offsetof(struct trapframe, srr1));
  121 ASSYM(FRAME_DAR, offsetof(struct trapframe, dar));
  122 ASSYM(FRAME_DSISR, offsetof(struct trapframe, dsisr));
  123 ASSYM(FRAME_EXC, offsetof(struct trapframe, exc));
  124 
  125 ASSYM(SFRAMELEN, roundup(sizeof(struct switchframe), 16));
  126 
  127 ASSYM(IFRAMELEN, IFRAMELEN);
  128 ASSYM(IFRAME_R1, offsetof(struct intrframe, r1));
  129 ASSYM(IFRAME_SRR1, offsetof(struct intrframe, srr1));
  130 ASSYM(IFRAME_SRR0, offsetof(struct intrframe, srr0));
  131 ASSYM(IFRAME_PRI, offsetof(struct intrframe, pri));
  132 ASSYM(IFRAME_INTR_DEPTH, offsetof(struct intrframe, intr_depth));
  133 ASSYM(IFRAME_VRSAVE, offsetof(struct intrframe, vrsave));
  134 ASSYM(IFRAME_CTR, offsetof(struct intrframe, ctr));
  135 ASSYM(IFRAME_XER, offsetof(struct intrframe, xer));
  136 ASSYM(IFRAME_CR, offsetof(struct intrframe, cr));
  137 ASSYM(IFRAME_LR, offsetof(struct intrframe, lr));
  138 ASSYM(IFRAME_R12, offsetof(struct intrframe, r12));
  139 ASSYM(IFRAME_R11, offsetof(struct intrframe, r11));
  140 ASSYM(IFRAME_R10, offsetof(struct intrframe, r10));
  141 ASSYM(IFRAME_R9, offsetof(struct intrframe, r9));
  142 ASSYM(IFRAME_R8, offsetof(struct intrframe, r8));
  143 ASSYM(IFRAME_R7, offsetof(struct intrframe, r7));
  144 ASSYM(IFRAME_R6, offsetof(struct intrframe, r6));
  145 ASSYM(IFRAME_R5, offsetof(struct intrframe, r5));
  146 ASSYM(IFRAME_R4, offsetof(struct intrframe, r4));
  147 ASSYM(IFRAME_R3, offsetof(struct intrframe, r3));
  148 ASSYM(IFRAME_R0, offsetof(struct intrframe, r0));
  149 
  150 ASSYM(SPFRAMELEN, SPFRAMELEN);
  151 ASSYM(SPFRAME_R1, offsetof(struct spillframe, r1));
  152 ASSYM(SPFRAME_R12, offsetof(struct spillframe, r12));
  153 ASSYM(SPFRAME_R11, offsetof(struct spillframe, r11));
  154 ASSYM(SPFRAME_R10, offsetof(struct spillframe, r10));
  155 ASSYM(SPFRAME_R9, offsetof(struct spillframe, r9));
  156 ASSYM(SPFRAME_R8, offsetof(struct spillframe, r8));
  157 ASSYM(SPFRAME_R7, offsetof(struct spillframe, r7));
  158 ASSYM(SPFRAME_R6, offsetof(struct spillframe, r6));
  159 ASSYM(SPFRAME_R5, offsetof(struct spillframe, r5));
  160 ASSYM(SPFRAME_R4, offsetof(struct spillframe, r4));
  161 ASSYM(SPFRAME_R3, offsetof(struct spillframe, r3));
  162 ASSYM(SPFRAME_R0, offsetof(struct spillframe, r0));
  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_PMR, offsetof(struct pcb, pcb_pmreal));
  172 ASSYM(PCB_SP, offsetof(struct pcb, pcb_sp));
  173 ASSYM(PCB_LR, offsetof(struct pcb, pcb_lr));
  174 ASSYM(PCB_USR, offsetof(struct pcb, pcb_usr));
  175 ASSYM(PCB_ONFAULT, offsetof(struct pcb, pcb_onfault));
  176 ASSYM(PCB_FLAGS, offsetof(struct pcb, pcb_flags));
  177 ASSYM(PCB_FPU, PCB_FPU);
  178 
  179 ASSYM(TD_PROC, offsetof(struct thread, td_proc));
  180 ASSYM(TD_PCB, offsetof(struct thread, td_pcb));
  181 
  182 ASSYM(P_VMSPACE, offsetof(struct proc, p_vmspace));
  183 
  184 ASSYM(VM_PMAP, offsetof(struct vmspace, vm_pmap));
  185 
  186 ASSYM(TD_FLAGS, offsetof(struct thread, td_flags));
  187 
  188 ASSYM(TDF_ASTPENDING, TDF_ASTPENDING);
  189 ASSYM(TDF_NEEDRESCHED, TDF_NEEDRESCHED);
  190 
  191 ASSYM(SF_UC, offsetof(struct sigframe, sf_uc));
  192 
  193 ASSYM(MAXCOMLEN, MAXCOMLEN);

Cache object: a22fdce1fb84b3a7ce6a1119bcd501a7


[ 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.