aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/include
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2017-10-05 11:50:01 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2017-10-05 11:50:01 +0000
commita1fc6a8c49a1d573f9d03773ca5543e1cbcd048f (patch)
treefbf2afe742822ed3a720b060bb53ec7204b8817e /sys/amd64/include
parent37afe7dfd2a64cb088e461be31d9d4f6227c840f (diff)
downloadsrc-a1fc6a8c49a1d573f9d03773ca5543e1cbcd048f.tar.gz
src-a1fc6a8c49a1d573f9d03773ca5543e1cbcd048f.zip
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
Notes
Notes: svn path=/head/; revision=324303
Diffstat (limited to 'sys/amd64/include')
-rw-r--r--sys/amd64/include/proc.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/amd64/include/proc.h b/sys/amd64/include/proc.h
index 52e24460c5e2..caa6c1cdcc24 100644
--- a/sys/amd64/include/proc.h
+++ b/sys/amd64/include/proc.h
@@ -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 *);