Changeset View
Changeset View
Standalone View
Standalone View
lib/libkvm/kvm_minidump_powerpc64.c
Show First 20 Lines • Show All 145 Lines • ▼ Show 20 Lines | _powerpc64_minidump_initvtop(kvm_t *kd) | ||||
/* dump offsets */ | /* dump offsets */ | ||||
dprintf("%s: msgbuf_off=0x%jx, bitmap_off=0x%jx, pmap_off=0x%jx, " | dprintf("%s: msgbuf_off=0x%jx, bitmap_off=0x%jx, pmap_off=0x%jx, " | ||||
"sparse_off=0x%jx\n", | "sparse_off=0x%jx\n", | ||||
__func__, (uintmax_t)PPC64_PAGE_SIZE, (uintmax_t)bitmap_off, | __func__, (uintmax_t)PPC64_PAGE_SIZE, (uintmax_t)bitmap_off, | ||||
(uintmax_t)pmap_off, (uintmax_t)sparse_off); | (uintmax_t)pmap_off, (uintmax_t)sparse_off); | ||||
/* build physical address lookup table for sparse pages */ | /* build physical address lookup table for sparse pages */ | ||||
if (_kvm_pt_init(kd, hdr->bitmapsize, bitmap_off, sparse_off, | if (_kvm_pt_init(kd, sizeof(*hdr), hdr->bitmapsize, bitmap_off, | ||||
PPC64_PAGE_SIZE, sizeof(uint64_t)) == -1) | sparse_off, PPC64_PAGE_SIZE, sizeof(uint64_t)) == -1) | ||||
goto failed; | goto failed; | ||||
if (_kvm_pmap_init(kd, hdr->pmapsize, pmap_off) == -1) | if (_kvm_pmap_init(kd, hdr->pmapsize, pmap_off) == -1) | ||||
goto failed; | goto failed; | ||||
return (0); | return (0); | ||||
failed: | failed: | ||||
_powerpc64_minidump_freevtop(kd); | _powerpc64_minidump_freevtop(kd); | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |