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

Function allocpages

freebsd/amd64/amd64/pmap.c:1511–1520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1509}
1510
1511static u_int64_t
1512allocpages(vm_paddr_t *firstaddr, int n)
1513{
1514 u_int64_t ret;
1515
1516 ret = *firstaddr;
1517 bzero((void *)ret, n * PAGE_SIZE);
1518 *firstaddr += n * PAGE_SIZE;
1519 return (ret);
1520}
1521
1522CTASSERT(powerof2(NDMPML4E));
1523

Callers 2

create_pagetablesFunction · 0.70
pmap_bootstrapFunction · 0.70

Calls 1

bzeroFunction · 0.85

Tested by

no test coverage detected