Lines Matching refs:RELOC
52 #define RELOC(v, t) *((t*)((uintptr_t)&(v) + firstpa))
83 * XXX worry about any of this RELOC() nonsense.
126 if (RELOC(mmutype, int) == MMU_68040)
138 nptpages = RELOC(Sysptsize, int) + howmany(RELOC(physmem, int), NPTEPG);
170 if (RELOC(mmutype, int) == MMU_68040) {
349 if (RELOC(mmutype, int) == MMU_68040)
363 if (RELOC(mmutype, int) == MMU_68040) {
374 RELOC(virtual_avail, vaddr_t) = PTE2VA(pte);
382 RELOC(Sysseg, st_entry_t *) = (st_entry_t *)(kstpa - firstpa);
383 RELOC(Sysseg_pa, paddr_t) = kstpa;
385 if (RELOC(mmutype, int) == MMU_68040)
386 RELOC(protostfree, u_int) = stfree;
391 RELOC(Sysptmap, pt_entry_t *) = (pt_entry_t *)(kptmpa - firstpa);
396 RELOC(Sysmap, pt_entry_t *) = (pt_entry_t *)SYSMAP_VA;
402 RELOC(lwp0uarea, vaddr_t) = lwp0upa - firstpa;
412 RELOC(bootinfo_mem_segments_avail[0].mem_size, uint32_t) -=
413 nextpa - RELOC(bootinfo_mem_segments_avail[0].mem_addr, uint32_t);
414 RELOC(bootinfo_mem_segments_avail[0].mem_addr, uint32_t) = nextpa;
420 RELOC(msgbufpa, paddr_t) = firstpa;
425 i = RELOC(bootinfo_mem_nsegments, int) - 1;
426 RELOC(avail_start, paddr_t) =
427 RELOC(bootinfo_mem_segments_avail[0].mem_addr, uint32_t);
428 RELOC(avail_end, paddr_t) =
429 RELOC(bootinfo_mem_segments_avail[i].mem_addr, uint32_t) +
430 RELOC(bootinfo_mem_segments_avail[i].mem_size, uint32_t);
432 RELOC(mem_size, vsize_t) = m68k_ptob(RELOC(physmem, int));
434 RELOC(virtual_end, vaddr_t) = VM_MAX_KERNEL_ADDRESS;
440 vaddr_t va = RELOC(virtual_avail, vaddr_t);
442 RELOC(CADDR1, void *) = (void *)va;
444 RELOC(CADDR2, void *) = (void *)va;
446 RELOC(vmmap, void *) = (void *)va;
448 RELOC(msgbufaddr, void *) = (void *)va;
450 RELOC(virtual_avail, vaddr_t) = va;