Protect against wrapping. This appaers to fix some hangs that people
have seen in the isa pnp case where a resource buts up against 0xffffffff. This would only impact when the board was booted without ACPI. Submitted by: Ed Maste (freebsd-stable <20050103145720.GA90754@sandvine.com>) MFC After: 5 days
This commit is contained in:
parent
ab4999c061
commit
784d07b40d
@ -147,7 +147,7 @@ isa_find_memory(device_t child, struct isa_config *config,
|
||||
for (start = config->ic_mem[i].ir_start,
|
||||
end = config->ic_mem[i].ir_end,
|
||||
align = config->ic_mem[i].ir_align;
|
||||
start + size - 1 <= end;
|
||||
start + size - 1 <= end && start + size > start;
|
||||
start += align) {
|
||||
bus_set_resource(child, SYS_RES_MEMORY, i,
|
||||
start, size);
|
||||
|
Loading…
x
Reference in New Issue
Block a user