Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Oct 2010 01:02:34 +0000 (UTC)
From:      Julian Elischer <julian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r214310 - in stable/8/sys: ddb net
Message-ID:  <201010250102.o9P12YBM046148@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010250102.o9P12YBM046148>