Deleted Added
full compact
cpu.h (141094) cpu.h (153666)
1/* $NetBSD: cpu.h,v 1.2 2001/02/23 21:23:52 reinoud Exp $ */
1/* $NetBSD: cpu.h,v 1.2 2001/02/23 21:23:52 reinoud Exp $ */
2/* $FreeBSD: head/sys/arm/include/cpu.h 141094 2005-02-01 06:36:27Z njl $ */
2/* $FreeBSD: head/sys/arm/include/cpu.h 153666 2005-12-22 22:16:09Z jhb $ */
3
4#ifndef MACHINE_CPU_H
5#define MACHINE_CPU_H
6
7#include <machine/armreg.h>
8
9void cpu_halt(void);
10void swi_vm(void *);

--- 13 unchanged lines hidden (view full) ---

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
3
4#ifndef MACHINE_CPU_H
5#define MACHINE_CPU_H
6
7#include <machine/armreg.h>
8
9void cpu_halt(void);
10void swi_vm(void *);

--- 13 unchanged lines hidden (view full) ---

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)
32#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

--- 13 unchanged lines hidden ---
33
34#define TRAPF_PC(tfp) ((tfp)->tf_pc)
35
36#define cpu_getstack(td) ((td)->td_frame->tf_usr_sp)
37#define cpu_setstack(td, sp) ((td)->td_frame->tf_usr_sp = (sp))
38#define cpu_spinwait() /* nothing */
39
40#define ARM_NVEC 8

--- 13 unchanged lines hidden ---