mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-23 11:18:54 +00:00
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:
parent
1dc56acdf0
commit
94bfd5b1a0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=246316
@ -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");
|
||||
|
@ -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:
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user