Make the hw.physmem and hw.usermem variables unsigned so that they dont
come up as negative on machines with >2GB ram.
This commit is contained in:
parent
3676cbfbf4
commit
1a6d55cecd
@ -163,7 +163,7 @@ sysctl_hw_physmem(SYSCTL_HANDLER_ARGS)
|
||||
}
|
||||
|
||||
SYSCTL_PROC(_hw, HW_PHYSMEM, physmem, CTLTYPE_INT|CTLFLAG_RD,
|
||||
0, 0, sysctl_hw_physmem, "I", "");
|
||||
0, 0, sysctl_hw_physmem, "IU", "");
|
||||
|
||||
static int
|
||||
sysctl_hw_usermem(SYSCTL_HANDLER_ARGS)
|
||||
@ -174,7 +174,7 @@ sysctl_hw_usermem(SYSCTL_HANDLER_ARGS)
|
||||
}
|
||||
|
||||
SYSCTL_PROC(_hw, HW_USERMEM, usermem, CTLTYPE_INT|CTLFLAG_RD,
|
||||
0, 0, sysctl_hw_usermem, "I", "");
|
||||
0, 0, sysctl_hw_usermem, "IU", "");
|
||||
|
||||
static int
|
||||
sysctl_hw_availpages(SYSCTL_HANDLER_ARGS)
|
||||
|
@ -163,7 +163,7 @@ sysctl_hw_physmem(SYSCTL_HANDLER_ARGS)
|
||||
}
|
||||
|
||||
SYSCTL_PROC(_hw, HW_PHYSMEM, physmem, CTLTYPE_INT|CTLFLAG_RD,
|
||||
0, 0, sysctl_hw_physmem, "I", "");
|
||||
0, 0, sysctl_hw_physmem, "IU", "");
|
||||
|
||||
static int
|
||||
sysctl_hw_usermem(SYSCTL_HANDLER_ARGS)
|
||||
@ -174,7 +174,7 @@ sysctl_hw_usermem(SYSCTL_HANDLER_ARGS)
|
||||
}
|
||||
|
||||
SYSCTL_PROC(_hw, HW_USERMEM, usermem, CTLTYPE_INT|CTLFLAG_RD,
|
||||
0, 0, sysctl_hw_usermem, "I", "");
|
||||
0, 0, sysctl_hw_usermem, "IU", "");
|
||||
|
||||
static int
|
||||
sysctl_hw_availpages(SYSCTL_HANDLER_ARGS)
|
||||
|
Loading…
Reference in New Issue
Block a user