Changeset View
Changeset View
Standalone View
Standalone View
sys/sparc64/sparc64/dump_machdep.c
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | for (i = 0; i < nreg; i++) { | ||||
dump_map[i].pa_start = sparc64_memreg[i].mr_start; | dump_map[i].pa_start = sparc64_memreg[i].mr_start; | ||||
size += dump_map[i].pa_size = sparc64_memreg[i].mr_size; | size += dump_map[i].pa_size = sparc64_memreg[i].mr_size; | ||||
} | } | ||||
/* Account for the header size. */ | /* Account for the header size. */ | ||||
hdrsize = roundup2(sizeof(hdr) + sizeof(struct sparc64_dump_reg) * nreg, | hdrsize = roundup2(sizeof(hdr) + sizeof(struct sparc64_dump_reg) * nreg, | ||||
DEV_BSIZE); | DEV_BSIZE); | ||||
size += hdrsize; | size += hdrsize; | ||||
mkdumpheader(&kdh, KERNELDUMPMAGIC, KERNELDUMP_SPARC64_VERSION, size, | dump_init_header(di, &kdh, KERNELDUMPMAGIC, KERNELDUMP_SPARC64_VERSION, | ||||
kerneldumpcrypto_dumpkeysize(di->kdc), di->blocksize); | size); | ||||
printf("Dumping %lu MB (%d chunks)\n", (u_long)(size >> 20), nreg); | printf("Dumping %lu MB (%d chunks)\n", (u_long)(size >> 20), nreg); | ||||
error = dump_start(di, &kdh, &dumplo); | error = dump_start(di, &kdh, &dumplo); | ||||
if (error != 0) | if (error != 0) | ||||
goto fail; | goto fail; | ||||
/* Dump the private header. */ | /* Dump the private header. */ | ||||
Show All 39 Lines |