cpu.h (139790) | cpu.h (153666) |
---|---|
1/* $FreeBSD: head/sys/ia64/include/cpu.h 139790 2005-01-06 22:18:23Z imp $ */ | 1/* $FreeBSD: head/sys/ia64/include/cpu.h 153666 2005-12-22 22:16:09Z jhb $ */ |
2/* From: NetBSD: cpu.h,v 1.18 1997/09/23 23:17:49 mjacob Exp */ 3 4/*- 5 * Copyright (c) 1988 University of Utah. 6 * Copyright (c) 1982, 1990, 1993 7 * The Regents of the University of California. All rights reserved. 8 * 9 * This code is derived from software contributed to Berkeley by --- 29 unchanged lines hidden (view full) --- 39 * @(#)cpu.h 8.4 (Berkeley) 1/5/94 40 */ 41 42#ifndef _MACHINE_CPU_H_ 43#define _MACHINE_CPU_H_ 44 45#include <machine/frame.h> 46 | 2/* From: NetBSD: cpu.h,v 1.18 1997/09/23 23:17:49 mjacob Exp */ 3 4/*- 5 * Copyright (c) 1988 University of Utah. 6 * Copyright (c) 1982, 1990, 1993 7 * The Regents of the University of California. All rights reserved. 8 * 9 * This code is derived from software contributed to Berkeley by --- 29 unchanged lines hidden (view full) --- 39 * @(#)cpu.h 8.4 (Berkeley) 1/5/94 40 */ 41 42#ifndef _MACHINE_CPU_H_ 43#define _MACHINE_CPU_H_ 44 45#include <machine/frame.h> 46 |
47/* 48 * Arguments to hardclock and gatherstats encapsulate the previous machine 49 * state in an opaque clockframe. 50 */ 51struct clockframe { 52 struct trapframe cf_tf; 53}; 54#define CLKF_PC(cf) ((cf)->cf_tf.tf_special.iip) 55#define CLKF_CPL(cf) ((cf)->cf_tf.tf_special.psr & IA64_PSR_CPL) 56#define CLKF_USERMODE(cf) (CLKF_CPL(cf) != IA64_PSR_CPL_KERN) 57 | |
58#define TRAPF_PC(tf) ((tf)->tf_special.iip) 59#define TRAPF_CPL(tf) ((tf)->tf_special.psr & IA64_PSR_CPL) 60#define TRAPF_USERMODE(tf) (TRAPF_CPL(tf) != IA64_PSR_CPL_KERN) 61 62/* 63 * CTL_MACHDEP definitions. 64 */ 65#define CPU_CONSDEV 1 /* dev_t: console terminal device */ --- 38 unchanged lines hidden --- | 47#define TRAPF_PC(tf) ((tf)->tf_special.iip) 48#define TRAPF_CPL(tf) ((tf)->tf_special.psr & IA64_PSR_CPL) 49#define TRAPF_USERMODE(tf) (TRAPF_CPL(tf) != IA64_PSR_CPL_KERN) 50 51/* 52 * CTL_MACHDEP definitions. 53 */ 54#define CPU_CONSDEV 1 /* dev_t: console terminal device */ --- 38 unchanged lines hidden --- |