From 63aebe15eaafd7e5a558a33ee11342fd20069273 Mon Sep 17 00:00:00 2001 From: jhb Date: Mon, 22 Dec 2014 20:53:45 +0000 Subject: [PATCH] MFC 273991: MFamd64: Move extern declaration of _ucodesel and _udatasel to git-svn-id: svn://svn.freebsd.org/base/stable/10@276080 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/i386/i386/vm_machdep.c | 2 -- sys/i386/include/md_var.h | 2 ++ sys/i386/linux/linux_sysvec.c | 1 - sys/i386/svr4/svr4_machdep.c | 1 - 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/i386/i386/vm_machdep.c b/sys/i386/i386/vm_machdep.c index 664ad70a7..0cee8c07c 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 950fa1f05..eb00e23c7 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 0ad67910e..67d5056d7 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 50e6ad212..5747b9268 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); -- 2.45.0