Lines Matching refs:scratch_reg
57 .macro SWITCH_TO_USER_CR3 scratch_reg:req
60 movl %cr3, \scratch_reg
61 orl $PTI_SWITCH_MASK, \scratch_reg
62 movl \scratch_reg, %cr3
86 * \scratch_reg
88 .macro SWITCH_TO_KERNEL_CR3 scratch_reg:req
90 movl %cr3, \scratch_reg
92 testl $PTI_SWITCH_MASK, \scratch_reg
94 andl $(~PTI_SWITCH_MASK), \scratch_reg
95 movl \scratch_reg, %cr3
96 /* Return original CR3 in \scratch_reg */
97 orl $PTI_SWITCH_MASK, \scratch_reg
251 SWITCH_TO_KERNEL_CR3 scratch_reg=\cr3_reg
370 SWITCH_TO_KERNEL_CR3 scratch_reg=%eax
610 SWITCH_TO_USER_CR3 scratch_reg=%eax
799 SWITCH_TO_KERNEL_CR3 scratch_reg=%eax
877 SWITCH_TO_USER_CR3 scratch_reg=%eax
952 SWITCH_TO_USER_CR3 scratch_reg=%eax
979 SWITCH_TO_USER_CR3 scratch_reg=%eax