svn commit: r273991 - in head/sys/i386: i386 include linux svr4

John Baldwin jhb at FreeBSD.org
Sun Nov 2 21:40:34 UTC 2014


Author: jhb
Date: Sun Nov  2 21:40:32 2014
New Revision: 273991
URL: https://svnweb.freebsd.org/changeset/base/273991

Log:
  MFamd64: Move extern declaration of _ucodesel and _udatasel to
  <machine/md_var.h>

Modified:
  head/sys/i386/i386/vm_machdep.c
  head/sys/i386/include/md_var.h
  head/sys/i386/linux/linux_sysvec.c
  head/sys/i386/svr4/svr4_machdep.c

Modified: head/sys/i386/i386/vm_machdep.c
==============================================================================
--- head/sys/i386/i386/vm_machdep.c	Sun Nov  2 21:36:40 2014	(r273990)
+++ head/sys/i386/i386/vm_machdep.c	Sun Nov  2 21:40:32 2014	(r273991)
@@ -118,7 +118,6 @@ static u_int	cpu_reset_proxyid;
 static volatile u_int	cpu_reset_proxy_active;
 #endif
 
-extern int	_ucodesel, _udatasel;
 
 /*
  * Finish a fork operation, with process p2 nearly set up.

Modified: head/sys/i386/include/md_var.h
==============================================================================
--- head/sys/i386/include/md_var.h	Sun Nov  2 21:36:40 2014	(r273990)
+++ head/sys/i386/include/md_var.h	Sun Nov  2 21:40:32 2014	(r273991)
@@ -78,6 +78,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;

Modified: head/sys/i386/linux/linux_sysvec.c
==============================================================================
--- head/sys/i386/linux/linux_sysvec.c	Sun Nov  2 21:36:40 2014	(r273990)
+++ head/sys/i386/linux/linux_sysvec.c	Sun Nov  2 21:40:32 2014	(r273991)
@@ -400,7 +400,6 @@ linux_copyout_strings(struct image_param
 
 
 
-extern int _ucodesel, _udatasel;
 extern unsigned long linux_sznonrtsigcode;
 
 static void

Modified: head/sys/i386/svr4/svr4_machdep.c
==============================================================================
--- head/sys/i386/svr4/svr4_machdep.c	Sun Nov  2 21:36:40 2014	(r273990)
+++ head/sys/i386/svr4/svr4_machdep.c	Sun Nov  2 21:40:32 2014	(r273991)
@@ -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);
 


More information about the svn-src-all mailing list