* Zero 1 page of virtual memory mapped from a hardware page by the caller. */
| 4493 | * Zero 1 page of virtual memory mapped from a hardware page by the caller. |
| 4494 | */ |
| 4495 | static __inline void |
| 4496 | pagezero(void *page) |
| 4497 | { |
| 4498 | #if defined(I686_CPU) |
| 4499 | if (cpu_class == CPUCLASS_686) { |
| 4500 | if (cpu_feature & CPUID_SSE2) |
| 4501 | sse2_pagezero(page); |
| 4502 | else |
| 4503 | i686_pagezero(page); |
| 4504 | } else |
| 4505 | #endif |
| 4506 | bzero(page, PAGE_SIZE); |
| 4507 | } |
| 4508 | |
| 4509 | /* |
| 4510 | * Zero the specified hardware page. |
no test coverage detected