1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Add TRAPF_PC() and TRAPF_USERMODE() macros and redefine CLKF_PC() and

CLKF_USERMODE() in terms of them.
This commit is contained in:
John Baldwin 2001-02-22 15:35:04 +00:00
parent 9b6ee1dce8
commit 3e68dabf19
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=72892

View File

@ -62,11 +62,14 @@
struct clockframe {
struct trapframe cf_tf;
};
#define CLKF_USERMODE(framep) \
(((framep)->cf_tf.tf_cr_ipsr & IA64_PSR_CPL) == IA64_PSR_CPL_USER)
#define TRAPF_USERMODE(framep) \
(((framep)->tf_cr_ipsr & IA64_PSR_CPL) == IA64_PSR_CPL_USER)
#define TRAPF_PC(framep) ((framep)->tf_cr_iip)
#define CLKF_USERMODE(framep) TRAPF_USERMODE(&(framep)->cf_tf)
#define CLKF_PC(framep) TRAPF_PC(&(framep)->ct_tf)
#define CLKF_BASEPRI(framep) \
(((framep)->cf_tf.tf_cr_ipsr & IA64_PSR_I) == 0)
#define CLKF_PC(framep) ((framep)->cf_tf.tf_cr_iip)
#define CLKF_INTR(framep) (curproc->p_intr_nesting_level >= 2)
/*