Test UARTs physical address instead of virtual.

This commit is contained in:
Aleksandr Rybalko 2013-10-25 11:44:39 +00:00
parent 3e8aed7f71
commit 4162dff98a

View file

@ -86,7 +86,13 @@ int
uart_cpu_eqres(struct uart_bas *b1, struct uart_bas *b2)
{
return ((b1->bsh == b2->bsh && b1->bst == b2->bst) ? 1 : 0);
if (b1->bst != b2->bst)
return (0);
if (pmap_kextract(b1->bsh) == 0)
return (0);
if (pmap_kextract(b2->bsh) == 0)
return (0);
return ((pmap_kextract(b1->bsh) == pmap_kextract(b2->bsh)) ? 1 : 0);
}
int