Lines Matching refs:RELOC
73 #define RELOC(v, t) *((t*)((u_int)&(v) + loadbase))
246 RELOC(boot_fphystart, u_long) = fphystart;
247 RELOC(boot_fphysize, u_long) = fphysize;
248 RELOC(boot_cphysize, u_long) = cphysize;
250 RELOC(machineid, int) = id;
251 RELOC(chipmem_end, vaddr_t) = cphysize;
252 RELOC(esym, char *) = esym_addr;
253 RELOC(boot_flags, u_long) = flags;
254 RELOC(boot_partition, u_long) = boot_part;
257 RELOC(aga_enable, u_long) |= 1;
260 RELOC(noncontig_enable, u_long) = (flags >> 1) & 3;
263 RELOC(serconsole, int) = 0;
266 RELOC(scsi_nosync, u_long) = inh_sync;
277 RELOC(ncfdev, int) = *(int *)(&RELOC(*(u_int *)end_loaded, u_int));
278 RELOC(cfdev, struct cfdev *) = (struct cfdev *) ((int)end_loaded + 4);
279 end_loaded += 4 + RELOC(ncfdev, int) * sizeof(struct cfdev);
281 RELOC(memlist, struct boot_memlist *) =
283 ml = &RELOC(*(struct boot_memlist *)end_loaded, struct boot_memlist);
284 end_loaded = (vaddr_t)&((RELOC(memlist, struct boot_memlist *))->
291 if (ml->m_nseg > 0 && ml->m_nseg < 16 && RELOC(use_z2_mem, int)) {
302 RELOC(z2mem_end, paddr_t) =
304 RELOC(z2mem_start, paddr_t) =
305 RELOC(z2mem_end, paddr_t) - MAXPHYS *
306 RELOC(use_z2_mem, int) * 7;
307 RELOC(NZTWOMEMPG, u_int) =
308 (RELOC(z2mem_end, paddr_t) -
309 RELOC(z2mem_start, paddr_t)) / PAGE_SIZE;
310 if ((RELOC(z2mem_end, paddr_t) -
311 RELOC(z2mem_start, paddr_t)) > sp->ms_size) {
312 RELOC(NZTWOMEMPG, u_int) = sp->ms_size /
314 RELOC(z2mem_start, paddr_t) =
315 RELOC(z2mem_end, paddr_t) - sp->ms_size;
325 for (RELOC(ZBUSAVAIL, u_int) = 0, cd =
326 &RELOC(*RELOC(cfdev, struct cfdev *),struct cfdev),
327 ncd = RELOC(ncfdev, int); ncd > 0; ncd--, cd++) {
338 RELOC(ZBUSAVAIL, u_int) += m68k_round_page(0x1400000);
360 RELOC(ZBUSAVAIL, u_int) += m68k_round_page(cd->size);
379 RELOC(lwp0uarea, vaddr_t) = vstart;
385 if (RELOC(mmutype, int) == MMU_68040)
394 RELOC(Sysseg_pa, u_int) = pstart;
395 RELOC(Sysseg, u_int) = vstart;
403 RELOC(Sysptmap, u_int) = vstart;
416 + RELOC(NZTWOMEMPG, u_int)
417 + btoc(RELOC(ZBUSAVAIL, u_int));
420 ptextra = NCHIPMEMPG + NCIAPG + NZTWOROMPG + RELOC(NZTWOMEMPG, u_int) +
421 btoc(RELOC(ZBUSAVAIL, u_int)) + NPCMCIAPG;
423 ptsize = (RELOC(Sysptsize, u_int) +
433 RELOC(Sysmap, u_int *) = (u_int *)SYSMAP_VA;
439 if (RELOC(mmutype, int) == MMU_68040) {
444 sg = (st_entry_t *)RELOC(Sysseg_pa, u_int);
457 sg = (st_entry_t *)RELOC(Sysseg_pa, u_int);
472 sg = (st_entry_t *)RELOC(Sysseg_pa, u_int);
481 sg = (st_entry_t *)RELOC(Sysseg_pa, u_int);
489 sg = (st_entry_t *)RELOC(Sysseg_pa, u_int);
499 RELOC(protostfree, u_int) =
528 sg = (st_entry_t *)RELOC(Sysseg_pa, u_int);
548 sg = (st_entry_t *)RELOC(Sysseg_pa, u_int);
579 if (RELOC(mmutype, int) == MMU_68040) {
581 if (RELOC(kernel_copyback, int))
589 for (; kva < RELOC(Sysseg, u_int);
598 if (RELOC(kernel_copyback, int))
620 RELOC(DRCCADDR, u_int) = vstart;
621 RELOC(CIAADDR, vaddr_t) =
622 RELOC(DRCCADDR, u_int) + DRCIAPG * PAGE_SIZE;
623 if (RELOC(z2mem_end, vaddr_t) == 0)
624 RELOC(ZBUSADDR, vaddr_t) =
625 RELOC(DRCCADDR, u_int) + NDRCCPG * PAGE_SIZE;
648 RELOC(CHIPMEMADDR, vaddr_t) = vstart;
657 if (RELOC(z2mem_end, paddr_t)) { /* XXX */
658 RELOC(ZTWOMEMADDR, vaddr_t) = vstart;
659 RELOC(ZBUSADDR, vaddr_t) = RELOC(ZTWOMEMADDR, vaddr_t) +
660 RELOC(NZTWOMEMPG, u_int) * PAGE_SIZE;
661 pg_proto = RELOC(z2mem_start, paddr_t) | /* XXX */
663 while (pg_proto < RELOC(z2mem_end, paddr_t)) { /* XXX */
673 RELOC(CIAADDR, vaddr_t) = vstart;
680 RELOC(ZTWOROMADDR, vaddr_t) = vstart;
687 RELOC(ZBUSADDR, vaddr_t) = vstart;
689 RELOC(CIAADDR, vaddr_t) += PAGE_SIZE/2;
690 RELOC(CUSTOMADDR, vaddr_t) =
691 RELOC(ZTWOROMADDR, vaddr_t) - ZTWOROMBASE + CUSTOMBASE;
698 vstart += RELOC(ZBUSAVAIL, u_int);
703 RELOC(maxmem, u_int) = pend >> PGSHIFT;
704 RELOC(lowram, u_int) = fphystart;
705 RELOC(physmem, u_int) = fphysize >> PGSHIFT;
707 RELOC(virtual_avail, u_int) = vstart;
715 RELOC(m68k_uptbase, vaddr_t) =
724 RELOC(protorp[1], u_int) = RELOC(Sysseg_pa, u_int);
727 RELOC(start_c_fphystart, u_int) = fphystart;
728 RELOC(start_c_pstart, u_int) = pstart;
758 if (RELOC(mmutype, int) == MMU_68040) {
772 : : "a" (RELOC(Sysseg_pa, u_int)) : "a0");
790 __asm volatile ("pmove %0@,%%srp":: "a" (&RELOC(protorp, u_int)));