Lines Matching refs:cr3
56 /* Unconditionally switch to user cr3 */
60 movl %cr3, \scratch_reg
62 movl \scratch_reg, %cr3
74 /* On user-cr3? */
75 movl %cr3, %eax
78 /* From userspace with kernel cr3 - BUG */
85 * Switch to kernel cr3 if not already loaded and return current cr3 in
90 movl %cr3, \scratch_reg
95 movl \scratch_reg, %cr3
247 * We can enter with either user or kernel cr3, the code will
248 * store the old cr3 in \cr3_reg and switches to the kernel cr3
287 * We enter with kernel cr3 and switch the cr3 to the value
288 * stored on \cr3_reg, which is either a user or a kernel cr3.
295 /* User cr3 in \cr3_reg - write it to hardware cr3 */
296 movl \cr3_reg, %cr3
373 * %eax now contains the entry cr3 and we carry it forward in
483 * Test the cr3 used to enter the kernel and add a marker
554 * path and have to switch back to the entry stack and/or user-cr3
602 * switch back to user cr3.
789 * restore eflags and %eax to use it as scratch-reg for the cr3
872 /* Now ready to switch the cr3 */
970 * return-to-user frame. We are on kernel-cr3 because we come here from
971 * the fixup code. This confuses the CR3 checker, so switch to user-cr3