| /netbsd-src/sys/arch/next68k/next68k/ |
| H A D | nextrom.c | 62 #define RELOC(v, t) (*((t *)((u_int)&(v) + NEXT_RAMBASE))) macro 65 (*(volatile type *)((u_int)RELOC(mg, volatile struct mon_global *) + off)) 99 (RELOC(romprint_hextable[((v)>>4)&0xf], char)); \ 101 (RELOC(romprint_hextable[(v)&0xf], char)); \ 148 RELOC(rom_return_sp, uint8_t *) = args[0]; in next68k_bootargs() 149 RELOC(mg, char *) = args[1]; in next68k_bootargs() 193 RELOC(nsym, int) = 1; in next68k_bootargs() 194 RELOC(ssym, char *) = end; in next68k_bootargs() 195 RELOC(esym, char *) = (char *)maxsym - NEXT_RAMBASE; in next68k_bootargs() 198 ROM_PUTX(RELOC(nsym, int)); in next68k_bootargs() [all …]
|
| H A D | pmap_bootstrap.c | 64 #define RELOC(v, t) *((t*)((uintptr_t)&(v) + firstpa)) macro 119 if (RELOC(phys_seg_list[i].ps_start, paddr_t) == in pmap_bootstrap() 120 RELOC(phys_seg_list[i].ps_end, paddr_t)) { in pmap_bootstrap() 130 RELOC(phys_seg_list[i].ps_start, paddr_t) = in pmap_bootstrap() 131 m68k_round_page(RELOC(phys_seg_list[i].ps_start, in pmap_bootstrap() 133 RELOC(phys_seg_list[i].ps_end, paddr_t) = in pmap_bootstrap() 134 m68k_trunc_page(RELOC(phys_seg_list[i].ps_end, in pmap_bootstrap() 137 size = RELOC(phys_seg_list[i].ps_end, paddr_t) - in pmap_bootstrap() 138 RELOC(phys_seg_list[i].ps_start, paddr_t); in pmap_bootstrap() 140 RELOC(mem_clusters[i].start, u_quad_t) = in pmap_bootstrap() [all …]
|
| H A D | locore.s | 138 #define RELOC(var, ar) _RELOC(_C_LABEL(var), ar) macro 166 moveal #NEXT_RAMBASE,%a5 | amount to RELOC by. 167 RELOC(lowram,%a0) | store base of memory. 178 RELOC(next68k_bootargs,%a0) 199 RELOC(mmutype, %a0) | no, we have 68030 201 RELOC(cputype, %a0) 203 RELOC(machineid, %a0) 224 RELOC(mmutype, %a0) 226 RELOC(cputype, %a0) 228 RELOC(fputype, %a0) [all …]
|
| /netbsd-src/sys/arch/mvme68k/mvme68k/ |
| H A D | pmap_bootstrap.c | 53 #define RELOC(v, t) *((t*)((uintptr_t)&(v) + firstpa)) macro 108 if (RELOC(phys_seg_list[i].ps_start, paddr_t) == in pmap_bootstrap() 109 RELOC(phys_seg_list[i].ps_end, paddr_t)) { in pmap_bootstrap() 119 RELOC(phys_seg_list[i].ps_start, paddr_t) = in pmap_bootstrap() 120 m68k_round_page(RELOC(phys_seg_list[i].ps_start, in pmap_bootstrap() 122 RELOC(phys_seg_list[i].ps_end, paddr_t) = in pmap_bootstrap() 123 m68k_trunc_page(RELOC(phys_seg_list[i].ps_end, in pmap_bootstrap() 126 size = RELOC(phys_seg_list[i].ps_end, paddr_t) - in pmap_bootstrap() 127 RELOC(phys_seg_list[i].ps_start, paddr_t); in pmap_bootstrap() 129 RELOC(mem_clusters[i].start, u_quad_t) = in pmap_bootstrap() [all …]
|
| H A D | locore.s | 72 #define RELOC(var, ar) _RELOC(_C_LABEL(var), ar) macro 115 RELOC(bootpart,%a0) 117 RELOC(bootdevlun,%a0) 119 RELOC(bootctrllun,%a0) 121 RELOC(bootaddr,%a0) 123 RELOC(boothowto,%a0) 130 RELOC(edata,%a0) | clear out BSS 137 RELOC(esym, %a0) 140 RELOC(lowram, %a0) 152 RELOC(boardid,%a0) [all …]
|
| /netbsd-src/sys/arch/amiga/amiga/ |
| H A D | amiga_init.c | 73 #define RELOC(v, t) *((t*)((u_int)&(v) + loadbase)) macro 246 RELOC(boot_fphystart, u_long) = fphystart; in start_c() 247 RELOC(boot_fphysize, u_long) = fphysize; in start_c() 248 RELOC(boot_cphysize, u_long) = cphysize; in start_c() 250 RELOC(machineid, int) = id; in start_c() 251 RELOC(chipmem_end, vaddr_t) = cphysize; in start_c() 252 RELOC(esym, char *) = esym_addr; in start_c() 253 RELOC(boot_flags, u_long) = flags; in start_c() 254 RELOC(boot_partition, u_long) = boot_part; in start_c() 257 RELOC(aga_enable, u_long) |= 1; in start_c() [all …]
|
| /netbsd-src/sys/arch/news68k/news68k/ |
| H A D | pmap_bootstrap.c | 54 #define RELOC(v, t) *((t*)((uintptr_t)&(v) + firstpa)) macro 124 iiomapsize = m68k_btop(RELOC(intiotop_phys, u_int) - in pmap_bootstrap() 125 RELOC(intiobase_phys, u_int)); in pmap_bootstrap() 126 eiomapsize = m68k_btop(RELOC(extiotop_phys, u_int) - in pmap_bootstrap() 127 RELOC(extiobase_phys, u_int)); in pmap_bootstrap() 132 if (RELOC(mmutype, int) == MMU_68040) in pmap_bootstrap() 142 nptpages = RELOC(Sysptsize, int) + howmany(RELOC(physmem, int), NPTEPG) + in pmap_bootstrap() 180 if (RELOC(mmutype, int) == MMU_68040) { in pmap_bootstrap() 356 if (RELOC(mmutype, int) == MMU_68040) in pmap_bootstrap() 372 if (RELOC(mmutype, int) == MMU_68040) { in pmap_bootstrap() [all …]
|
| H A D | locore.s | 80 #define RELOC(var, ar) _RELOC(_C_LABEL(var), ar) macro 124 RELOC(bootdev,%a0) 126 RELOC(boothowto,%a0) 136 RELOC(esym, %a0) 143 RELOC(lowram, %a0) 157 RELOC(mmutype,%a0) 159 RELOC(cputype,%a0) 161 RELOC(fputype,%a0) 178 RELOC(systype,%a0) 180 RELOC(ectype, %a0) | [all …]
|
| /netbsd-src/sys/arch/virt68k/virt68k/ |
| H A D | pmap_bootstrap.c | 52 #define RELOC(v, t) *((t*)((uintptr_t)&(v) + firstpa)) macro 126 if (RELOC(mmutype, int) == MMU_68040) in pmap_bootstrap() 138 nptpages = RELOC(Sysptsize, int) + howmany(RELOC(physmem, int), NPTEPG); in pmap_bootstrap() 170 if (RELOC(mmutype, int) == MMU_68040) { in pmap_bootstrap() 349 if (RELOC(mmutype, int) == MMU_68040) in pmap_bootstrap() 363 if (RELOC(mmutype, int) == MMU_68040) { in pmap_bootstrap() 374 RELOC(virtual_avail, vaddr_t) = PTE2VA(pte); in pmap_bootstrap() 382 RELOC(Sysseg, st_entry_t *) = (st_entry_t *)(kstpa - firstpa); in pmap_bootstrap() 383 RELOC(Sysseg_pa, paddr_t) = kstpa; in pmap_bootstrap() 385 if (RELOC(mmutype, int) == MMU_68040) in pmap_bootstrap() [all …]
|
| /netbsd-src/sys/arch/luna68k/luna68k/ |
| H A D | pmap_bootstrap.c | 50 #define RELOC(v, t) *((t*)((uintptr_t)&(v) + firstpa)) macro 115 iiomapsize = m68k_btop(RELOC(intiotop_phys, u_int) - in pmap_bootstrap() 116 RELOC(intiobase_phys, u_int)); in pmap_bootstrap() 120 if (RELOC(mmutype, int) == MMU_68040) in pmap_bootstrap() 129 nptpages = RELOC(Sysptsize, int) + howmany(RELOC(physmem, int), NPTEPG) + in pmap_bootstrap() 159 if (RELOC(mmutype, int) == MMU_68040) { in pmap_bootstrap() 334 if (RELOC(mmutype, int) == MMU_68040) in pmap_bootstrap() 349 if (RELOC(mmutype, int) == MMU_68040) { in pmap_bootstrap() 365 protopte = RELOC(intiobase_phys, u_int) | PG_RW | PG_CI | PG_V; in pmap_bootstrap() 367 RELOC(intiobase, uint8_t *) = (uint8_t *)PTE2VA(pte); in pmap_bootstrap() [all …]
|
| H A D | locore.s | 82 #define RELOC(var,ar) _RELOC(_C_LABEL(var), ar) macro 104 RELOC(edata,%a0) | clear out BSS 111 RELOC(boothowto,%a0) 113 RELOC(bootdev,%a0) 115 RELOC(lowram,%a0) 121 RELOC(memavail,%a0) 127 RELOC(hwplanemask,%a0) 148 RELOC(cputype,%a0) 150 RELOC(mmutype,%a0) 152 RELOC(fputype,%a0) [all …]
|
| /netbsd-src/sys/arch/hp300/hp300/ |
| H A D | pmap_bootstrap.c | 51 #define RELOC(v, t) *((t*)((uintptr_t)&(v) + firstpa)) macro 118 if (RELOC(mmutype, int) == MMU_68040) in pmap_bootstrap() 129 nptpages = RELOC(Sysptsize, int) + howmany(RELOC(physmem, int), NPTEPG) + in pmap_bootstrap() 162 if (RELOC(mmutype, int) == MMU_68040) { in pmap_bootstrap() 361 if (RELOC(mmutype, int) == MMU_68040) in pmap_bootstrap() 375 if (RELOC(mmutype, int) == MMU_68040) { in pmap_bootstrap() 396 RELOC(intiobase, uint8_t *) = (uint8_t *)PTE2VA(pte); in pmap_bootstrap() 397 RELOC(intiolimit, uint8_t *) = (uint8_t *)PTE2VA(epte); in pmap_bootstrap() 402 RELOC(extiobase, uint8_t *) = (uint8_t *)PTE2VA(pte); in pmap_bootstrap() 404 RELOC(virtual_avail, vaddr_t) = PTE2VA(pte); in pmap_bootstrap() [all …]
|
| /netbsd-src/sys/arch/x68k/x68k/ |
| H A D | pmap_bootstrap.c | 51 #define RELOC(v, t) *((t*)((uintptr_t)&(v) + firstpa)) macro 117 if (RELOC(mmutype, int) == MMU_68040) in pmap_bootstrap() 126 nptpages = RELOC(Sysptsize, int) + howmany(RELOC(physmem, int), NPTEPG) + in pmap_bootstrap() 159 if (RELOC(mmutype, int) == MMU_68040) { in pmap_bootstrap() 332 if (RELOC(mmutype, int) == MMU_68040) in pmap_bootstrap() 346 if (RELOC(mmutype, int) == MMU_68040) { in pmap_bootstrap() 363 RELOC(intiobase, uint8_t *) = (uint8_t *)PTE2VA(pte); in pmap_bootstrap() 364 RELOC(intiolimit, uint8_t *) = (uint8_t *)PTE2VA(epte); in pmap_bootstrap() 369 RELOC(virtual_avail, vaddr_t) = PTE2VA(pte); in pmap_bootstrap() 377 RELOC(Sysseg, st_entry_t *) = (st_entry_t *)(kstpa - firstpa); in pmap_bootstrap() [all …]
|
| H A D | locore.s | 93 #define RELOC(var, ar) _RELOC(_C_LABEL(var), ar) macro 122 RELOC(vectab,%a0) | set Vector Base Register temporarily 126 RELOC(edata, %a0) | clear out BSS 136 RELOC(esym, %a0) 142 RELOC(lowram, %a0) 169 RELOC(mmutype, %a0) | no, we have 68060 171 RELOC(cputype, %a0) 175 RELOC(mmutype, %a0) 177 RELOC(cputype, %a0) 181 RELOC(mmutyp [all...] |
| /netbsd-src/sys/arch/cesfic/cesfic/ |
| H A D | pmap_bootstrap.c | 48 #define RELOC(v, t) *((t*)((uintptr_t)&(v) + firstpa - KERNBASE)) macro 112 if (RELOC(mmutype, int) == MMU_68040) in pmap_bootstrap() 123 nptpages = RELOC(Sysptsize, int) + howmany(RELOC(physmem, int), NPTEPG); in pmap_bootstrap() 158 if (RELOC(mmutype, int) == MMU_68040) { in pmap_bootstrap() 355 if (RELOC(mmutype, int) == MMU_68040) in pmap_bootstrap() 369 if (RELOC(mmutype, int) == MMU_68040) { in pmap_bootstrap() 384 RELOC(Sysseg, st_entry_t *) = in pmap_bootstrap() 386 RELOC(Sysseg_pa, paddr_t) = kstpa; in pmap_bootstrap() 387 if (RELOC(mmutype, int) == MMU_68040) in pmap_bootstrap() 388 RELOC(protostfree, u_int) = stfree; in pmap_bootstrap() [all …]
|
| H A D | locore.s | 118 #define RELOC(var, ar) _RELOC(_C_LABEL(var), ar) macro 144 RELOC(edata, %a1) 155 RELOC(edata, %a0) 156 RELOC(end, %a1) 162 RELOC(esym, %a0) 169 RELOC(lowram, %a0) 173 RELOC(boothowto, %a0) | save reboot flags 175 RELOC(bootdev, %a0) | and boot device 191 RELOC(mmutype, %a0) | no, we have 68030 193 RELOC(cputype, %a0) [all …]
|
| /netbsd-src/sys/arch/i386/i386/ |
| H A D | multiboot.c | 134 #define RELOC(type, x) ((type)((vaddr_t)(x) - KERNBASE)) in multiboot1_pre_reloc() macro 136 RELOC(struct multiboot_info *, &Multiboot_Info); in multiboot1_pre_reloc() 138 *RELOC(bool *, &Multiboot_Loader) = true; in multiboot1_pre_reloc() 142 strncpy(RELOC(void *, Multiboot_Cmdline), mi->mi_cmdline, in multiboot1_pre_reloc() 148 strncpy(RELOC(void *, Multiboot_Loader_Name), in multiboot1_pre_reloc() 154 memcpy(RELOC(void *, Multiboot_Mmap), in multiboot1_pre_reloc() 160 memcpy(RELOC(void *, Multiboot_Drives), in multiboot1_pre_reloc() 166 #undef RELOC in multiboot1_pre_reloc() 277 #define RELOC(type, x) ((type)((vaddr_t)(x) - KERNBASE)) in copy_syms() macro 291 ms = RELOC(struct multiboot_symbols *, &Multiboot_Symbols); in copy_syms() [all …]
|
| H A D | locore.S | 168 #define RELOC(x) _RELOC(_C_LABEL(x)) macro 210 movl RELOC(nox_flag),%ebp ; \ 275 ELFNOTE(Xen, XEN_ELFNOTE_PHYS32_ENTRY, .long, RELOC(start_xenpvh)) 657 movl $CPU_NX586,RELOC(cputype) 661 movl $CPU_386,RELOC(cputype) 680 is486: movl $CPU_486,RELOC(cputype) 698 movl $CPU_6x86,RELOC(cputype) /* set CPU type */ 716 movl $CPU_486DLC,RELOC(cputype) /* set CPU type */ 780 movl %eax,RELOC(cpuid_level) 789 movl $PTE_NX32,RELOC(nox_fla [all...] |
| /netbsd-src/sys/arch/amd64/amd64/ |
| H A D | locore.S | 190 #define RELOC(x) _RELOC(_C_LABEL(x)) macro 245 movl RELOC(nox_flag),%ebp ; \ 310 ELFNOTE(Xen, XEN_ELFNOTE_PHYS32_ENTRY, .long, RELOC(start_pvh)) 430 .long RELOC(gdt32) 482 movl %eax,RELOC(boothowto) 490 movl $RELOC(bootinfo),%ebp 528 movl %eax,RELOC(eblob) 529 addl $KERNBASE_LO,RELOC(eblob) 530 adcl $KERNBASE_HI,RELOC(eblob)+4 555 movl $RELOC(bootinf [all...] |
| /netbsd-src/external/bsd/nvi/dist/common/ |
| H A D | dldb.c | 11 #define RELOC(func,returntype,args,proto,types) \ macro 21 RELOC(db_create,int,(a,b,c),(DB **, DB_ENV *, u_int32_t), 23 RELOC(db_env_create,int,(a,b),(DB_ENV **, u_int32_t),DB_ENV ** a;u_int32_t b;); 24 RELOC(db_strerror,char *,(a),(int),int a;)
|
| /netbsd-src/sys/arch/sparc/stand/boot/ |
| H A D | Makefile | 59 .for RELOC in ${RELOCS} 60 boot.${RELOC}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} 61 ${LD} -S -o ${.TARGET}.tmp ${LINKFLAGS} -Ttext ${RELOC} ${OBJS} \ 66 CLEANFILES+= boot.${RELOC}.map
|
| /netbsd-src/sys/arch/x68k/stand/boot_ufs/ |
| H A D | boot.S | 69 #define RELOC(var) _RELOC(_C_LABEL(var)) macro 71 lea RELOC(__bss_start),%a1 89 movel %d4,RELOC(ID) | SCSI ID (if booted from SCSI) 110 movel %d0,RELOC(BOOT_INFO) 135 moveml %d0-%d1,RELOC(FDSECMINMAX) | min and max sec # 139 movel %d1,RELOC(FDMODE) 202 movel %d5,RELOC(SCSI_BLKLEN) 238 sc3: movel %d2,RELOC(SCSI_PARTTOP) 252 #undef RELOC /* base register a5 is no longer available */ 388 #define RELOC(var) _RELOC(_C_LABEL(var)) macro [all …]
|
| /netbsd-src/sys/arch/sparc/stand/ofwboot/ |
| H A D | Makefile | 60 RELOC= 100000 macro 66 CPPFLAGS+= -DRELOC=0x${RELOC} 102 ${LD} -N -p -Ttext ${RELOC} -e ${ENTRY} >lderr -o ${PROG} \ 107 ${LD} -X -N -S -Ttext ${RELOC} -e ${ENTRY} -o ${PROG} \
|
| /netbsd-src/sys/arch/x68k/stand/common/ |
| H A D | start.S | 210 #define RELOC(sym, reg) lea sym+top_pdb,reg; addl %a5,reg macro 212 RELOC(_end, %a1) | end of bss 253 RELOC(_C_LABEL(_memcp), %a6) 265 RELOC(_C_LABEL(_procp), %a6) 278 RELOC(_C_LABEL(_vernum), %a6) 321 RELOC(_C_LABEL(__progname), %a6) 413 RELOC(_C_LABEL(environ), %a0) 444 RELOC(_C_LABEL(main), %a0)
|
| /netbsd-src/sys/arch/hppa/stand/common/ |
| H A D | srt0.S | 76 ldil L%RELOC,%r4 77 ldo R%RELOC(%r4),%r4 106 ; We have relocated ourself to RELOC. If we are running on a machine 110 ldil L%RELOC,%r22 ; Set %t1 to start of relocated code. 111 ldo R%RELOC(%r22),%r22
|