freebsd-skq/usr.sbin
jhibbits 720f47c9ed Use uintmax_t (typedef'd to rman_res_t type) for rman ranges.
On some architectures, u_long isn't large enough for resource definitions.
Particularly, powerpc and arm allow 36-bit (or larger) physical addresses, but
type `long' is only 32-bit.  This extends rman's resources to uintmax_t.  With
this change, any resource can feasibly be placed anywhere in physical memory
(within the constraints of the driver).

Why uintmax_t and not something machine dependent, or uint64_t?  Though it's
possible for uintmax_t to grow, it's highly unlikely it will become 128-bit on
32-bit architectures.  64-bit architectures should have plenty of RAM to absorb
the increase on resource sizes if and when this occurs, and the number of
resources on memory-constrained systems should be sufficiently small as to not
pose a drastic overhead.  That being said, uintmax_t was chosen for source
clarity.  If it's specified as uint64_t, all printf()-like calls would either
need casts to uintmax_t, or be littered with PRI*64 macros.  Casts to uintmax_t
aren't horrible, but it would also bake into the API for
resource_list_print_type() either a hidden assumption that entries get cast to
uintmax_t for printing, or these calls would need the PRI*64 macros.  Since
source code is meant to be read more often than written, I chose the clearest
path of simply using uintmax_t.

Tested on a PowerPC p5020-based board, which places all device resources in
0xfxxxxxxxx, and has 8GB RAM.
Regression tested on qemu-system-i386
Regression tested on qemu-system-mips (malta profile)

Tested PAE and devinfo on virtualbox (live CD)

Special thanks to bz for his testing on ARM.

Reviewed By: bz, jhb (previous)
Relnotes:	Yes
Sponsored by:	Alex Perez/Inertial Computing
Differential Revision: https://reviews.freebsd.org/D4544
2016-03-18 01:28:41 +00:00
..
ac
accton
acpi DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
adduser
amd DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
ancontrol
apm
apmd DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
arp
asf
audit
auditd
auditdistd DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
auditreduce
authpf
autofs Use the log_errno value passed to the function instead of the errno global 2016-03-15 11:03:45 +00:00
bhyve Fix typo: nmd->cur_tx_ring should be used in pci_vtnet_netmap_writev() 2016-03-14 08:48:16 +00:00
bhyvectl Add a basic bhyvectl manpage. 2016-01-12 10:16:15 +00:00
bhyveload Add option -C to have the guest memory included in core files. 2016-02-26 16:15:02 +00:00
binmiscctl
bluetooth DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
boot0cfg Adjust previous fix to conform to the existing style in this file. 2016-01-14 15:49:24 +00:00
boot98cfg
bootparamd DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
bsdconfig f_substr(): Optimized recipe if running under bash 2016-02-03 04:02:50 +00:00
bsdinstall Remove 50% ZFS conditional from bsdinstall/zfsboot 2016-03-17 17:53:38 +00:00
bsnmpd DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
btxld
camdd Clean up unused-but-set-variable spotted by gcc-4.9. 2015-12-31 01:57:55 +00:00
cdcontrol
chkgrp
chown DIRDEPS_BUILD: Connect MK_TESTS. 2016-03-09 22:46:01 +00:00
chroot
ckdist
clear_locks
config DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
cpucontrol
crashinfo
cron crontab: ftruncate() with ftello() instead of ftell(). 2016-02-16 21:19:39 +00:00
crunch DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
ctladm Fix typo. 2016-02-29 16:50:28 +00:00
ctld Use the log_errno value passed to the function instead of the errno global 2016-03-15 11:03:45 +00:00
ctm Flesh out the SEE ALSO section. 2015-12-14 15:44:34 +00:00
daemon o -t comman line option added to the usage(). 2016-03-03 07:07:44 +00:00
dconschat
devctl - Note that devctl(8) will appear in 10.3 first. 2016-02-02 22:55:03 +00:00
devinfo Use uintmax_t (typedef'd to rman_res_t type) for rman ranges. 2016-03-18 01:28:41 +00:00
digictl
diskinfo
dumpcis
editmap DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
edquota
eeprom
etcupdate DIRDEPS_BUILD: Connect MK_TESTS. 2016-03-09 22:46:01 +00:00
extattr
extattrctl
fdcontrol
fdformat
fdread
fdwrite
fifolog DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
flowctl
fmtree
freebsd-update Provide a future release as an example, instead of a historical one. 2016-02-05 21:57:50 +00:00
fstyp DIRDEPS_BUILD: Connect MK_TESTS. 2016-03-09 22:46:01 +00:00
ftp-proxy
fwcontrol
getfmac
getpmac
gpioctl Fix gcc warnings about possibly uninitialized variables in gpioctl.c. 2016-03-12 15:10:30 +00:00
gssd DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
gstat
hyperv
i2c
ifmcstat
inetd
iostat Fix the usr.sbin/iostat build with GCC, broken by r295768 2016-02-22 21:40:53 +00:00
iovctl Clean up repeated "All rights reserved" 2016-03-14 17:41:17 +00:00
ip6addrctl
ipfwpcap
iscsid Make fail() preserve the errno. 2016-03-15 11:10:08 +00:00
jail DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
jexec
jls mdoc: sort Xr 2016-01-18 20:21:38 +00:00
kbdcontrol kbdcontrol: add -P path option to add keymap search paths 2016-03-16 04:05:02 +00:00
kbdmap
keyserv DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
kgmon
kgzip
kldxref Add support for relocating AArch64 modules to kldxref. This fixes an error 2016-01-13 21:34:15 +00:00
lastlogin
lmcconfig
lpr
lptcontrol
mailstats DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
mailwrapper
makefs DIRDEPS_BUILD: Connect MK_TESTS. 2016-03-09 22:46:01 +00:00
makemap DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
manctl
memcontrol
mergemaster
mfiutil
mixer
mld6query
mlxcontrol
mount_smbfs
mountd Allow /etc/exports to contain usernames/groups with spaces in them. 2016-01-07 05:34:39 +00:00
moused
mpsutil Fix type mismatches for malloc(3) and Co. 2015-12-29 11:24:41 +00:00
mptable
mptutil
mtest
nandsim
nandtool
ndiscvt DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
ndp Fix indent after r292333. 2015-12-19 09:18:01 +00:00
newsyslog DIRDEPS_BUILD: Connect MK_TESTS. 2016-03-09 22:46:01 +00:00
nfscbd
nfsd
nfsdumpstate
nfsrevoke
nfsuserd
ngctl
nghook
nmtree DIRDEPS_BUILD: Connect MK_TESTS. 2016-03-09 22:46:01 +00:00
nologin
nscd
ntp DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
nvram
ofwdump DIRDEPS_BUILD: Update dependencies. 2015-12-07 23:53:01 +00:00
pc-sysinstall dd report short write as error, so don't halt on it. 2016-03-12 23:04:10 +00:00
pciconf pciconf: Silence a GCC warning. 2016-02-26 23:12:59 +00:00
periodic
pkg Remove some unneeded headers 2016-01-13 17:59:12 +00:00
pmcannotate
pmccontrol
pmcstat
pmcstudy Fix several typos and bugs within pmcstudy. Also highlight the one SB test 2015-12-10 01:52:29 +00:00
pnpinfo
portsnap - update portsnap(8) to direct users to pkg-version 2016-03-01 22:13:20 +00:00
powerd
ppp
pppctl
praliases DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
praudit
procctl
pstat
pw DIRDEPS_BUILD: Connect MK_TESTS. 2016-03-09 22:46:01 +00:00
pwd_mkdb Following revision r295924, the changes to a db file should be fsynced 2016-02-23 15:28:13 +00:00
quot
quotaon
rarpd
repquota
rip6query
rmt
route6d
rpc.lockd DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
rpc.statd DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
rpc.umntall
rpc.yppasswdd DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
rpc.ypupdated DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
rpc.ypxfrd DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
rpcbind DIRDEPS_BUILD: Connect MK_TESTS. 2016-03-09 22:46:01 +00:00
rrenumd DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
rtadvctl
rtadvd
rtprio
rtsold Use the _SAFE loop variant, since the loop body may remove queue entries. 2016-02-18 01:58:26 +00:00
rwhod
sa DIRDEPS_BUILD: Connect MK_TESTS. 2016-03-09 22:46:01 +00:00
sendmail DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
service
services_mkdb Remove O_SYNC from the options passed to dbmopen(). 2016-02-10 09:40:45 +00:00
sesutil DIRDEPS_BUILD: Update dependencies. 2016-01-07 19:58:23 +00:00
setfib
setfmac
setpmac
sicontrol
smbmsg
snapinfo
spkrtest
spray
syslogd syslogd: Enable repeated line compression for lines of any length. 2016-01-27 16:17:15 +00:00
sysrc jls(1) -> jls(8) 2016-02-29 17:30:34 +00:00
tcpdchk
tcpdmatch
tcpdrop
tcpdump Update dependencies. 2016-02-26 22:14:15 +00:00
tests DIRDEPS_BUILD: Connect MK_TESTS. 2016-03-09 22:46:01 +00:00
timed
traceroute DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
traceroute6
trpt
tzsetup
uathload Just install ar5523.bin into /usr/share/firmware and stop compiling it 2016-03-15 04:42:37 +00:00
uefisign
ugidfw
uhsoctl Prevent use-after-free with ctx->ns in set_nameservers(..), which could occur 2015-12-22 05:57:23 +00:00
unbound Add to CFLAGS, rather than replacing. 2016-03-11 20:04:32 +00:00
usbconfig
usbdump
utx
vidcontrol Add "vidcontrol -i active", to print out active vty number, 2016-01-19 13:09:20 +00:00
vigr
vipw
wake
watch
watchdogd Fix typo. 2016-02-29 17:40:37 +00:00
wlandebug
wlconfig
wpa
yp_mkdb
ypbind
ypldap Set argument encode/result decode call backs for 'maplist' and 'all'. 2016-03-04 03:10:08 +00:00
yppoll
yppush DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
ypserv DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
ypset
zic
zzz
Makefile Just install ar5523.bin into /usr/share/firmware and stop compiling it 2016-03-15 04:42:37 +00:00
Makefile.amd64 Make the building of libsmb and mount_smbfs unconditional, now that r292552 2015-12-21 17:41:08 +00:00
Makefile.arm Make the building of libsmb and mount_smbfs unconditional, now that r292552 2015-12-21 17:41:08 +00:00
Makefile.arm64
Makefile.i386 Make the building of libsmb and mount_smbfs unconditional, now that r292552 2015-12-21 17:41:08 +00:00
Makefile.inc
Makefile.mips
Makefile.powerpc Make the building of libsmb and mount_smbfs unconditional, now that r292552 2015-12-21 17:41:08 +00:00
Makefile.sparc64 Make the building of libsmb and mount_smbfs unconditional, now that r292552 2015-12-21 17:41:08 +00:00