Lines Matching +full:tf +full:- +full:a
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2003-2005,2008 Joseph Koshy
8 * Portions of this software were developed by A. Joseph Koshy under
22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
47 * IAF Intel fixed-function PMCs.
49 * UCF Intel Uncore fixed-function PMCs.
100 #define PMC_TRAPFRAME_TO_PC(TF) ((TF)->tf_eip) argument
101 #define PMC_TRAPFRAME_TO_FP(TF) ((TF)->tf_ebp) argument
105 * whether a privilege level change (and consequent stack switch) was
111 * at frame->tf_esp.
119 #define PMC_TRAPFRAME_TO_USER_SP(TF) ((TF)->tf_esp) argument
120 #define PMC_TRAPFRAME_TO_KERNEL_SP(TF) ((uintptr_t) &((TF)->tf_esp)) argument
137 /* Build a fake kernel trapframe from current instruction pointer. */
138 #define PMC_FAKE_TRAPFRAME(TF) \ argument
140 (TF)->tf_cs = 0; (TF)->tf_eflags = 0; \
141 __asm __volatile("movl %%ebp,%0" : "=r" ((TF)->tf_ebp)); \
142 __asm __volatile("movl %%esp,%0" : "=r" ((TF)->tf_esp)); \
143 __asm __volatile("call 1f \n\t1: pop %0" : "=r"((TF)->tf_eip)); \