mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
Test UARTs physical address instead of virtual.
This commit is contained in:
parent
3e8aed7f71
commit
4162dff98a
1 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue