Author: julian
Date: Mon Oct 25 01:02:34 2010
New Revision: 214310
URL: http://svn.freebsd.org/changeset/base/214310

Log:
  MFC of svn change 206639.
  replace a couple of instances of the same definitions with one in
  an include file

Modified:
  stable/8/sys/ddb/db_sym.c
  stable/8/sys/net/vnet.c
  stable/8/sys/net/vnet.h
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/ddb/db_sym.c
==============================================================================
--- stable/8/sys/ddb/db_sym.c   Sun Oct 24 23:25:14 2010        (r214309)
+++ stable/8/sys/ddb/db_sym.c   Mon Oct 25 01:02:34 2010        (r214310)
@@ -64,12 +64,6 @@ static boolean_t     db_line_at_pc(c_db_sym_
 static int db_cpu = -1;
 
 #ifdef VIMAGE
-extern uintptr_t       *__start_set_vnet;
-extern uintptr_t       *__stop_set_vnet;
-
-#define        VNET_START      (uintptr_t)&__start_set_vnet
-#define        VNET_STOP       (uintptr_t)&__stop_set_vnet
-
 static void *db_vnet = NULL;
 #endif
 

Modified: stable/8/sys/net/vnet.c
==============================================================================
--- stable/8/sys/net/vnet.c     Sun Oct 24 23:25:14 2010        (r214309)
+++ stable/8/sys/net/vnet.c     Mon Oct 25 01:02:34 2010        (r214310)
@@ -154,15 +154,6 @@ struct vnet *vnet0;
  */
 
 /*
- * Location of the kernel's 'set_vnet' linker set.
- */
-extern uintptr_t       *__start_set_vnet;
-extern uintptr_t       *__stop_set_vnet;
-
-#define        VNET_START      (uintptr_t)&__start_set_vnet
-#define        VNET_STOP       (uintptr_t)&__stop_set_vnet
-
-/*
  * Number of bytes of data in the 'set_vnet' linker set, and hence the total
  * size of all kernel virtualized global variables, and the malloc(9) type
  * that will be used to allocate it.

Modified: stable/8/sys/net/vnet.h
==============================================================================
--- stable/8/sys/net/vnet.h     Sun Oct 24 23:25:14 2010        (r214309)
+++ stable/8/sys/net/vnet.h     Mon Oct 25 01:02:34 2010        (r214310)
@@ -92,6 +92,15 @@ struct vnet {
 #include <sys/sx.h>
 
 /*
+ * Location of the kernel's 'set_vnet' linker set.
+ */
+extern uintptr_t       *__start_set_vnet;
+extern uintptr_t       *__stop_set_vnet;
+
+#define        VNET_START      (uintptr_t)&__start_set_vnet
+#define        VNET_STOP       (uintptr_t)&__stop_set_vnet
+
+/*
  * Functions to allocate and destroy virtual network stacks.
  */
 struct vnet *vnet_alloc(void);
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to