| /src/sys/arch/sparc/include/ |
| elf_support.h | 38 unsigned int *where = (unsigned int *)where_; local 40 unsigned long offset = value - (unsigned long)where; 46 where[0] = BAA | ((offset >> 2) & 0x3fffff); 47 __asm volatile("iflush %0+0" : : "r" (where)); 57 where[1] = JMP | LOVAL(value, 0); 58 __asm volatile("iflush %0+4" : : "r" (where)); 59 where[0] = SETHI | HIVAL(value, 10); 60 __asm volatile("iflush %0+0" : : "r" (where));
|
| /src/sys/arch/vax/vax/ |
| kobj_machdep.c | 49 Elf_Addr *where = (Elf_Addr *)(relocbase + rela->r_offset); local 72 addr -= (Elf_Addr)where + 4; 74 *where = addr;
|
| /src/games/monop/ |
| print.c | 64 * This routine lists where each player is. 67 where(void) function
|
| /src/lib/libkvm/ |
| kvm_file.c | 87 char *where = kd->argspc; local 98 where += sizeof(fhead); 107 ((struct file *)(void *)where))) { 112 fp = (struct file *)(void *)where; 113 where += sizeof(struct file);
|
| /src/sys/arch/alpha/alpha/ |
| kobj_machdep.c | 69 Elf_Addr *where; local 79 where = (Elf_Addr *) (relocbase + rela->r_offset); 85 where = (Elf_Addr *) (relocbase + rel->r_offset); 86 addend = *where; 106 if (*where != addr) 107 *where = addr; 115 if (*where != addr) 116 *where = addr; 124 if (*where != addr) 125 *where = addr [all...] |
| /src/sys/arch/amd64/amd64/ |
| kobj_machdep.c | 76 Elf64_Addr *where, val; local 87 where = (Elf64_Addr *)(relocbase + rela->r_offset); 93 where = (Elf64_Addr *)(relocbase + rel->r_offset); 101 addend = *(Elf32_Addr *)where; 104 addend = *where; 124 memcpy(where, &val, sizeof(val)); 132 where32 = (Elf32_Addr *)where; 133 val32 = (Elf32_Addr)(addr + addend - (Elf64_Addr)where); 143 where32 = (Elf32_Addr *)where; 152 memcpy(where, &addr, sizeof(addr)) 172 uint64_t where; local [all...] |
| /src/sys/arch/i386/i386/ |
| kobj_machdep.c | 76 Elf_Addr *where; local 86 where = (Elf_Addr *) (relocbase + rela->r_offset); 92 where = (Elf_Addr *) (relocbase + rel->r_offset); 93 addend = *where; 119 addr += addend - (Elf_Addr)where; 137 *where = addr; 144 uint64_t where; local 154 where = xc_broadcast(0, (xcfunc_t)wbinvd, NULL, NULL); 155 xc_wait(where);
|
| /src/sys/arch/m68k/m68k/ |
| kobj_machdep.c | 44 Elf_Addr *where; local 56 where = (Elf_Addr *)(relocbase + rela->r_offset); 74 tmp = (Elf_Addr)(addr + rela->r_addend) - (Elf_Addr)where; 75 if (*where != tmp) 76 *where = tmp; 84 tmp = (Elf_Addr)(addr + *where + rela->r_addend); 85 *where = tmp; 89 *where += (Elf_Addr)(relocbase + rela->r_addend);
|
| /src/sys/arch/powerpc/powerpc/ |
| kobj_machdep.c | 72 Elf_Addr *where; local 85 where = (Elf_Addr *) (relocbase + rela->r_offset); 131 * (i.e. .rodata) in rela, where in reality they 155 *where = addend;
|
| /src/sys/arch/sh3/sh3/ |
| kobj_machdep.c | 47 Elf_Addr *where; local 58 where = (Elf_Addr *)(relocbase + rela->r_offset); 78 tmp = (Elf_Addr)(addr + *where + rela->r_addend); 80 tmp -= (uintptr_t)where; 81 *where = tmp;
|
| /src/sys/compat/common/ |
| sysv_ipc_50.c | 79 void *where = oldp; local 99 start = where; 137 if (where == NULL || *sizep > infosize) 142 if (where == NULL) {
|
| /src/libexec/ld.elf_so/arch/sh3/ |
| mdreloc.c | 72 Elf_Addr *where; local 86 where = (Elf_Addr *)(relocbase + rela->r_offset); 87 *where = (Elf_Addr)(relocbase + rela->r_addend); 100 Elf_Addr *where; local 104 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); 135 if (*where != tmp) 136 *where = tmp; 139 obj->path, (void *)*where, defobj->path)); 144 rela->r_addend) - (Elf_Addr)where; 145 if (*where != tmp 255 Elf_Addr *where = (Elf_Addr *)(obj->relocbase + rela->r_offset); local 300 Elf_Addr *where = (Elf_Addr *)(obj->relocbase + rela->r_offset); local [all...] |
| /src/sys/arch/hppa/hppa/ |
| kobj_machdep.c | 108 load_ptr(void *where) 110 if (__predict_true(RELOC_ALIGNED_P(where))) 111 return *(Elf_Addr *)where; 115 (void)memcpy(&res, where, sizeof(res)); 121 store_ptr(void *where, Elf_Addr val) 123 if (__predict_true(RELOC_ALIGNED_P(where))) 124 *(Elf_Addr *)where = val; 126 (void)memcpy(where, &val, sizeof(val)); 133 Elf_Addr *where; local 147 where = (Elf_Addr *) (relocbase + rela->r_offset) [all...] |
| /src/sys/arch/mips/mips/ |
| kobj_machdep.c | 66 Elf_Addr addr, addend, *where; local 82 where = (Elf_Addr *)(relocbase + rela->r_offset); 94 insn = (void *)where; 97 KASSERT(((intptr_t)where & (sizeof(int32_t) - 1)) == 0); 110 where32 = (void *)where; 126 addr += ((intptr_t)where & 0xf0000000) | addend; 177 DPRINTF(" orig = 0x%016lx\n", *where); 178 *where = addr; 179 DPRINTF(" new = 0x%016lx\n", *where); 229 __func__, rtype, where); 248 uint64_t where; local [all...] |
| /src/sys/arch/sparc64/include/ |
| elf_support.h | 34 * Create a jump to the location `target` starting at `where`. 56 unsigned int *where = (unsigned int *)where_; local 58 unsigned long offset = value - (unsigned long)where; 64 where[0] = BAA | ((offset >> 2) & 0x3fffff); 65 __asm volatile("iflush %0+0" : : "r" (where)); 76 where[1] = JMP | LOVAL(value, 0); 77 __asm volatile("iflush %0+4" : : "r" (where)); 78 where[0] = SETHI | HIVAL(value, 10); 79 __asm volatile("iflush %0+0" : : "r" (where)); 90 where[2] = JMP [all...] |
| /src/sys/external/bsd/drm2/dist/drm/mga/ |
| mga_warp.c | 61 int n_pipes, where; local 92 where = 0; 97 where++; 100 if (where != n_pipes) { 116 where = 0; 123 dev_priv->warp_pipe_phys[where] = pcbase; 129 where++;
|
| /src/libexec/ld.elf_so/arch/aarch64/ |
| mdreloc.c | 146 _rtld_tlsdesc_fill(const Obj_Entry *obj, const Elf_Rela *rela, Elf_Addr *where, u_int flags) 160 where[0] = (Elf_Addr)_rtld_tlsdesc_undef; 161 where[1] = rela->r_addend; 165 obj->path, (void *)where[1])); 177 where[0] = (Elf_Addr)_rtld_tlsdesc_static; 178 where[1] = defobj->tlsoffset + offs + 182 obj->path, (void *)where[1])); 185 where[0] = (Elf_Addr)_rtld_tlsdesc_dynamic; 186 where[1] = (Elf_Addr)_rtld_tlsdesc_alloc(defobj->tlsindex, offs); 190 obj->path, (void *)where[1], defobj->tlsindex, (void *)offs)) 199 Elf_Addr *where; local 226 Elf_Addr *where; local 353 Elf_Addr *where = (Elf_Addr *)(obj->relocbase + rela->r_offset); local 381 Elf_Addr *where, target; local 402 Elf_Addr *where = (Elf_Addr *)(obj->relocbase + rela->r_offset); local [all...] |
| /src/libexec/ld.elf_so/arch/arm/ |
| mdreloc.c | 39 Elf_Addr *where; local 53 where = (Elf_Addr *)(relocbase + rel->r_offset); 54 *where += (Elf_Addr)relocbase; 66 load_ptr(void *where) 70 memcpy(&res, where, sizeof(res)); 76 store_ptr(void *where, Elf_Addr val) 79 memcpy(where, &val, sizeof(val)); 91 Elf_Addr *where; local 95 where = (Elf_Addr *)(obj->relocbase + rel->r_offset); 129 addend = *where; 279 Elf_Addr *where = (Elf_Addr *)(obj->relocbase + rel->r_offset); local 299 Elf_Addr *where = (Elf_Addr *)(obj->relocbase + rel->r_offset); local [all...] |
| /src/libexec/ld.elf_so/arch/m68k/ |
| mdreloc.c | 76 Elf_Addr *where; local 90 where = (Elf_Addr *)(relocbase + rela->r_offset); 91 *where += (Elf_Addr)relocbase; 104 Elf_Addr *where; local 108 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); 138 rela->r_addend) - (Elf_Addr)where; 139 if (*where != tmp) 140 *where = tmp; 143 obj->path, (void *)*where, defobj->path)); 152 if (*where != tmp 234 Elf_Addr *where = (Elf_Addr *)(obj->relocbase + rela->r_offset); local 250 Elf_Addr *where = (Elf_Addr *)(obj->relocbase + rela->r_offset); local [all...] |
| /src/libexec/ld.elf_so/arch/or1k/ |
| mdreloc.c | 75 Elf_Addr *where; local 89 where = (Elf_Addr *)(relocbase + rela->r_offset); 90 *where = (Elf_Addr)(relocbase + rela->r_addend); 103 Elf_Addr *where; local 107 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); 139 if (*where != tmp) 140 *where = tmp; 143 obj->path, (void *)*where, defobj->path)); 147 *where = (Elf_Addr)(obj->relocbase + rela->r_addend); 149 (void *)*where)); 221 Elf_Word *where = (Elf_Word *)(obj->relocbase + rela->r_offset); local 237 Elf_Word *where = (Elf_Word *)(obj->relocbase + rela->r_offset); local [all...] |
| /src/libexec/ld.elf_so/arch/powerpc/ |
| fixup.c | 67 uint32_t *start, *end, *where; local 71 end = start + data_size / sizeof(*where); 81 for (where = start; where < end; where++) { 82 union instr i = *(union instr *)where; 94 where)); 98 dbg(("fixup instruction at %p: 0x%x", where, i.i_int)); 102 *where = i.i_int; 103 __syncicache(where, 4) [all...] |
| /src/libexec/ld.elf_so/arch/riscv/ |
| mdreloc.c | 89 Elf_Addr *where = (Elf_Addr *)(relocbase + rela->r_offset); local 94 *where = val; 96 where, (void *)val)); 118 Elf_Addr * const where = local 150 where, (void *)val, 155 *where = val; 164 where, (void *)val, 170 *where = val; 193 where, (void *)val, 198 *where = val 255 Elf_Addr *where = (Elf_Addr *)(obj->relocbase + rela->r_offset); local 274 Elf_Addr * const where = (Elf_Addr *)(obj->relocbase + rela->r_offset); local [all...] |
| /src/libexec/ld.elf_so/arch/vax/ |
| mdreloc.c | 62 Elf_Addr *where; local 76 where = (Elf_Addr *)(relocbase + rela->r_offset); 77 *where = (Elf_Addr)(relocbase + rela->r_addend); 90 Elf_Addr *where; local 94 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); 122 if (*where != tmp) 123 *where = tmp; 126 obj->path, (void *)*where, defobj->path)); 131 if (*where != tmp) 132 *where = tmp 178 Elf_Addr *where = (Elf_Addr *)(obj->relocbase + rela->r_offset); local 194 Elf_Addr *where = (Elf_Addr *)(obj->relocbase + rela->r_offset); local [all...] |
| /src/libexec/ld.elf_so/arch/x86_64/ |
| mdreloc.c | 121 Elf_Addr *where; local 139 where = (Elf_Addr *)(relocbase + rela->r_offset); 140 *where = (Elf_Addr)(relocbase + rela->r_addend); 306 Elf_Addr *where = (Elf_Addr *)(obj->relocbase + rela->r_offset); local 315 *where += (Elf_Addr)obj->relocbase; 316 rdbg(("fixup !main in %s --> %p", obj->path, (void *)*where)); 325 Elf_Addr *where = (Elf_Addr *)(obj->relocbase + rela->r_offset); local 352 defobj->strtab + def->st_name, (void *)*where, (void *)new_value)); 353 if (*where != new_value) 354 *where = new_value [all...] |
| /src/libexec/ld.elf_so/ |
| reloc.c | 227 Elf_Addr *where; local 233 where = (Elf_Addr *)(obj->relocbase + *relr); 234 *where++ += (Elf_Addr)obj->relocbase; 248 for (i = 1; i < CHAR_BIT*sizeof(*relr); i++, where++) { 250 *where += (Elf_Addr)obj->relocbase; 376 Elf_Addr *where; local 394 where = (Elf_Addr *)(obj->relocbase + rela->r_offset); 403 if (*where != target) 404 *where = target; 412 where = (Elf_Addr *)(obj->relocbase + rela->r_offset) 428 Elf_Addr *where, target; local [all...] |