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/arm/arm/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) 2004 Olivier Houchard
    3  * All rights reserved.
    4  *
    5  * Redistribution and use in source and binary forms, with or without
    6  * modification, are permitted provided that the following conditions
    7  * are met:
    8  * 1. Redistributions of source code must retain the above copyright
    9  *    notice, this list of conditions and the following disclaimer.
   10  * 2. Redistributions in binary form must reproduce the above copyright
   11  *    notice, this list of conditions and the following disclaimer in the
   12  *    documentation and/or other materials provided with the distribution.
   13  *
   14  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
   15  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   16  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   17  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
   18  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   19  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   20  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   21  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   22  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   23  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   24  * SUCH DAMAGE.
   25  *
   26  */
   27 
   28 #include <sys/cdefs.h>
   29 __FBSDID("$FreeBSD: releng/9.0/sys/arm/arm/genassym.c 188540 2009-02-12 23:23:30Z cognet $");
   30 #include <sys/param.h>
   31 #include <sys/systm.h>
   32 #include <sys/assym.h>
   33 #include <sys/proc.h>
   34 #include <sys/mbuf.h>
   35 #include <sys/vmmeter.h>
   36 #include <vm/vm.h>
   37 #include <vm/pmap.h>
   38 #include <machine/vmparam.h>
   39 #include <machine/armreg.h>
   40 #include <machine/pcb.h>
   41 #include <machine/cpu.h>
   42 #include <machine/proc.h>
   43 #include <machine/cpufunc.h>
   44 #include <machine/pte.h>
   45 #include <machine/intr.h>
   46 #include <machine/sysarch.h>
   47 
   48 #include <netinet/in.h>
   49 #include <netinet/in_systm.h>
   50 #include <netinet/ip.h>
   51 #include <netinet/ip6.h>
   52 #include <netinet/ip_var.h>
   53 
   54 ASSYM(KERNBASE, KERNBASE);
   55 ASSYM(PCB_NOALIGNFLT, PCB_NOALIGNFLT);
   56 ASSYM(PCB_ONFAULT, offsetof(struct pcb, pcb_onfault));
   57 ASSYM(PCB_DACR, offsetof(struct pcb, pcb_dacr));
   58 ASSYM(PCB_FLAGS, offsetof(struct pcb, pcb_flags));
   59 ASSYM(PCB_UND_SP, offsetof(struct pcb, un_32.pcb32_und_sp));
   60 ASSYM(PCB_PAGEDIR, offsetof(struct pcb, pcb_pagedir));
   61 ASSYM(PCB_L1VEC, offsetof(struct pcb, pcb_l1vec));
   62 ASSYM(PCB_PL1VEC, offsetof(struct pcb, pcb_pl1vec));
   63 ASSYM(PCB_R8, offsetof(struct pcb, un_32.pcb32_r8));
   64 ASSYM(PCB_R9, offsetof(struct pcb, un_32.pcb32_r9));
   65 ASSYM(PCB_R10, offsetof(struct pcb, un_32.pcb32_r10));
   66 ASSYM(PCB_R11, offsetof(struct pcb, un_32.pcb32_r11));
   67 ASSYM(PCB_R12, offsetof(struct pcb, un_32.pcb32_r12));
   68 ASSYM(PCB_PC, offsetof(struct pcb, un_32.pcb32_pc));
   69 ASSYM(PCB_SP, offsetof(struct pcb, un_32.pcb32_sp));
   70 
   71 ASSYM(PC_CURPCB, offsetof(struct pcpu, pc_curpcb));
   72 ASSYM(PC_CURTHREAD, offsetof(struct pcpu, pc_curthread));
   73 ASSYM(M_LEN, offsetof(struct mbuf, m_len));
   74 ASSYM(M_DATA, offsetof(struct mbuf, m_data));
   75 ASSYM(M_NEXT, offsetof(struct mbuf, m_next));
   76 ASSYM(IP_SRC, offsetof(struct ip, ip_src));
   77 ASSYM(IP_DST, offsetof(struct ip, ip_dst));
   78 ASSYM(CF_SETTTB, offsetof(struct cpu_functions, cf_setttb));
   79 ASSYM(CF_CONTROL, offsetof(struct cpu_functions, cf_control));
   80 ASSYM(CF_CONTEXT_SWITCH, offsetof(struct cpu_functions, cf_context_switch));
   81 ASSYM(CF_DCACHE_WB_RANGE, offsetof(struct cpu_functions, cf_dcache_wb_range));
   82 ASSYM(CF_L2CACHE_WB_RANGE, offsetof(struct cpu_functions, cf_l2cache_wb_range));
   83 ASSYM(CF_IDCACHE_WBINV_ALL, offsetof(struct cpu_functions, cf_idcache_wbinv_all));
   84 ASSYM(CF_L2CACHE_WBINV_ALL, offsetof(struct cpu_functions, cf_l2cache_wbinv_all));
   85 ASSYM(CF_TLB_FLUSHID_SE, offsetof(struct cpu_functions, cf_tlb_flushID_SE));
   86 ASSYM(CF_ICACHE_SYNC, offsetof(struct cpu_functions, cf_icache_sync_all));
   87 
   88 ASSYM(V_TRAP, offsetof(struct vmmeter, v_trap));
   89 ASSYM(V_SOFT, offsetof(struct vmmeter, v_soft));
   90 ASSYM(V_INTR, offsetof(struct vmmeter, v_intr));
   91 
   92 ASSYM(TD_PCB, offsetof(struct thread, td_pcb));
   93 ASSYM(TD_FLAGS, offsetof(struct thread, td_flags));
   94 ASSYM(TD_PROC, offsetof(struct thread, td_proc));
   95 ASSYM(TD_FRAME, offsetof(struct thread, td_frame));
   96 ASSYM(TD_MD, offsetof(struct thread, td_md));
   97 ASSYM(TD_LOCK, offsetof(struct thread, td_lock));
   98 ASSYM(MD_TP, offsetof(struct mdthread, md_tp));
   99 ASSYM(MD_RAS_START, offsetof(struct mdthread, md_ras_start));
  100 ASSYM(MD_RAS_END, offsetof(struct mdthread, md_ras_end));
  101 
  102 ASSYM(TF_R0, offsetof(struct trapframe, tf_r0));
  103 ASSYM(TF_R1, offsetof(struct trapframe, tf_r1));
  104 ASSYM(TF_PC, offsetof(struct trapframe, tf_pc));
  105 ASSYM(P_PID, offsetof(struct proc, p_pid));
  106 ASSYM(P_FLAG, offsetof(struct proc, p_flag));
  107 
  108 ASSYM(ARM_TP_ADDRESS, ARM_TP_ADDRESS);
  109 ASSYM(ARM_RAS_START, ARM_RAS_START);
  110 ASSYM(ARM_RAS_END, ARM_RAS_END);
  111 ASSYM(PAGE_SIZE, PAGE_SIZE);
  112 ASSYM(PDESIZE, PDESIZE);
  113 ASSYM(PMAP_DOMAIN_KERNEL, PMAP_DOMAIN_KERNEL);
  114 #ifdef PMAP_INCLUDE_PTE_SYNC
  115 ASSYM(PMAP_INCLUDE_PTE_SYNC, 1);
  116 #endif
  117 ASSYM(TDF_ASTPENDING, TDF_ASTPENDING);
  118 ASSYM(TDF_NEEDRESCHED, TDF_NEEDRESCHED);
  119 ASSYM(P_TRACED, P_TRACED);
  120 ASSYM(P_SIGEVENT, P_SIGEVENT);
  121 ASSYM(P_PROFIL, P_PROFIL);
  122 ASSYM(TRAPFRAMESIZE, sizeof(struct trapframe));
  123 
  124 ASSYM(MAXCOMLEN, MAXCOMLEN);
  125 ASSYM(NIRQ, NIRQ);

Cache object: 365ff51cc723846c5be3186b7de493d4


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