diff options
author | Andrew Turner <andrew@FreeBSD.org> | 2018-07-30 14:25:17 +0000 |
---|---|---|
committer | Andrew Turner <andrew@FreeBSD.org> | 2018-07-30 14:25:17 +0000 |
commit | cd2106eaeae07920decf8d9535bac49bbd816f7b (patch) | |
tree | 8a71335cf5f59244fada76d5426d08a8546e8217 /sys/net/vnet.c | |
parent | d0a179019f599cbd27c2f80daec4b074c886a6d0 (diff) | |
download | src-cd2106eaeae07920decf8d9535bac49bbd816f7b.tar.gz src-cd2106eaeae07920decf8d9535bac49bbd816f7b.zip |
Ensure the DPCPU and VNET module spaces are aligned to hold a pointer.
Previously they may have been aligned to a char, leading to misaligned
DPCPU and VNET variables.
Sponsored by: DARPA, AFRL
Notes
Notes:
svn path=/head/; revision=336906
Diffstat (limited to 'sys/net/vnet.c')
-rw-r--r-- | sys/net/vnet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/vnet.c b/sys/net/vnet.c index c2c725836c65..a124387f6f74 100644 --- a/sys/net/vnet.c +++ b/sys/net/vnet.c @@ -178,7 +178,7 @@ static MALLOC_DEFINE(M_VNET_DATA, "vnet_data", "VNET data"); * Space to store virtualized global variables from loadable kernel modules, * and the free list to manage it. */ -VNET_DEFINE_STATIC(char, modspace[VNET_MODMIN]); +VNET_DEFINE_STATIC(char, modspace[VNET_MODMIN] __aligned(__alignof(void *))); /* * Global lists of subsystem constructor and destructors for vnets. They are |