summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2014-12-22 20:53:45 +0000
committerjhb <jhb@FreeBSD.org>2014-12-22 20:53:45 +0000
commitaf2ee162da52913fdefa6d0ffae3644e39a3b369 (patch)
tree20317a6e4ca385f533364daadde8a3e9cc17ee65 /sys/i386
parent71f9e38fa2d4dc13b36ced356445eea08f620127 (diff)
downloadFreeBSD-src-af2ee162da52913fdefa6d0ffae3644e39a3b369.zip
FreeBSD-src-af2ee162da52913fdefa6d0ffae3644e39a3b369.tar.gz
MFC 273991:
MFamd64: Move extern declaration of _ucodesel and _udatasel to <machine/md_var.h>
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/i386/vm_machdep.c2
-rw-r--r--sys/i386/include/md_var.h2
-rw-r--r--sys/i386/linux/linux_sysvec.c1
-rw-r--r--sys/i386/svr4/svr4_machdep.c1
4 files changed, 2 insertions, 4 deletions
diff --git a/sys/i386/i386/vm_machdep.c b/sys/i386/i386/vm_machdep.c
index 664ad70..0cee8c0 100644
--- a/sys/i386/i386/vm_machdep.c
+++ b/sys/i386/i386/vm_machdep.c
@@ -150,8 +150,6 @@ static u_int sf_buf_alloc_want;
*/
static struct mtx sf_buf_lock;
-extern int _ucodesel, _udatasel;
-
/*
* Finish a fork operation, with process p2 nearly set up.
* Copy and update the pcb, set up the stack so that the child
diff --git a/sys/i386/include/md_var.h b/sys/i386/include/md_var.h
index 950fa1f..eb00e23 100644
--- a/sys/i386/include/md_var.h
+++ b/sys/i386/include/md_var.h
@@ -76,6 +76,8 @@ extern int szosigcode;
extern uint32_t *vm_page_dump;
extern int vm_page_dump_size;
extern int workaround_erratum383;
+extern int _udatasel;
+extern int _ucodesel;
typedef void alias_for_inthand_t(u_int cs, u_int ef, u_int esp, u_int ss);
struct thread;
diff --git a/sys/i386/linux/linux_sysvec.c b/sys/i386/linux/linux_sysvec.c
index 0ad6791..67d5056 100644
--- a/sys/i386/linux/linux_sysvec.c
+++ b/sys/i386/linux/linux_sysvec.c
@@ -400,7 +400,6 @@ linux_copyout_strings(struct image_params *imgp)
-extern int _ucodesel, _udatasel;
extern unsigned long linux_sznonrtsigcode;
static void
diff --git a/sys/i386/svr4/svr4_machdep.c b/sys/i386/svr4/svr4_machdep.c
index 50e6ad2..5747b92 100644
--- a/sys/i386/svr4/svr4_machdep.c
+++ b/sys/i386/svr4/svr4_machdep.c
@@ -65,7 +65,6 @@ __FBSDID("$FreeBSD$");
extern int svr4_szsigcode;
extern char svr4_sigcode[];
-extern int _udatasel, _ucodesel;
static void svr4_getsiginfo(union svr4_siginfo *, int, u_long, caddr_t);
OpenPOWER on IntegriCloud