MCPcopy Create free account
hub / github.com/F-Stack/f-stack / pagezero

Function pagezero

freebsd/i386/i386/pmap.c:4495–4507  ·  view source on GitHub ↗

* Zero 1 page of virtual memory mapped from a hardware page by the caller. */

Source from the content-addressed store, hash-verified

4493 * Zero 1 page of virtual memory mapped from a hardware page by the caller.
4494 */
4495static __inline void
4496pagezero(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.

Callers 4

__CONCAT(PMTYPE, pinit)Function · 0.70
pmap_remove_kernel_pdeFunction · 0.70

Calls 1

bzeroFunction · 0.85

Tested by

no test coverage detected