/illumos-gate/usr/src/cmd/sgs/libconv/common/ |
H A D | cap.c | 140 conv_iter_cap_val_hw1(Half mach, Conv_fmt_flags_t fmt_flags, in conv_iter_cap_val_hw1() argument 143 if ((mach == EM_386) || (mach == EM_486) || in conv_iter_cap_val_hw1() 144 (mach == EM_AMD64) || (mach == CONV_MACH_ALL)) in conv_iter_cap_val_hw1() 150 if ((mach == EM_SPARC) || (mach == EM_SPARC32PLUS) || in conv_iter_cap_val_hw1() 151 (mach == EM_SPARCV9) || (mach == CONV_MACH_ALL)) in conv_iter_cap_val_hw1() 162 conv_iter_cap_val_hw2(Half mach, Conv_fmt_flags_t fmt_flags, in conv_iter_cap_val_hw2() argument 165 if ((mach == EM_386) || (mach == EM_486) || in conv_iter_cap_val_hw2() 166 (mach == EM_AMD64) || (mach == CONV_MACH_ALL)) in conv_iter_cap_val_hw2() 187 conv_iter_cap_val_hw3(Half mach, Conv_fmt_flags_t fmt_flags, in conv_iter_cap_val_hw3() argument 190 if ((mach == EM_386) || (mach == EM_486) || in conv_iter_cap_val_hw3() [all …]
|
H A D | cap_machelf.c | 40 conv_cap(Xword val, char *str, size_t len, Half mach, in conv_cap() argument 60 mach) != 0) in conv_cap() 74 conv_cap_val_hw1(Xword val, Half mach, Conv_fmt_flags_t fmt_flags, in conv_cap_val_hw1() argument 81 mach, fmt_flags, elfcap_hw1_to_str) == 0) in conv_cap_val_hw1() 94 mach, fmt_flags, elfcap_hw2_to_str) == 0) in conv_cap_val_hw2() 107 mach, fmt_flags, elfcap_sf1_to_str) == 0) in conv_cap_val_sf1() 120 mach, fmt_flags, elfcap_hw3_to_str) == 0) in conv_cap_val_hw3() 151 return (conv_cap_val_hw1(val, mach, fmt_flags, in conv_cap_val() 155 return (conv_cap_val_sf1(val, mach, fmt_flags, in conv_cap_val() 159 return (conv_cap_val_hw2(val, mach, fmt_flags, in conv_cap_val() [all …]
|
H A D | symbols.c | 127 conv_sym_info_type_strings(Half mach, Conv_fmt_flags_t fmt_flags) in conv_sym_info_type_strings() argument 188 is_sparc = (mach == EM_SPARC) || (mach == EM_SPARCV9) || in conv_sym_info_type_strings() 189 (mach == EM_SPARC32PLUS) || (mach == CONV_MACH_ALL); in conv_sym_info_type_strings() 223 return (conv_map_ds(ELFOSABI_NONE, mach, type, in conv_sym_info_type() 228 conv_iter_sym_info_type(Half mach, Conv_fmt_flags_t fmt_flags, in conv_iter_sym_info_type() argument 231 return (conv_iter_ds(ELFOSABI_NONE, mach, in conv_iter_sym_info_type() 232 conv_sym_info_type_strings(mach, fmt_flags), func, uvalue)); in conv_iter_sym_info_type() 400 return (conv_map_ds(osabi, mach, shndx, in conv_sym_shndx() 405 conv_iter_sym_shndx(conv_iter_osabi_t osabi, Half mach, in conv_iter_sym_shndx() argument 434 if (mach == EM_AMD64) { in conv_iter_sym_shndx() [all …]
|
H A D | sections.c | 365 if ((mach == EM_SPARC) || (mach == EM_SPARC32PLUS) || in sec_type_strings() 366 (mach == EM_SPARCV9) || (mach == CONV_MACH_ALL)) { in sec_type_strings() 383 if ((mach == EM_AMD64) || (mach == CONV_MACH_ALL)) { in sec_type_strings() 411 return (conv_map_ds(osabi, mach, sec, in conv_sec_type() 416 conv_iter_sec_type(conv_iter_osabi_t osabi, Half mach, in conv_iter_sec_type() argument 419 return (conv_iter_ds(osabi, mach, in conv_iter_sec_type() 420 sec_type_strings(osabi, mach, fmt_flags), func, uvalue)); in conv_iter_sec_type() 539 conv_iter_sec_flags(conv_iter_osabi_t osabi, Half mach, in conv_iter_sec_flags() argument 555 if (conv_iter_vd2(osabi, mach, conv_sec_flags_strings(fmt_flags), in conv_iter_sec_flags() 560 if (mach == EM_AMD64) { in conv_iter_sec_flags() [all …]
|
H A D | symbols_machelf.c | 38 conv_sym_value(Half mach, uchar_t type, Addr value, Conv_inv_buf_t *inv_buf) in conv_sym_value() argument 40 if (((mach == EM_SPARC) || (mach == EM_SPARC32PLUS) || in conv_sym_value() 41 (mach == EM_SPARCV9)) && (type == STT_SPARC_REGISTER)) in conv_sym_value()
|
H A D | globals.c | 112 map_vd22str(Conv_inv_buf_t *inv_buf, uchar_t osabi, Half mach, in map_vd22str() argument 117 if (CONV_VD2_SKIP(osabi, mach, vdp)) in map_vd22str() 133 _conv_map_ds(uchar_t osabi, Half mach, Conv_elfvalue_t value, in _conv_map_ds() argument 158 return (map_vd22str(inv_buf, osabi, mach, value, in _conv_map_ds() 250 _conv_iter_vd2(conv_iter_osabi_t osabi, Half mach, const Val_desc2 *vdp, in _conv_iter_vd2() argument 254 if (CONV_ITER_VD2_SKIP(osabi, mach, vdp)) in _conv_iter_vd2() 270 _conv_iter_ds(conv_iter_osabi_t osabi, Half mach, const conv_ds_t **dsp, in _conv_iter_ds() argument 294 if (_conv_iter_vd2(osabi, mach, in _conv_iter_ds()
|
H A D | relocate.c | 37 conv_reloc_type(Half mach, Word type, Conv_fmt_flags_t fmt_flags, in conv_reloc_type() argument 40 switch (mach) { in conv_reloc_type() 62 conv_reloc_type_static(Half mach, Word type, Conv_fmt_flags_t fmt_flags) in conv_reloc_type_static() argument 66 return (conv_reloc_type(mach, type, fmt_flags, &inv_buf)); in conv_reloc_type_static()
|
/illumos-gate/usr/src/common/elfcap/ |
H A D | elfcap.c | 618 if ((mach == EM_386) || (mach == EM_IA_64) || (mach == EM_AMD64)) in elfcap_hw1_to_str() 622 if ((mach == EM_SPARC) || (mach == EM_SPARC32PLUS) || in elfcap_hw1_to_str() 623 (mach == EM_SPARCV9)) in elfcap_hw1_to_str() 644 if ((mach == EM_386) || (mach == EM_IA_64) || (mach == EM_AMD64)) in elfcap_hw2_to_str() 665 if ((mach == EM_386) || (mach == EM_IA_64) || (mach == EM_AMD64)) in elfcap_hw3_to_str() 760 if ((mach == EM_386) || (mach == EM_IA_64) || (mach == EM_AMD64)) in elfcap_hw1_from_str() 763 if ((mach == EM_SPARC) || (mach == EM_SPARC32PLUS) || in elfcap_hw1_from_str() 764 (mach == EM_SPARCV9)) in elfcap_hw1_from_str() 772 if ((mach == EM_386) || (mach == EM_IA_64) || (mach == EM_AMD64)) in elfcap_hw2_from_str() 780 if ((mach == EM_386) || (mach == EM_IA_64) || (mach == EM_AMD64)) in elfcap_hw3_from_str() [all …]
|
/illumos-gate/usr/src/cmd/mdb/tools/scripts/ |
H A D | mdb.sh | 36 mach=`/usr/bin/uname -p` # Machine type 46 mdb_exec=$CODEMGR_WS/proto/root_$mach/usr/bin/mdb 47 root=$CODEMGR_WS/proto/root_$mach 50 root=$mdb_lib/$mach/%R/%V 62 root=$mdb_lib/$mach/%R/%V 63 elif [ -x $mdb_ws/proto/root_$mach/usr/bin/mdb ]; then 64 mdb_exec=$mdb_ws/proto/root_$mach/usr/bin/mdb 65 root=$mdb_lib/$mach/%R/%V 126 [ -n "$build" ] && root=$mdb_lib/$mach/$build 149 elif [ $mdb_exec = $mdb_ws/proto/root_$mach/usr/bin/mdb ]; then [all …]
|
/illumos-gate/usr/src/cmd/sgs/elfedit/common/ |
H A D | elfconst.c | 153 libconv_iter_func_mach_t mach; member 287 (void) (* sym->ste_conv_func.mach)(mach, in libconv_fill_iter() 289 (void) (* sym->ste_conv_func.mach)(mach, in libconv_fill_iter() 369 sym_table[_ndx].ste_conv_func.mach = _func; in init_libconv_strings() 380 *mach = CONV_MACH_ALL; in init_libconv_strings() 454 mach_change = *mach != cur_mach; in invalidate_libconv_strings() 495 *mach = cur_mach; in invalidate_libconv_strings() 510 static Half mach; in elfedit_const_to_atoui() local 515 init_libconv_strings(&osabi, &mach); in elfedit_const_to_atoui() 536 invalidate_libconv_strings(&osabi, &mach); in elfedit_const_to_atoui() [all …]
|
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/ |
H A D | relocate.c | 46 Elf_reloc_apply_reg(lml, caller, mach, off, value); in Dbg_reloc_apply_reg() 231 conv_reloc_type(mach, rdesc->rel_rtype, 0, &inv_buf), in Dbg_reloc_doact() 250 Dbg_reloc_discard(Lm_list *lml, Half mach, Rel_desc *rsp) in Dbg_reloc_discard() argument 265 conv_reloc_type(mach, rsp->rel_rtype, 0, &inv_buf), in Dbg_reloc_discard() 285 conv_reloc_type(mach, rsp->rel_rtype, 0, &inv_buf1), in Dbg_reloc_transition() 288 conv_reloc_type(mach, rtype, 0, &inv_buf2)); in Dbg_reloc_transition() 392 conv_reloc_type(mach, orsp->rel_rtype, 0, &inv_buf), in Dbg_reloc_ors_entry() 418 conv_reloc_type(mach, arsp->rel_rtype, 0, &inv_buf), in Dbg_reloc_ars_entry() 670 str = conv_reloc_type(mach, ELF_R_TYPE(rela->r_info, mach), in Elf_reloc_entry_1() 677 str = conv_reloc_type(mach, ELF_R_TYPE(rel->r_info, mach), in Elf_reloc_entry_1() [all …]
|
H A D | cap.c | 88 conv_cap_val_hw3(sys->sc_hw_3, mach, 0, in Dbg_cap_val() 93 conv_cap_val_hw2(sys->sc_hw_2, mach, 0, in Dbg_cap_val() 98 conv_cap_val_hw1(sys->sc_hw_1, mach, 0, in Dbg_cap_val() 103 conv_cap_val_sf1(sys->sc_sf_1, mach, 0, in Dbg_cap_val() 119 conv_cap_val_hw3(alt->sc_hw_3, mach, 0, in Dbg_cap_val() 124 conv_cap_val_hw2(alt->sc_hw_2, mach, 0, in Dbg_cap_val() 129 conv_cap_val_hw1(alt->sc_hw_1, mach, 0, in Dbg_cap_val() 134 conv_cap_val_sf1(alt->sc_sf_1, mach, 0, in Dbg_cap_val() 165 Half mach) in Dbg_cap_val_entry() argument 225 Half mach) in Elf_cap_entry() argument [all …]
|
H A D | entry.c | 35 Dbg_ent_entry(Lm_list *lml, uchar_t osabi, Half mach, Ent_desc *enp) in Dbg_ent_entry() argument 54 conv_sec_flags(osabi, mach, enp->ec_attrmask, 0, &buf.sec_flags)); in Dbg_ent_entry() 59 conv_sec_flags(osabi, mach, enp->ec_attrbits, 0, &buf.sec_flags)); in Dbg_ent_entry() 62 conv_sec_type(osabi, mach, enp->ec_type, 0, &buf.inv)); in Dbg_ent_entry() 77 Dbg_ent_print(Lm_list *lml, uchar_t osabi, Half mach, APlist *alp) in Dbg_ent_print() argument 90 Dbg_ent_entry(lml, osabi, mach, enp); in Dbg_ent_print()
|
H A D | shdr.c | 33 Elf_shdr(Lm_list *lml, uchar_t osabi, Half mach, Shdr *shdr) in Elf_shdr() argument 39 conv_sec_flags(osabi, mach, shdr->sh_flags, 0, &sec_flags_buf)); in Elf_shdr() 41 conv_sec_type(osabi, mach, shdr->sh_type, 0, &inv_buf1)); in Elf_shdr() 61 Dbg_shdr_modified(Lm_list *lml, const char *obj, uchar_t osabi, Half mach, in Dbg_shdr_modified() argument 79 Elf_shdr(lml, osabi, mach, oshdr); in Dbg_shdr_modified() 82 Elf_shdr(lml, osabi, mach, nshdr); in Dbg_shdr_modified()
|
H A D | elf.c | 42 Half mach = ehdr->e_machine; in Elf_ehdr() local 59 conv_ehdr_mach(mach, 0, &inv_buf1), in Elf_ehdr() 69 flgs = conv_ehdr_flags(mach, ehdr->e_flags, 0, &flags_buf); in Elf_ehdr() 112 conv_sec_flags(osabi, mach, shdr0->sh_flags, 0, &sec_flags_buf)); in Elf_ehdr() 114 conv_sec_type(osabi, mach, shdr0->sh_type, 0, &inv_buf1)); in Elf_ehdr()
|
H A D | got.c | 127 Elf_got_entry(Lm_list *lml, Sword ndx, Addr addr, Xword value, Half mach, in Elf_got_entry() argument 152 str = conv_reloc_type(mach, in Elf_got_entry() 153 ELF_R_TYPE(rela->r_info, mach), 0, &inv_buf); in Elf_got_entry() 156 str = conv_reloc_type(mach, in Elf_got_entry() 157 ELF_R_TYPE(rel->r_info, mach), 0, &inv_buf); in Elf_got_entry()
|
H A D | syms.c | 59 Half mach, Syscapset *scapset) in Dbg_syms_cap_lookup() argument 70 str = conv_cap_val_hw1(scapset->sc_hw_1, mach, 0, in Dbg_syms_cap_lookup() 74 str = conv_cap_val_sf1(scapset->sc_sf_1, mach, 0, in Dbg_syms_cap_lookup() 78 str = conv_cap_val_hw2(scapset->sc_hw_2, mach, 0, in Dbg_syms_cap_lookup() 88 str = conv_cap_val_hw3(scapset->sc_hw_3, mach, 0, in Dbg_syms_cap_lookup() 440 Half mach = ofl->ofl_dehdr->e_machine; in Dbg_syms_resolving() local 452 osabi, mach, osym, sdp->sd_aux ? sdp->sd_aux->sa_overndx : 0, in Dbg_syms_resolving() 456 osabi, mach, nsym, 0, 0, NULL, ifl->ifl_name); in Dbg_syms_resolving() 649 sec = conv_sym_shndx(osabi, mach, sym->st_shndx, in Elf_syms_table_entry() 653 conv_sym_value(mach, type, sym->st_value, &inv_buf1), in Elf_syms_table_entry() [all …]
|
H A D | segments.c | 36 Dbg_seg_desc_entry(Lm_list *lml, uchar_t osabi, Half mach, int ndx, in Dbg_seg_desc_entry() argument 52 Elf_phdr(lml, osabi, mach, &sgp->sg_phdr); in Dbg_seg_desc_entry() 119 Dbg_seg_list(Lm_list *lml, uchar_t osabi, Half mach, APlist *apl) in Dbg_seg_list() argument 131 Dbg_seg_desc_entry(lml, osabi, mach, ndx++, sgp, TRUE); in Dbg_seg_list()
|
/illumos-gate/usr/src/cmd/sgs/elfwrap/common/ |
H A D | main.c | 54 ushort_t mach = EM_NONE; in main() local 131 mach = EM_SPARCV9; in main() 133 mach = EM_SPARC; in main() 137 mach = EM_AMD64; in main() 139 mach = EM_386; in main() 178 return (output64(prog, fd, ofile, mach, &odesc)); in main() 180 return (output32(prog, fd, ofile, mach, &odesc)); in main()
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | uusched.c | 36 char mach[15]; member 148 M[UUSTAT_TBL].mach[0] = NULLCHAR; 151 for (num=0, m=M; m->mach[0] != '\0'; m++, num++) { 152 DEBUG(5, "machine: %s, ", M[num].mach); 173 (void) strcpy(Rmtname, M[snumber].mach); 214 for (m = M; m->mach[0] != '\0'; m++) 216 if (EQUALSN(name, m->mach, MAXBASENAME)) { 222 if (namelen > strlen(m->mach)) 223 (void) strcpy(m->mach, name); 242 (void) strcpy(m->mach, name);
|
/illumos-gate/usr/src/cmd/sgs/ld/common/ |
H A D | ld.c | 275 process_args(int argc, char *argv[], uchar_t *class_ret, Half *mach) in process_args() argument 498 *mach = (class == ELFCLASS64) ? mach64 : mach32; in process_args() 499 if (*mach == EM_NONE) in process_args() 501 *mach = ar_mach; in process_args() 503 *mach = (class == ELFCLASS64) ? M_MACH_64 : M_MACH_32; in process_args() 678 Half mach; in main() local 706 ld_main = process_args(argc, argv, &class, &mach); in main() 709 return (ld_main(argc, argv, mach)); in main()
|
/illumos-gate/usr/src/uts/common/io/ntxn/ |
H A D | unm_nic_isr.c | 70 mac_link_update(adapter->mach, linkup); in unm_nic_isr_other() 110 mac_link_update(adapter->mach, LINK_STATE_DOWN); in unm_nic_handle_phy_intr() 116 mac_link_update(adapter->mach, LINK_STATE_UP); in unm_nic_handle_phy_intr()
|
/illumos-gate/usr/src/cmd/sgs/tools/ |
H A D | catalog.awk | 51 if ($3 == mach) 55 if ($3 == mach)
|
/illumos-gate/usr/src/cmd/drd/ |
H A D | svc-drd | 33 mach=`/sbin/uname -m` 37 if [ $mach = "sun4v" ]; then
|
/illumos-gate/usr/src/cmd/ldmad/ |
H A D | ldoms-agents | 33 mach=`/sbin/uname -m` 35 if [ "$mach" != "sun4v" ]; then
|