Justin Hibbits
da1b038af9
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
..
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2016-02-24 17:20:11 +00:00
2015-06-13 19:20:56 +00:00
2016-02-24 17:20:11 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2016-02-24 17:20:11 +00:00
2015-09-27 04:54:29 +00:00
2015-12-01 05:18:48 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2016-02-24 17:20:11 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2016-03-15 11:03:45 +00:00
2016-03-14 08:48:16 +00:00
2016-01-12 10:16:15 +00:00
2016-02-26 16:15:02 +00:00
2015-12-01 05:23:19 +00:00
2016-02-24 17:20:11 +00:00
2016-01-14 15:49:24 +00:00
2015-09-25 19:44:01 +00:00
2016-02-24 17:20:11 +00:00
2016-02-03 04:02:50 +00:00
2016-03-17 17:53:38 +00:00
2016-02-24 17:20:11 +00:00
2015-06-13 19:20:56 +00:00
2015-12-31 01:57:55 +00:00
2015-06-13 19:20:56 +00:00
2015-08-01 10:40:17 +00:00
2016-03-09 22:46:01 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2016-02-24 17:20:11 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2016-02-16 21:19:39 +00:00
2016-02-24 17:20:11 +00:00
2016-02-29 16:50:28 +00:00
2016-03-15 11:03:45 +00:00
2015-12-14 15:44:34 +00:00
2016-03-03 07:07:44 +00:00
2015-12-01 05:18:48 +00:00
2016-02-02 22:55:03 +00:00
2016-03-18 01:28:41 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2016-02-24 17:20:11 +00:00
2015-06-13 19:20:56 +00:00
2015-09-25 19:44:01 +00:00
2016-03-09 22:46:01 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2016-02-24 17:20:11 +00:00
2015-06-13 19:20:56 +00:00
2015-11-09 23:19:36 +00:00
2016-02-05 21:57:50 +00:00
2016-03-09 22:46:01 +00:00
2015-12-01 05:23:19 +00:00
2015-10-21 05:37:09 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2016-03-12 15:10:30 +00:00
2016-02-24 17:20:11 +00:00
2015-12-01 05:18:48 +00:00
2015-12-01 05:23:19 +00:00
2015-09-15 11:21:16 +00:00
2015-06-13 19:20:56 +00:00
2015-09-19 23:48:06 +00:00
2016-02-22 21:40:53 +00:00
2016-03-14 17:41:17 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2016-03-15 11:10:08 +00:00
2016-02-24 17:20:11 +00:00
2015-07-12 17:03:50 +00:00
2016-01-18 20:21:38 +00:00
2016-03-16 04:05:02 +00:00
2015-11-27 21:27:39 +00:00
2016-02-24 17:20:11 +00:00
2015-12-01 05:18:48 +00:00
2015-09-25 19:44:01 +00:00
2016-01-13 21:34:15 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-11-26 01:14:40 +00:00
2015-06-13 19:20:56 +00:00
2016-02-24 17:20:11 +00:00
2015-06-13 19:20:56 +00:00
2016-03-09 22:46:01 +00:00
2016-02-24 17:20:11 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-09-29 17:54:01 +00:00
2015-10-21 05:37:09 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-12-01 05:23:19 +00:00
2016-01-07 05:34:39 +00:00
2015-06-13 19:20:56 +00:00
2015-12-29 11:24:41 +00:00
2015-10-22 21:13:35 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-12-02 05:31:01 +00:00
2015-12-02 05:31:01 +00:00
2016-02-24 17:20:11 +00:00
2015-12-19 09:18:01 +00:00
2016-03-09 22:46:01 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-11-30 22:16:30 +00:00
2015-09-22 01:31:01 +00:00
2015-06-13 19:20:56 +00:00
2016-03-09 22:46:01 +00:00
2015-06-16 23:37:19 +00:00
2015-06-13 19:20:56 +00:00
2016-02-24 17:20:11 +00:00
2014-06-20 09:57:27 +00:00
2015-12-07 23:53:01 +00:00
2016-03-12 23:04:10 +00:00
2016-02-26 23:12:59 +00:00
2015-06-13 19:20:56 +00:00
2016-01-13 17:59:12 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-11-18 15:12:24 +00:00
2015-12-10 01:52:29 +00:00
2015-09-25 19:44:01 +00:00
2016-03-01 22:13:20 +00:00
2015-06-13 19:20:56 +00:00
2015-10-21 05:37:09 +00:00
2015-06-13 19:20:56 +00:00
2016-02-24 17:20:11 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-12-01 05:18:48 +00:00
2016-03-09 22:46:01 +00:00
2016-02-23 15:28:13 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2016-02-24 17:20:11 +00:00
2016-02-24 17:20:11 +00:00
2015-06-13 19:20:56 +00:00
2016-02-24 17:20:11 +00:00
2016-02-24 17:20:11 +00:00
2016-02-24 17:20:11 +00:00
2016-03-09 22:46:01 +00:00
2016-02-24 17:20:11 +00:00
2015-06-13 19:20:56 +00:00
2015-10-30 00:33:03 +00:00
2015-06-13 19:20:56 +00:00
2016-02-18 01:58:26 +00:00
2015-06-13 19:20:56 +00:00
2016-03-09 22:46:01 +00:00
2016-02-24 17:20:11 +00:00
2015-09-08 22:50:17 +00:00
2016-02-10 09:40:45 +00:00
2016-01-07 19:58:23 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2016-01-27 16:17:15 +00:00
2016-02-29 17:30:34 +00:00
2015-11-26 01:14:40 +00:00
2015-11-26 01:14:40 +00:00
2015-06-13 19:20:56 +00:00
2016-02-26 22:14:15 +00:00
2016-03-09 22:46:01 +00:00
2015-06-13 19:20:56 +00:00
2016-02-24 17:20:11 +00:00
2015-06-13 19:20:56 +00:00
2015-09-01 06:32:02 +00:00
2015-10-27 01:26:50 +00:00
2016-03-15 04:42:37 +00:00
2015-12-01 05:23:19 +00:00
2015-06-13 19:20:56 +00:00
2015-12-22 05:57:23 +00:00
2016-03-11 20:04:32 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2015-06-13 19:20:56 +00:00
2016-01-19 13:09:20 +00:00
2015-12-01 05:23:19 +00:00
2015-06-13 19:20:56 +00:00
2015-08-12 10:34:05 +00:00
2015-10-06 22:49:25 +00:00
2016-02-29 17:40:37 +00:00
2015-08-17 09:18:54 +00:00
2015-09-25 19:44:01 +00:00
2015-10-18 21:38:25 +00:00
2015-07-28 02:32:40 +00:00
2015-11-16 03:18:40 +00:00
2016-03-04 03:10:08 +00:00
2015-09-17 05:06:34 +00:00
2016-02-24 17:20:11 +00:00
2016-02-24 17:20:11 +00:00
2015-09-03 07:18:52 +00:00
2015-10-27 23:35:02 +00:00
2015-06-13 19:20:56 +00:00
2016-03-15 04:42:37 +00:00
2015-12-21 17:41:08 +00:00
2015-12-21 17:41:08 +00:00
2015-11-08 20:56:04 +00:00
2015-12-21 17:41:08 +00:00
2015-11-21 16:37:11 +00:00
2015-12-21 17:41:08 +00:00
2015-12-21 17:41:08 +00:00