summaryrefslogtreecommitdiffstats
path: root/sys/arm
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2011-04-29 18:41:21 +0000
committerjhb <jhb@FreeBSD.org>2011-04-29 18:41:21 +0000
commit08955ceac0e6a5e070d655c0f47e170747a075d7 (patch)
treef321d6b25b24b3e15d314a828cb978d9b0cadfa4 /sys/arm
parent67e72142a1251ce0ac4d06ca82beb414ff6ae9f7 (diff)
downloadFreeBSD-src-08955ceac0e6a5e070d655c0f47e170747a075d7.zip
FreeBSD-src-08955ceac0e6a5e070d655c0f47e170747a075d7.tar.gz
Change rman_manage_region() to actually honor the rm_start and rm_end
constraints on the rman and reject attempts to manage a region that is out of range. - Fix various places that set rm_end incorrectly (to ~0 or ~0u instead of ~0ul). - To preserve existing behavior, change rman_init() to set rm_start and rm_end to allow managing the full range (0 to ~0ul) if they are not set by the caller when rman_init() is called.
Diffstat (limited to 'sys/arm')
-rw-r--r--sys/arm/arm/nexus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arm/arm/nexus.c b/sys/arm/arm/nexus.c
index 4efca14..bbde900 100644
--- a/sys/arm/arm/nexus.c
+++ b/sys/arm/arm/nexus.c
@@ -138,10 +138,10 @@ nexus_attach(device_t dev)
{
mem_rman.rm_start = 0;
- mem_rman.rm_end = ~0u;
+ mem_rman.rm_end = ~0ul;
mem_rman.rm_type = RMAN_ARRAY;
mem_rman.rm_descr = "I/O memory addresses";
- if (rman_init(&mem_rman) || rman_manage_region(&mem_rman, 0, ~0u))
+ if (rman_init(&mem_rman) || rman_manage_region(&mem_rman, 0, ~0))
panic("nexus_probe mem_rman");
/*
OpenPOWER on IntegriCloud