Lines Matching defs:bootspace
53 struct bootspace bootspace;
141 if (bootspace.segs[i].type == BTSEG_TEXT) {
143 } else if (bootspace.segs[i].type == BTSEG_RODATA) {
148 mm_mprotect(bootspace.segs[i].va, bootspace.segs[i].sz, prot);
221 if (bootspace.segs[i].type == BTSEG_NONE) {
224 sva = bootspace.segs[i].va;
225 eva = sva + bootspace.segs[i].sz;
257 if (bootspace.segs[i].type == BTSEG_NONE) {
260 pa = bootspace.segs[i].pa + bootspace.segs[i].sz;
274 if (bootspace.segs[i].type == BTSEG_NONE) {
275 bootspace.segs[i].type = type;
276 bootspace.segs[i].va = va;
277 bootspace.segs[i].pa = pa;
278 bootspace.segs[i].sz = sz;
356 /* Register the values in bootspace */
357 bootspace.head.va = randva;
358 bootspace.head.pa = kernpa_start;
359 bootspace.head.sz = size;
395 /* Register the bootspace information */
442 /* Register the values in bootspace */
443 bootspace.boot.va = randva;
444 bootspace.boot.pa = bootpa;
445 bootspace.boot.sz = (size_t)(iom_base + IOM_SIZE) -
446 (size_t)bootspace.boot.va;
450 bootspace.spareva = bootspace.boot.va + NKL2_KIMG_ENTRIES * NBPD_L2;
451 bootspace.pdir = bootspace.boot.va + (PDPpaddr - bootspace.boot.pa);
452 bootspace.smodule = (vaddr_t)iom_base + IOM_SIZE;
453 bootspace.emodule = bootspace.boot.va + NKL2_KIMG_ENTRIES * NBPD_L2;
477 * The segments are mapped at random VAs and referenced in bootspace.segs[].
489 * At the end of this function, the bootspace structure is fully constructed.
494 memset(&bootspace, 0, sizeof(bootspace));