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/include/cpu.h

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 /* $NetBSD: cpu.h,v 1.2 2001/02/23 21:23:52 reinoud Exp $ */
    2 /* $FreeBSD: releng/6.3/sys/arm/include/cpu.h 141094 2005-02-01 06:36:27Z njl $ */
    3 
    4 #ifndef MACHINE_CPU_H
    5 #define MACHINE_CPU_H
    6 
    7 #include <machine/armreg.h>
    8 
    9 void    cpu_halt(void);
   10 void    swi_vm(void *);
   11 
   12 #ifdef _KERNEL
   13 static __inline uint64_t
   14 get_cyclecount(void)
   15 {
   16         struct bintime bt;
   17 
   18         binuptime(&bt);
   19         return (bt.frac ^ bt.sec);
   20                         
   21 }
   22 #endif
   23 
   24 #define CPU_CONSDEV 1
   25 #define CPU_ADJKERNTZ           2       /* int: timezone offset (seconds) */
   26 #define CPU_DISRTCSET           3       /* int: disable resettodr() call */
   27 #define CPU_BOOTINFO            4       /* struct: bootinfo */
   28 #define CPU_WALLCLOCK           5       /* int: indicates wall CMOS clock */
   29 #define CPU_MAXID               6       /* number of valid machdep ids */
   30 
   31 
   32 #define CLKF_USERMODE(frame)    ((frame->if_spsr & PSR_MODE) == PSR_USR32_MODE)
   33 
   34 #define TRAPF_USERMODE(frame)   ((frame->tf_spsr & PSR_MODE) == PSR_USR32_MODE)
   35 #define CLKF_PC(frame)          (frame->if_pc)
   36 
   37 #define TRAPF_PC(tfp)           ((tfp)->tf_pc)
   38 
   39 #define cpu_getstack(td)        ((td)->td_frame->tf_usr_sp)
   40 #define cpu_setstack(td, sp)    ((td)->td_frame->tf_usr_sp = (sp))
   41 #define cpu_spinwait()          /* nothing */
   42 
   43 #define ARM_NVEC                8
   44 #define ARM_VEC_ALL             0xffffffff
   45 
   46 extern vm_offset_t vector_page;
   47 
   48 void    arm_vector_init(vm_offset_t, int);
   49 void    fork_trampoline(void);
   50 void    identify_arm_cpu(void);
   51 void    *initarm(void *, void *);
   52 
   53 extern char btext[];
   54 extern char etext[];
   55 int badaddr_read (void *, size_t, void *);
   56 #endif /* !MACHINE_CPU_H */

Cache object: da415ca689f14f3eba600adec9a7afc0


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