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  * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
    3  *
    4  * Copyright (c) 2004 Olivier Houchard
    5  * All rights reserved.
    6  *
    7  * Redistribution and use in source and binary forms, with or without
    8  * modification, are permitted provided that the following conditions
    9  * are met:
   10  * 1. Redistributions of source code must retain the above copyright
   11  *    notice, this list of conditions and the following disclaimer.
   12  * 2. Redistributions in binary form must reproduce the above copyright
   13  *    notice, this list of conditions and the following disclaimer in the
   14  *    documentation and/or other materials provided with the distribution.
   15  *
   16  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
   17  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   18  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   19  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
   20  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   21  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   22  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   23  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   24  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   25  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   26  * SUCH DAMAGE.
   27  *
   28  */
   29 
   30 #include <sys/cdefs.h>
   31 __FBSDID("$FreeBSD$");
   32 #include <sys/param.h>
   33 #include <sys/cpuset.h>
   34 #include <sys/systm.h>
   35 #include <sys/assym.h>
   36 #include <sys/pcpu.h>
   37 #include <sys/proc.h>
   38 #include <sys/mbuf.h>
   39 #include <sys/vmmeter.h>
   40 #include <sys/bus.h>
   41 #include <vm/vm.h>
   42 #include <vm/vm_param.h>
   43 #include <vm/pmap.h>
   44 #include <vm/vm_map.h>
   45 
   46 #include <machine/armreg.h>
   47 #include <machine/frame.h>
   48 #include <machine/pcb.h>
   49 #include <machine/cpu.h>
   50 #include <machine/proc.h>
   51 #include <machine/cpufunc.h>
   52 #include <machine/cpuinfo.h>
   53 #include <machine/intr.h>
   54 #include <machine/sysarch.h>
   55 #include <machine/vmparam.h>    /* For KERNVIRTADDR */
   56 
   57 #include <netinet/in.h>
   58 #include <netinet/in_systm.h>
   59 #include <netinet/ip.h>
   60 #include <netinet/ip6.h>
   61 #include <netinet/ip_var.h>
   62 
   63 ASSYM(KERNBASE, KERNBASE);
   64 ASSYM(KERNVIRTADDR, KERNVIRTADDR);
   65 ASSYM(CPU_ASID_KERNEL,CPU_ASID_KERNEL);
   66 ASSYM(PCB_ONFAULT, offsetof(struct pcb, pcb_onfault));
   67 ASSYM(PCB_PAGEDIR, offsetof(struct pcb, pcb_pagedir));
   68 ASSYM(PCB_R4, offsetof(struct pcb, pcb_regs.sf_r4));
   69 ASSYM(PCB_R5, offsetof(struct pcb, pcb_regs.sf_r5));
   70 ASSYM(PCB_R6, offsetof(struct pcb, pcb_regs.sf_r6));
   71 ASSYM(PCB_R7, offsetof(struct pcb, pcb_regs.sf_r7));
   72 ASSYM(PCB_R8, offsetof(struct pcb, pcb_regs.sf_r8));
   73 ASSYM(PCB_R9, offsetof(struct pcb, pcb_regs.sf_r9));
   74 ASSYM(PCB_R10, offsetof(struct pcb, pcb_regs.sf_r10));
   75 ASSYM(PCB_R11, offsetof(struct pcb, pcb_regs.sf_r11));
   76 ASSYM(PCB_R12, offsetof(struct pcb, pcb_regs.sf_r12));
   77 ASSYM(PCB_SP, offsetof(struct pcb, pcb_regs.sf_sp));
   78 ASSYM(PCB_LR, offsetof(struct pcb, pcb_regs.sf_lr));
   79 ASSYM(PCB_PC, offsetof(struct pcb, pcb_regs.sf_pc));
   80 ASSYM(PCB_TPIDRURW, offsetof(struct pcb, pcb_regs.sf_tpidrurw));
   81 
   82 ASSYM(PC_CURPCB, offsetof(struct pcpu, pc_curpcb));
   83 ASSYM(PC_CURTHREAD, offsetof(struct pcpu, pc_curthread));
   84 ASSYM(M_LEN, offsetof(struct mbuf, m_len));
   85 ASSYM(M_DATA, offsetof(struct mbuf, m_data));
   86 ASSYM(M_NEXT, offsetof(struct mbuf, m_next));
   87 ASSYM(IP_SRC, offsetof(struct ip, ip_src));
   88 ASSYM(IP_DST, offsetof(struct ip, ip_dst));
   89 
   90 ASSYM(TD_PCB, offsetof(struct thread, td_pcb));
   91 ASSYM(TD_FLAGS, offsetof(struct thread, td_flags));
   92 ASSYM(TD_PROC, offsetof(struct thread, td_proc));
   93 ASSYM(TD_MD, offsetof(struct thread, td_md));
   94 ASSYM(TD_LOCK, offsetof(struct thread, td_lock));
   95 
   96 ASSYM(TF_SPSR, offsetof(struct trapframe, tf_spsr));
   97 ASSYM(TF_R0, offsetof(struct trapframe, tf_r0));
   98 ASSYM(TF_R1, offsetof(struct trapframe, tf_r1));
   99 ASSYM(TF_PC, offsetof(struct trapframe, tf_pc));
  100 ASSYM(P_PID, offsetof(struct proc, p_pid));
  101 ASSYM(P_FLAG, offsetof(struct proc, p_flag));
  102 
  103 ASSYM(SIGF_UC, offsetof(struct sigframe, sf_uc));
  104 
  105 #ifdef VFP
  106 ASSYM(PCB_VFPSTATE, offsetof(struct pcb, pcb_vfpstate));
  107 #endif
  108 
  109 ASSYM(PC_CURPMAP, offsetof(struct pcpu, pc_curpmap));
  110 ASSYM(PC_BP_HARDEN_KIND, offsetof(struct pcpu, pc_bp_harden_kind));
  111 ASSYM(PCPU_BP_HARDEN_KIND_NONE, PCPU_BP_HARDEN_KIND_NONE);
  112 ASSYM(PCPU_BP_HARDEN_KIND_BPIALL, PCPU_BP_HARDEN_KIND_BPIALL);
  113 ASSYM(PCPU_BP_HARDEN_KIND_ICIALLU, PCPU_BP_HARDEN_KIND_ICIALLU);
  114 
  115 ASSYM(PAGE_SIZE, PAGE_SIZE);
  116 #ifdef PMAP_INCLUDE_PTE_SYNC
  117 ASSYM(PMAP_INCLUDE_PTE_SYNC, 1);
  118 #endif
  119 ASSYM(TDF_ASTPENDING, TDF_ASTPENDING);
  120 ASSYM(TDF_NEEDRESCHED, TDF_NEEDRESCHED);
  121 
  122 ASSYM(MAXCOMLEN, MAXCOMLEN);
  123 ASSYM(MAXCPU, MAXCPU);
  124 ASSYM(_NCPUWORDS, _NCPUWORDS);
  125 ASSYM(PCPU_SIZE, sizeof(struct pcpu));
  126 ASSYM(P_VMSPACE, offsetof(struct proc, p_vmspace));
  127 ASSYM(VM_PMAP, offsetof(struct vmspace, vm_pmap));
  128 ASSYM(PM_ACTIVE, offsetof(struct pmap, pm_active));
  129 ASSYM(PC_CPUID, offsetof(struct pcpu, pc_cpuid));
  130 ASSYM(VM_MAXUSER_ADDRESS, VM_MAXUSER_ADDRESS);
  131 
  132 ASSYM(DCACHE_LINE_SIZE, offsetof(struct cpuinfo, dcache_line_size));
  133 ASSYM(DCACHE_LINE_MASK, offsetof(struct cpuinfo, dcache_line_mask));
  134 ASSYM(ICACHE_LINE_SIZE, offsetof(struct cpuinfo, icache_line_size));
  135 ASSYM(ICACHE_LINE_MASK, offsetof(struct cpuinfo, icache_line_mask));
  136 
  137 /*
  138  * Emit the LOCORE_MAP_MB option as a #define only if the option was set.
  139  */
  140 #include "opt_locore.h"
  141 
  142 #ifdef LOCORE_MAP_MB
  143 ASSYM(LOCORE_MAP_MB, LOCORE_MAP_MB);
  144 #endif

Cache object: 824cdc51083ef94fdf26dbcbc50ee627


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