Create a macro for PIC code which loads %cr3 from tramp_idleptd.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Konstantin Belousov 2018-05-12 10:51:50 +00:00
parent 2017ad1e81
commit 6652b9d9ea
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=333523

View File

@ -198,11 +198,15 @@
movl %edx, %esp
.endm
.macro MOVE_STACKS
.macro LOAD_KCR3
call 1000f
1000: popl %eax
movl (tramp_idleptd - 1000b)(%eax), %eax
movl %eax, %cr3
.endm
.macro MOVE_STACKS
LOAD_KCR3
NMOVE_STACKS
.endm