summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_pcpu.c
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2010-05-14 21:11:58 +0000
committerbz <bz@FreeBSD.org>2010-05-14 21:11:58 +0000
commitc9d1ca826b9b450edf1dc47253441c1272337057 (patch)
tree6c98b44546dea897b9baa0a54709bea77c50851b /sys/kern/subr_pcpu.c
parent957781bce73dec430cfe80d6e7ba48eb91361805 (diff)
downloadFreeBSD-src-c9d1ca826b9b450edf1dc47253441c1272337057.zip
FreeBSD-src-c9d1ca826b9b450edf1dc47253441c1272337057.tar.gz
Fix an issue with the dynamic pcpu/vnet data allocators.
We cannot expect that modspace is the last entry in the linker set and thus that modspace + possible extra space up to PAGE_SIZE would be contiguous. For the moment do not support more than *_MODMIN space and ignore the extra space (*). (*) We know how to get it back but it'll need testing. Discussed with: jeff, rwatson (briefly) Reviewed by: jeff Sponsored by: The FreeBSD Foundation Sponsored by: CK Software GmbH MFC after: 4 days
Diffstat (limited to 'sys/kern/subr_pcpu.c')
-rw-r--r--sys/kern/subr_pcpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_pcpu.c b/sys/kern/subr_pcpu.c
index f28ad61..c63a971 100644
--- a/sys/kern/subr_pcpu.c
+++ b/sys/kern/subr_pcpu.c
@@ -125,7 +125,7 @@ dpcpu_startup(void *dummy __unused)
df = malloc(sizeof(*df), M_PCPU, M_WAITOK | M_ZERO);
df->df_start = (uintptr_t)&DPCPU_NAME(modspace);
- df->df_len = DPCPU_MODSIZE;
+ df->df_len = DPCPU_MODMIN;
TAILQ_INSERT_HEAD(&dpcpu_head, df, df_link);
sx_init(&dpcpu_lock, "dpcpu alloc lock");
}
OpenPOWER on IntegriCloud