mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-05 12:56:08 +00:00
Move two copies of the same definition to a common include file.
MFC after: 3 weeks
This commit is contained in:
parent
2d8d6ee437
commit
7a90b21212
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=206639
@ -64,12 +64,6 @@ static boolean_t db_line_at_pc(c_db_sym_t, char **, int *, db_expr_t);
|
||||
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
|
||||
|
||||
|
@ -153,15 +153,6 @@ struct vnet *vnet0;
|
||||
* module will find every network stack instance with proper default values.
|
||||
*/
|
||||
|
||||
/*
|
||||
* 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
|
||||
|
@ -91,6 +91,15 @@ struct vnet {
|
||||
#include <sys/rwlock.h>
|
||||
#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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user