Date: Sat, 12 May 2018 10:51:50 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r333523 - head/sys/i386/include Message-ID: <201805121051.w4CApoh7087875@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Sat May 12 10:51:50 2018 New Revision: 333523 URL: https://svnweb.freebsd.org/changeset/base/333523 Log: Create a macro for PIC code which loads %cr3 from tramp_idleptd. Sponsored by: The FreeBSD Foundation Modified: head/sys/i386/include/asmacros.h Modified: head/sys/i386/include/asmacros.h ============================================================================== --- head/sys/i386/include/asmacros.h Sat May 12 10:48:53 2018 (r333522) +++ head/sys/i386/include/asmacros.h Sat May 12 10:51:50 2018 (r333523) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805121051.w4CApoh7087875>