* Return the index of the first unused slot which may be the terminating * entry. */
| 1494 | * entry. |
| 1495 | */ |
| 1496 | static int |
| 1497 | vm_phys_avail_count(void) |
| 1498 | { |
| 1499 | int i; |
| 1500 | |
| 1501 | for (i = 0; phys_avail[i + 1]; i += 2) |
| 1502 | continue; |
| 1503 | if (i > PHYS_AVAIL_ENTRIES) |
| 1504 | panic("Improperly terminated phys_avail %d entries", i); |
| 1505 | |
| 1506 | return (i); |
| 1507 | } |
| 1508 | |
| 1509 | /* |
| 1510 | * Assert that a phys_avail entry is valid. |
no test coverage detected