Line 115... |
Line 115... |
|
|
debug(5, "addr & %"PRIxADDR" == %"PRIxADDR" to %"PRIxADDR", size %08"PRIx32"\n",
|
debug(5, "addr & %"PRIxADDR" == %"PRIxADDR" to %"PRIxADDR", size %08"PRIx32"\n",
|
addr_mask, addr_compare, addr_compare | bit_mask (size), size);
|
addr_mask, addr_compare, addr_compare | bit_mask (size), size);
|
/* Go to the end of the list. */
|
/* Go to the end of the list. */
|
for(pptmp = &dev_list; *pptmp; pptmp = &(*pptmp)->next)
|
for(pptmp = &dev_list; *pptmp; pptmp = &(*pptmp)->next)
|
if ((addr_compare >= (*pptmp)->addr_compare) && (addr_compare < (*pptmp)->addr_compare + (*pptmp)->size)
|
if (((addr_compare >= (*pptmp)->addr_compare) &&
|
|| (addr_compare + size > (*pptmp)->addr_compare) && (addr_compare < (*pptmp)->addr_compare + (*pptmp)->size)) {
|
(addr_compare < (*pptmp)->addr_compare + (*pptmp)->size)) ||
|
|
((addr_compare + size > (*pptmp)->addr_compare) &&
|
|
(addr_compare < (*pptmp)->addr_compare + (*pptmp)->size))) {
|
if (!found_error) {
|
if (!found_error) {
|
fprintf (stderr, "ERROR: Overlapping memory area(s):\n");
|
fprintf (stderr, "ERROR: Overlapping memory area(s):\n");
|
fprintf (stderr, "\taddr & %"PRIxADDR" == %"PRIxADDR" to %"PRIxADDR
|
fprintf (stderr, "\taddr & %"PRIxADDR" == %"PRIxADDR" to %"PRIxADDR
|
", size %08"PRIx32"\n",
|
", size %08"PRIx32"\n",
|
addr_mask, addr_compare, addr_compare | bit_mask (size), size);
|
addr_mask, addr_compare, addr_compare | bit_mask (size), size);
|