Go to the documentation of this file.
6 #ifndef _ASM_REGISTERS_H
7 #define _ASM_REGISTERS_H
197 #define pt_elr(regs) ((regs)->hvmer.vmel)
198 #define pt_set_elr(regs, val) ((regs)->hvmer.vmel = (val))
199 #define pt_cause(regs) ((regs)->hvmer.vmest & (HVM_VMEST_CAUSE_MSK))
200 #define user_mode(regs) \
201 (((regs)->hvmer.vmest & (HVM_VMEST_UM_MSK << HVM_VMEST_UM_SFT)) != 0)
202 #define ints_enabled(regs) \
203 (((regs)->hvmer.vmest & (HVM_VMEST_IE_MSK << HVM_VMEST_IE_SFT)) != 0)
204 #define pt_psp(regs) ((regs)->hvmer.vmpsp)
205 #define pt_badva(regs) ((regs)->hvmer.vmbadva)
207 #define pt_set_rte_sp(regs, sp) do {\
208 pt_psp(regs) = (sp);\
209 (regs)->SP = (unsigned long) &((regs)->hvmer);\
212 #define pt_set_kmode(regs) \
213 (regs)->hvmer.vmest = (HVM_VMEST_IE_MSK << HVM_VMEST_IE_SFT)
215 #define pt_set_usermode(regs) \
216 (regs)->hvmer.vmest = (HVM_VMEST_UM_MSK << HVM_VMEST_UM_SFT) \
217 | (HVM_VMEST_IE_MSK << HVM_VMEST_IE_SFT)