cpu.h (72985) | cpu.h (72988) |
---|---|
1/* $FreeBSD: head/sys/ia64/include/cpu.h 72985 2001-02-24 18:41:38Z jhb $ */ | 1/* $FreeBSD: head/sys/ia64/include/cpu.h 72988 2001-02-24 18:57:34Z 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 --- 52 unchanged lines hidden (view full) --- 62struct clockframe { 63 struct trapframe cf_tf; 64}; 65#define TRAPF_USERMODE(framep) \ 66 (((framep)->tf_cr_ipsr & IA64_PSR_CPL) == IA64_PSR_CPL_USER) 67#define TRAPF_PC(framep) ((framep)->tf_cr_iip) 68 69#define CLKF_USERMODE(framep) TRAPF_USERMODE(&(framep)->cf_tf) | 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 --- 52 unchanged lines hidden (view full) --- 62struct clockframe { 63 struct trapframe cf_tf; 64}; 65#define TRAPF_USERMODE(framep) \ 66 (((framep)->tf_cr_ipsr & IA64_PSR_CPL) == IA64_PSR_CPL_USER) 67#define TRAPF_PC(framep) ((framep)->tf_cr_iip) 68 69#define CLKF_USERMODE(framep) TRAPF_USERMODE(&(framep)->cf_tf) |
70#define CLKF_PC(framep) TRAPF_PC(&(framep)->ct_tf) | 70#define CLKF_PC(framep) TRAPF_PC(&(framep)->cf_tf) |
71#define CLKF_BASEPRI(framep) \ 72 (((framep)->cf_tf.tf_cr_ipsr & IA64_PSR_I) == 0) 73#define CLKF_INTR(framep) (curproc->p_intr_nesting_level >= 2) 74 75/* 76 * Give a profiling tick to the current process when the user profiling 77 * buffer pages are invalid. On the hp300, request an ast to send us 78 * through trap, marking the proc as needing a profiling tick. --- 92 unchanged lines hidden --- | 71#define CLKF_BASEPRI(framep) \ 72 (((framep)->cf_tf.tf_cr_ipsr & IA64_PSR_I) == 0) 73#define CLKF_INTR(framep) (curproc->p_intr_nesting_level >= 2) 74 75/* 76 * Give a profiling tick to the current process when the user profiling 77 * buffer pages are invalid. On the hp300, request an ast to send us 78 * through trap, marking the proc as needing a profiling tick. --- 92 unchanged lines hidden --- |