| /netbsd-src/external/gpl3/binutils.old/dist/bfd/ |
| H A D | bfdio.c | 586 struct bfd_in_memory *bim; in memory_bread() local 589 bim = (struct bfd_in_memory *) abfd->iostream; in memory_bread() 591 if (abfd->where + get > bim->size) in memory_bread() 593 if (bim->size < (bfd_size_type) abfd->where) in memory_bread() 596 get = bim->size - abfd->where; in memory_bread() 599 memcpy (ptr, bim->buffer + abfd->where, (size_t) get); in memory_bread() 606 struct bfd_in_memory *bim = (struct bfd_in_memory *) abfd->iostream; in memory_bwrite() local 608 if (abfd->where + size > bim->size) in memory_bwrite() 612 oldsize = (bim->size + 127) & ~(bfd_size_type) 127; in memory_bwrite() 613 bim->size = abfd->where + size; in memory_bwrite() [all …]
|
| H A D | peicode.h | 92 struct bfd_in_memory * bim; member 638 BFD_ASSERT (vars->data + size < vars->bim->buffer + vars->bim->size); in pe_ILF_make_a_section() 672 BFD_ASSERT (vars->data <= vars->bim->buffer + vars->bim->size); in pe_ILF_make_a_section() 839 vars.bim in pe_ILF_build_a_bfd() 840 = (struct bfd_in_memory *) bfd_malloc ((bfd_size_type) sizeof (*vars.bim)); in pe_ILF_build_a_bfd() 841 if (vars.bim == NULL) in pe_ILF_build_a_bfd() 845 vars.bim->buffer = ptr; in pe_ILF_build_a_bfd() 846 vars.bim->size = ILF_DATA_SIZE; in pe_ILF_build_a_bfd() 1086 abfd->iostream = (void *) vars.bim; in pe_ILF_build_a_bfd() 1140 free (vars.bim->buffer); in pe_ILF_build_a_bfd() [all …]
|
| H A D | opncls.c | 916 struct bfd_in_memory *bim; in bfd_make_writable() local 924 bim = (struct bfd_in_memory *) bfd_malloc (sizeof (struct bfd_in_memory)); in bfd_make_writable() 925 if (bim == NULL) in bfd_make_writable() 927 abfd->iostream = bim; in bfd_make_writable() 929 bim->size = 0; in bfd_make_writable() 930 bim->buffer = 0; in bfd_make_writable()
|
| /netbsd-src/external/gpl3/binutils/dist/bfd/ |
| H A D | bfdio.c | 681 struct bfd_in_memory *bim; in memory_bread() local 684 bim = (struct bfd_in_memory *) abfd->iostream; in memory_bread() 686 if (abfd->where + get > bim->size) in memory_bread() 688 if (bim->size < (bfd_size_type) abfd->where) in memory_bread() 691 get = bim->size - abfd->where; in memory_bread() 694 memcpy (ptr, bim->buffer + abfd->where, (size_t) get); in memory_bread() 701 struct bfd_in_memory *bim = (struct bfd_in_memory *) abfd->iostream; in memory_bwrite() local 703 if (abfd->where + size > bim->size) in memory_bwrite() 707 oldsize = (bim->size + 127) & ~(bfd_size_type) 127; in memory_bwrite() 708 bim->size = abfd->where + size; in memory_bwrite() [all …]
|
| H A D | peicode.h | 92 struct bfd_in_memory * bim; member 631 BFD_ASSERT (vars->data + size < vars->bim->buffer + vars->bim->size); in pe_ILF_make_a_section() 665 BFD_ASSERT (vars->data <= vars->bim->buffer + vars->bim->size); in pe_ILF_make_a_section() 853 vars.bim in pe_ILF_build_a_bfd() 854 = (struct bfd_in_memory *) bfd_malloc ((bfd_size_type) sizeof (*vars.bim)); in pe_ILF_build_a_bfd() 855 if (vars.bim == NULL) in pe_ILF_build_a_bfd() 859 vars.bim->buffer = ptr; in pe_ILF_build_a_bfd() 860 vars.bim->size = ILF_DATA_SIZE; in pe_ILF_build_a_bfd() 1126 abfd->iostream = (void *) vars.bim; in pe_ILF_build_a_bfd() 1154 free (vars.bim->buffer); in pe_ILF_build_a_bfd() [all …]
|
| /netbsd-src/sys/arch/x86/x86/ |
| H A D | x86_machdep.c | 677 x86_parse_clusters(struct btinfo_memmap *bim) in x86_parse_clusters() argument 684 KASSERT(bim != NULL); in x86_parse_clusters() 685 KASSERT(bim->num > 0); in x86_parse_clusters() 690 bim->num); in x86_parse_clusters() 693 for (x = 0; x < bim->num; x++) { in x86_parse_clusters() 694 addr = bim->entry[x].addr; in x86_parse_clusters() 695 size = bim->entry[x].size; in x86_parse_clusters() 696 type = bim->entry[x].type; in x86_parse_clusters() 884 struct btinfo_memmap bim; in x86_add_xen_clusters() member 890 set_xen_guest_handle(memmap.buffer, &xen_mmap.bim in x86_add_xen_clusters() 906 struct btinfo_memmap *bim; init_x86_clusters() local [all...] |
| H A D | multiboot2.c | 463 struct btinfo_modulelist *bim; in mbi_modules() local 465 bim_len = sizeof(*bim) + (module_count * sizeof(*bie)); in mbi_modules() 466 bim = (struct btinfo_modulelist *)bootinfo_init(BTINFO_MODULELIST, in mbi_modules() 468 if (bim == NULL) in mbi_modules() 471 bim->num = module_count; in mbi_modules() 472 bim->endpa = end; in mbi_modules() 474 bie = (struct bi_modulelist_entry *)(bim + 1); in mbi_modules() 528 struct btinfo_memmap *bim; in mbi_mmap() local 543 bim = (struct btinfo_memmap *)bootinfo_init(BTINFO_MEMMAP, in mbi_mmap() 545 if (bim == NULL) in mbi_mmap() [all …]
|
| H A D | efi_machdep.c | 72 struct btinfo_memmap bim; member 521 if (efi_e820memmap.bim.common.type == BTINFO_MEMMAP) in efi_get_e820memmap() 522 return &efi_e820memmap.bim; in efi_get_e820memmap() 552 entry = &efi_e820memmap.bim.entry[n]; in efi_get_e820memmap() 565 entry = &efi_e820memmap.bim.entry[n]; in efi_get_e820memmap() 575 efi_e820memmap.bim.num = n; in efi_get_e820memmap() 576 efi_e820memmap.bim.common.len = in efi_get_e820memmap() 577 (intptr_t)&efi_e820memmap.bim.entry[n] - (intptr_t)&efi_e820memmap; in efi_get_e820memmap() 578 efi_e820memmap.bim.common.type = BTINFO_MEMMAP; in efi_get_e820memmap() 579 return &efi_e820memmap.bim; in efi_get_e820memmap()
|
| /netbsd-src/sys/arch/i386/stand/lib/ |
| H A D | exec_multiboot1.c | 126 struct bi_modulelist_entry *bim; in exec_multiboot1() local 147 bim = (struct bi_modulelist_entry *) in exec_multiboot1() 151 mbm[i].mmo_start = bim->base; in exec_multiboot1() 152 mbm[i].mmo_end = bim->base + bim->len; in exec_multiboot1() 153 mbm[i].mmo_string = (char *)vtophys(bim->path); in exec_multiboot1() 155 bim++; in exec_multiboot1()
|
| /netbsd-src/external/gpl3/gcc/dist/libgcc/config/nds32/isr-library/ |
| H A D | reset_4b.S | 75 lmw.bim $r1, [$sp], $r2, #0x0 /* Restore extra $r2 to keep 81 lmw.bim $r15, [$sp], $r15, #0xf 82 lmw.bim $r0, [$sp], $r10, #0x0 85 lmw.bim $r0, [$sp], $r27, #0xf
|
| H A D | reset.S | 70 lmw.bim $r1, [$sp], $r2, #0x0 /* Restore extra $r2 to keep stack 8-byte alignment. */ 75 lmw.bim $r15, [$sp], $r15, #0xf 76 lmw.bim $r0, [$sp], $r10, #0x0 79 lmw.bim $r0, [$sp], $r27, #0xf
|
| H A D | restore_partial.inc | 30 lmw.bim $r1, [$sp], $r2, #0x0 /* Restore IPC, IPSW. */ 37 lmw.bim $r0, [$sp], $r5, #0x0 /* Restore all regs. */ 39 lmw.bim $r15, [$sp], $r15, #0x2 41 lmw.bim $r15, [$sp], $r27, #0x2 /* Restore all regs. */
|
| H A D | restore_all.inc | 29 lmw.bim $r1, [$sp], $r2, #0x0 /* Restore IPC, IPSW. */ 36 lmw.bim $r0, [$sp], $r10, #0x0 /* Restore all regs. */ 37 lmw.bim $r15, [$sp], $r15, #0xf 39 lmw.bim $r0, [$sp], $r27, #0xf /* Restore all regs. */
|
| H A D | restore_usr_regs.inc | 28 lmw.bim $r1, [$sp], $r4, #0x0 34 lmw.bim $r1, [$sp], $r2, #0x0 37 lmw.bim $r1, [$sp], $r4, #0x0
|
| /netbsd-src/external/gpl3/gcc.old/dist/libgcc/config/nds32/isr-library/ |
| H A D | reset_4b.S | 75 lmw.bim $r1, [$sp], $r2, #0x0 /* Restore extra $r2 to keep 81 lmw.bim $r15, [$sp], $r15, #0xf 82 lmw.bim $r0, [$sp], $r10, #0x0 85 lmw.bim $r0, [$sp], $r27, #0xf
|
| H A D | reset.S | 70 lmw.bim $r1, [$sp], $r2, #0x0 /* Restore extra $r2 to keep stack 8-byte alignment. */ 75 lmw.bim $r15, [$sp], $r15, #0xf 76 lmw.bim $r0, [$sp], $r10, #0x0 79 lmw.bim $r0, [$sp], $r27, #0xf
|
| H A D | restore_all.inc | 29 lmw.bim $r1, [$sp], $r2, #0x0 /* Restore IPC, IPSW. */ 36 lmw.bim $r0, [$sp], $r10, #0x0 /* Restore all regs. */ 37 lmw.bim $r15, [$sp], $r15, #0xf 39 lmw.bim $r0, [$sp], $r27, #0xf /* Restore all regs. */
|
| H A D | restore_partial.inc | 30 lmw.bim $r1, [$sp], $r2, #0x0 /* Restore IPC, IPSW. */ 37 lmw.bim $r0, [$sp], $r5, #0x0 /* Restore all regs. */ 39 lmw.bim $r15, [$sp], $r15, #0x2 41 lmw.bim $r15, [$sp], $r27, #0x2 /* Restore all regs. */
|
| H A D | restore_usr_regs.inc | 28 lmw.bim $r1, [$sp], $r4, #0x0 34 lmw.bim $r1, [$sp], $r2, #0x0 37 lmw.bim $r1, [$sp], $r4, #0x0
|
| /netbsd-src/sys/arch/x86/acpi/ |
| H A D | acpi_machdep.c | 488 struct btinfo_memmap *bim; in acpi_md_mcfg_validate() local 495 bim = efi_get_e820memmap(); in acpi_md_mcfg_validate() 498 bim = lookup_bootinfo(BTINFO_MEMMAP); in acpi_md_mcfg_validate() 499 if (bim == NULL) in acpi_md_mcfg_validate() 504 for (i = 0; i < bim->num; i++) { in acpi_md_mcfg_validate() 505 mapaddr = bim->entry[i].addr; in acpi_md_mcfg_validate() 506 mapsize = bim->entry[i].size; in acpi_md_mcfg_validate() 507 type = bim->entry[i].type; in acpi_md_mcfg_validate()
|
| /netbsd-src/sys/arch/cobalt/cobalt/ |
| H A D | machdep.c | 149 mach_init(int32_t memsize32, u_int bim, int32_t bip32) in mach_init() argument 202 if (bim == BOOTINFO_MAGIC) { in mach_init() 209 bim = (uintptr_t)bip; in mach_init() 212 bim = bi_magic->magic; in mach_init() 269 printf("%s: magic=%#x bip=%p\n", bi_msg, bim, bip); in mach_init()
|
| /netbsd-src/sys/arch/mmeye/mmeye/ |
| H A D | machdep.c | 240 initSH3(void *pc, u_int bim, int32_t bip) /* XXX return address */ in initSH3() argument 252 if (bim == BOOTINFO_MAGIC) { in initSH3() 259 bim = (uintptr_t)bip; in initSH3() 262 bim = bi_magic->magic; in initSH3() 298 printf("%s: magic=%#x\n", bi_msg, bim); in initSH3()
|
| /netbsd-src/sys/arch/emips/stand/common/ |
| H A D | bootxx.c | 82 main(int argc, char **argv, int code, const void *cv, int bim, char *bip) in main() argument 103 entry(argc, argv, code, cv, bim, bip); in main()
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/config/nds32/ |
| H A D | nds32-multiple.md | 134 "lmw.bim\t%3, [%1], %27, 0x0" 193 "lmw.bim\t%3, [%1], %26, 0x0" 250 "lmw.bim\t%3, [%1], %25, 0x0" 305 "lmw.bim\t%3, [%1], %24, 0x0" 358 "lmw.bim\t%3, [%1], %23, 0x0" 409 "lmw.bim\t%3, [%1], %22, 0x0" 458 "lmw.bim\t%3, [%1], %21, 0x0" 505 "lmw.bim\t%3, [%1], %20, 0x0" 550 "lmw.bim\t%3, [%1], %19, 0x0" 593 "lmw.bim\t%3, [%1], %18, 0x0" [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/config/nds32/ |
| H A D | nds32-multiple.md | 134 "lmw.bim\t%3, [%1], %27, 0x0" 193 "lmw.bim\t%3, [%1], %26, 0x0" 250 "lmw.bim\t%3, [%1], %25, 0x0" 305 "lmw.bim\t%3, [%1], %24, 0x0" 358 "lmw.bim\t%3, [%1], %23, 0x0" 409 "lmw.bim\t%3, [%1], %22, 0x0" 458 "lmw.bim\t%3, [%1], %21, 0x0" 505 "lmw.bim\t%3, [%1], %20, 0x0" 550 "lmw.bim\t%3, [%1], %19, 0x0" 593 "lmw.bim\t%3, [%1], %18, 0x0" [all …]
|