Try to improve r242655 take III: move these SYSCTLs describing the kernel

map, which is defined and initialized in vm/vm_kern.c, to the latter.

Submitted by:	alc
This commit is contained in:
Marius Strobl 2013-02-04 09:35:48 +00:00
parent 1dc56acdf0
commit 94bfd5b1a0
2 changed files with 11 additions and 11 deletions

View File

@ -186,17 +186,6 @@ struct {
*/
static uma_zone_t mt_zone;
SYSCTL_ULONG(_vm, OID_AUTO, min_kernel_address, CTLFLAG_RD, NULL,
VM_MIN_KERNEL_ADDRESS, "Min kernel address");
SYSCTL_ULONG(_vm, OID_AUTO, max_kernel_address, CTLFLAG_RD,
#ifndef __sparc64__
NULL, VM_MAX_KERNEL_ADDRESS,
#else
&vm_max_kernel_address, 0,
#endif
"Max kernel address");
u_long vm_kmem_size;
SYSCTL_ULONG(_vm, OID_AUTO, kmem_size, CTLFLAG_RDTUN, &vm_kmem_size, 0,
"Size of kernel memory");

View File

@ -94,6 +94,17 @@ vm_map_t buffer_map=0;
const void *zero_region;
CTASSERT((ZERO_REGION_SIZE & PAGE_MASK) == 0);
SYSCTL_ULONG(_vm, OID_AUTO, min_kernel_address, CTLFLAG_RD,
NULL, VM_MIN_KERNEL_ADDRESS, "Min kernel address");
SYSCTL_ULONG(_vm, OID_AUTO, max_kernel_address, CTLFLAG_RD,
#ifdef __sparc64__
&vm_max_kernel_address, 0,
#else
NULL, VM_MAX_KERNEL_ADDRESS,
#endif
"Max kernel address");
/*
* kmem_alloc_nofault:
*