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

Function vm_phys_early_add_seg

freebsd/vm/vm_phys.c:1596–1609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1594}
1595
1596void
1597vm_phys_early_add_seg(vm_paddr_t start, vm_paddr_t end)
1598{
1599 struct vm_phys_seg *seg;
1600
1601 if (vm_phys_early_nsegs == -1)
1602 panic("%s: called after initialization", __func__);
1603 if (vm_phys_early_nsegs == nitems(vm_phys_early_segs))
1604 panic("%s: ran out of early segments", __func__);
1605
1606 seg = &vm_phys_early_segs[vm_phys_early_nsegs++];
1607 seg->start = start;
1608 seg->end = end;
1609}
1610
1611/*
1612 * This routine allocates NUMA node specific memory before the page

Callers 4

getmemsizeFunction · 0.85
pmap_bootstrapFunction · 0.85
getmemsizeFunction · 0.85

Calls 1

panicFunction · 0.50

Tested by

no test coverage detected