Changeset View
Changeset View
Standalone View
Standalone View
sys/powerpc/powerpc/nexus.c
Context not available. | |||||
{ | { | ||||
if (type == SYS_RES_MEMORY) { | if (type == SYS_RES_MEMORY) { | ||||
vm_offset_t start; | vm_paddr_t start; | ||||
void *p; | void *p; | ||||
start = (vm_offset_t) rman_get_start(r); | start = rman_get_start(r); | ||||
if (rman_get_end(r) > BUS_SPACE_MAXADDR) | |||||
jhb: This looks like another place where the rman needs to be initialized properly to not cover… | |||||
Not Done Inline ActionsThis is actually redundant, since the SYS_RES_MEMORY rman only manages 0->BUS_SPACE_MAXADDR (see sys/dev/ofw/ofwbus.c). jhibbits: This is actually redundant, since the SYS_RES_MEMORY rman only manages 0->BUS_SPACE_MAXADDR… | |||||
return (ENOMEM); | |||||
if (bootverbose) | if (bootverbose) | ||||
printf("nexus mapdev: start %zx, len %ld\n", start, | printf("nexus mapdev: start %jx, len %jd\n", | ||||
rman_get_size(r)); | (rman_res_t)start, rman_get_size(r)); | ||||
p = pmap_mapdev(start, (vm_size_t) rman_get_size(r)); | p = pmap_mapdev(start, (vm_size_t) rman_get_size(r)); | ||||
if (p == NULL) | if (p == NULL) | ||||
Context not available. |
This looks like another place where the rman needs to be initialized properly to not cover addresses above BUS_SPACE_MAXADDR.