Lines Matching full:hdr
67 struct minidumphdr *hdr; in _powerpc64_minidump_initvtop() local
77 hdr = &vmst->hdr; in _powerpc64_minidump_initvtop()
81 if (pread(kd->pmfd, hdr, sizeof(*hdr), 0) != sizeof(*hdr)) { in _powerpc64_minidump_initvtop()
86 if (strncmp(MINIDUMP_MAGIC, hdr->magic, sizeof(hdr->magic)) != 0) { in _powerpc64_minidump_initvtop()
91 hdr->version = be32toh(hdr->version); in _powerpc64_minidump_initvtop()
92 if (hdr->version != MINIDUMP_VERSION && hdr->version != 1) { in _powerpc64_minidump_initvtop()
94 "Expected %d got %d", MINIDUMP_VERSION, hdr->version); in _powerpc64_minidump_initvtop()
98 hdr->msgbufsize = be32toh(hdr->msgbufsize); in _powerpc64_minidump_initvtop()
99 hdr->bitmapsize = be32toh(hdr->bitmapsize); in _powerpc64_minidump_initvtop()
100 hdr->pmapsize = be32toh(hdr->pmapsize); in _powerpc64_minidump_initvtop()
101 hdr->kernbase = be64toh(hdr->kernbase); in _powerpc64_minidump_initvtop()
102 hdr->kernend = be64toh(hdr->kernend); in _powerpc64_minidump_initvtop()
103 hdr->dmapbase = be64toh(hdr->dmapbase); in _powerpc64_minidump_initvtop()
104 hdr->dmapend = be64toh(hdr->dmapend); in _powerpc64_minidump_initvtop()
105 hdr->hw_direct_map = be32toh(hdr->hw_direct_map); in _powerpc64_minidump_initvtop()
106 hdr->startkernel = be64toh(hdr->startkernel); in _powerpc64_minidump_initvtop()
107 hdr->endkernel = be64toh(hdr->endkernel); in _powerpc64_minidump_initvtop()
108 hdr->dumpavailsize = hdr->version == MINIDUMP_VERSION ? in _powerpc64_minidump_initvtop()
109 be32toh(hdr->dumpavailsize) : 0; in _powerpc64_minidump_initvtop()
112 vmst->kimg_end = PPC64_KERNBASE + hdr->endkernel - hdr->startkernel; in _powerpc64_minidump_initvtop()
121 __func__, hdr->mmu_name, in _powerpc64_minidump_initvtop()
122 (uintmax_t)hdr->msgbufsize, in _powerpc64_minidump_initvtop()
123 (uintmax_t)hdr->bitmapsize, (uintmax_t)hdr->pmapsize, in _powerpc64_minidump_initvtop()
124 (uintmax_t)hdr->kernbase, (uintmax_t)hdr->kernend, in _powerpc64_minidump_initvtop()
125 (uintmax_t)hdr->dmapbase, (uintmax_t)hdr->dmapend, in _powerpc64_minidump_initvtop()
126 hdr->hw_direct_map, hdr->startkernel, hdr->endkernel, in _powerpc64_minidump_initvtop()
130 mmu_name = hdr->mmu_name; in _powerpc64_minidump_initvtop()
142 dump_avail_off = PPC64_PAGE_SIZE + ppc64_round_page(hdr->msgbufsize); in _powerpc64_minidump_initvtop()
143 bitmap_off = dump_avail_off + ppc64_round_page(hdr->dumpavailsize); in _powerpc64_minidump_initvtop()
144 pmap_off = bitmap_off + ppc64_round_page(hdr->bitmapsize); in _powerpc64_minidump_initvtop()
145 sparse_off = pmap_off + ppc64_round_page(hdr->pmapsize); in _powerpc64_minidump_initvtop()
154 if (_kvm_pt_init(kd, hdr->dumpavailsize, dump_avail_off, in _powerpc64_minidump_initvtop()
155 hdr->bitmapsize, bitmap_off, sparse_off, PPC64_PAGE_SIZE) == -1) in _powerpc64_minidump_initvtop()
158 if (_kvm_pmap_init(kd, hdr->pmapsize, pmap_off) == -1) in _powerpc64_minidump_initvtop()
190 return (kd->vmst->hdr.startkernel - PPC64_KERNBASE); in _powerpc64_kerndisp()