summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/amd64/amd64/sys_machdep.c7
-rw-r--r--sys/i386/i386/sys_machdep.c7
2 files changed, 12 insertions, 2 deletions
diff --git a/sys/amd64/amd64/sys_machdep.c b/sys/amd64/amd64/sys_machdep.c
index 1bcc9ad..65d47c7 100644
--- a/sys/amd64/amd64/sys_machdep.c
+++ b/sys/amd64/amd64/sys_machdep.c
@@ -67,6 +67,9 @@ static int i386_get_ldt __P((struct proc *, char *));
static int i386_set_ldt __P((struct proc *, char *));
static int i386_get_ioperm __P((struct proc *, char *));
static int i386_set_ioperm __P((struct proc *, char *));
+#ifdef SMP
+static void set_user_ldt_rv __P((struct pcb *));
+#endif
#ifndef _SYS_SYSPROTO_H_
struct sysarch_args {
@@ -260,7 +263,8 @@ set_user_ldt(struct pcb *pcb)
PCPU_SET(currentldt, GSEL(GUSERLDT_SEL, SEL_KPL));
}
-void
+#ifdef SMP
+static void
set_user_ldt_rv(struct pcb *pcb)
{
@@ -271,6 +275,7 @@ set_user_ldt_rv(struct pcb *pcb)
set_user_ldt(pcb);
mtx_unlock_spin(&sched_lock);
}
+#endif
/*
* Must be called with either sched_lock free or held but not recursed.
diff --git a/sys/i386/i386/sys_machdep.c b/sys/i386/i386/sys_machdep.c
index 1bcc9ad..65d47c7 100644
--- a/sys/i386/i386/sys_machdep.c
+++ b/sys/i386/i386/sys_machdep.c
@@ -67,6 +67,9 @@ static int i386_get_ldt __P((struct proc *, char *));
static int i386_set_ldt __P((struct proc *, char *));
static int i386_get_ioperm __P((struct proc *, char *));
static int i386_set_ioperm __P((struct proc *, char *));
+#ifdef SMP
+static void set_user_ldt_rv __P((struct pcb *));
+#endif
#ifndef _SYS_SYSPROTO_H_
struct sysarch_args {
@@ -260,7 +263,8 @@ set_user_ldt(struct pcb *pcb)
PCPU_SET(currentldt, GSEL(GUSERLDT_SEL, SEL_KPL));
}
-void
+#ifdef SMP
+static void
set_user_ldt_rv(struct pcb *pcb)
{
@@ -271,6 +275,7 @@ set_user_ldt_rv(struct pcb *pcb)
set_user_ldt(pcb);
mtx_unlock_spin(&sched_lock);
}
+#endif
/*
* Must be called with either sched_lock free or held but not recursed.
OpenPOWER on IntegriCloud