Date: Thu, 5 Oct 2017 11:50:01 +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: r324303 - in head/sys/amd64: amd64 include Message-ID: <201710051150.v95Bo1Hu023270@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Thu Oct 5 11:50:01 2017 New Revision: 324303 URL: https://svnweb.freebsd.org/changeset/base/324303 Log: On amd64, mark the set_user_ldt() function as static. On i386, the function is used from the context switch code and needs to be accessible externally. Amd64 MD context switch does not lock an LDT spinlock and inlines switching in assembly. Discussed with: bde Sponsored by: The FreeBSD Foundation MFC after: 1 week Modified: head/sys/amd64/amd64/sys_machdep.c head/sys/amd64/include/proc.h Modified: head/sys/amd64/amd64/sys_machdep.c ============================================================================== --- head/sys/amd64/amd64/sys_machdep.c Thu Oct 5 11:36:55 2017 (r324302) +++ head/sys/amd64/amd64/sys_machdep.c Thu Oct 5 11:50:01 2017 (r324303) @@ -426,7 +426,7 @@ done: * Update the GDT entry pointing to the LDT to point to the LDT of the * current process. */ -void +static void set_user_ldt(struct mdproc *mdp) { Modified: head/sys/amd64/include/proc.h ============================================================================== --- head/sys/amd64/include/proc.h Thu Oct 5 11:36:55 2017 (r324302) +++ head/sys/amd64/include/proc.h Thu Oct 5 11:50:01 2017 (r324303) @@ -88,7 +88,6 @@ struct syscall_args { (char *)&td; \ } while (0) -void set_user_ldt(struct mdproc *); struct proc_ldt *user_ldt_alloc(struct proc *, int); void user_ldt_free(struct thread *); void user_ldt_deref(struct proc_ldt *);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710051150.v95Bo1Hu023270>