/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() 87 conv_cap_val_hw2(Xword val, Half mach, Conv_fmt_flags_t fmt_flags, in conv_cap_val_hw2() argument 94 mach, fmt_flags, elfcap_hw2_to_str) == 0) in conv_cap_val_hw2() 100 conv_cap_val_sf1(Xword val, Half mach, Conv_fmt_flags_t fmt_flags, in conv_cap_val_sf1() argument 107 mach, fmt_flags, elfcap_sf1_to_str) == 0) in conv_cap_val_sf1() 113 conv_cap_val_hw3(Xword val, Half mach, Conv_fmt_flags_t fmt_flags, in conv_cap_val_hw3() argument 120 mach, fmt_flags, elfcap_hw3_to_str) == 0) in conv_cap_val_hw3() [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() 220 conv_sym_info_type(Half mach, uchar_t type, Conv_fmt_flags_t fmt_flags, in conv_sym_info_type() argument 223 return (conv_map_ds(ELFOSABI_NONE, mach, type, in conv_sym_info_type() 224 conv_sym_info_type_strings(mach, fmt_flags), fmt_flags, inv_buf)); 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() 397 conv_sym_shndx(uchar_t osabi, Half mach, Half shndx, Conv_fmt_flags_t fmt_flags, in conv_sym_shndx() argument [all …]
|
H A D | sections.c | 39 sec_type_strings(conv_iter_osabi_t osabi, Half mach, Conv_fmt_flags_t fmt_flags) in sec_type_strings() argument 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() 408 conv_sec_type(uchar_t osabi, Half mach, Word sec, Conv_fmt_flags_t fmt_flags, in conv_sec_type() argument 411 return (conv_map_ds(osabi, mach, sec, in conv_sec_type() 412 sec_type_strings(osabi, mach, fmt_flags), fmt_flags, inv_buf)); 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() [all …]
|
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 | 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 | 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()
|
H A D | elf.c | 922 conv_ehdr_flags(Half mach, Word flags, Conv_fmt_flags_t fmt_flags, in conv_ehdr_flags() argument 937 if ((mach != EM_SPARCV9) && (((mach != EM_SPARC) && in conv_ehdr_flags() 938 (mach != EM_SPARC32PLUS)) || (flags == 0))) in conv_ehdr_flags() 948 if ((mach == EM_SPARCV9) && (mm <= mm_msg->ds_topval)) { in conv_ehdr_flags() 960 conv_iter_ehdr_flags(Half mach, Conv_fmt_flags_t fmt_flags, conv_iter_cb_t func, in conv_iter_ehdr_flags() argument 964 if ((mach == EM_SPARCV9) || (mach == EM_SPARC) || in conv_iter_ehdr_flags() 965 (mach == EM_SPARC32PLUS) || (mach == CONV_MACH_ALL)) { in conv_iter_ehdr_flags() 971 if (mach == EM_SPARCV9) { in conv_iter_ehdr_flags() 977 if (conv_iter_ds(ELFOSABI_NONE, mach, ds, in conv_iter_ehdr_flags() 1189 Half mach) in conv_reject_desc() argument [all …]
|
/illumos-gate/usr/src/common/elfcap/ |
H A D | elfcap.c | 609 size_t len, elfcap_fmt_t fmt, ushort_t mach) in elfcap_hw1_to_str() argument 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() 635 size_t len, elfcap_fmt_t fmt, ushort_t mach) in elfcap_hw2_to_str() argument 644 if ((mach == EM_386) || (mach == EM_IA_64) || (mach == EM_AMD64)) in elfcap_hw2_to_str() 656 size_t len, elfcap_fmt_t fmt, ushort_t mach) in elfcap_hw3_to_str() argument 665 if ((mach == EM_386) || (mach == EM_IA_64) || (mach == EM_AMD64)) in elfcap_hw3_to_str() 681 size_t len, elfcap_fmt_t fmt, ushort_t mach) in elfcap_sf1_to_str() argument 698 char *str, size_t len, elfcap_fmt_t fmt, ushort_t mach) in elfcap_tag_to_str() argument [all …]
|
/illumos-gate/usr/src/cmd/mdb/tools/scripts/ |
H A D | mdb.sh | 36 mach=`/usr/bin/uname -p` # Machine type 45 if [ -n "$CODEMGR_WS" -a -x $CODEMGR_WS/proto/root_$mach/usr/bin/mdb ]; then 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 [all …]
|
/illumos-gate/usr/src/cmd/sgs/elfedit/common/ |
H A D | elfconst.c | 153 libconv_iter_func_mach_t mach; member 268 libconv_fill_iter(sym_table_ent_t *sym, conv_iter_osabi_t osabi, Half mach, in libconv_fill_iter() argument 287 (void) (* sym->ste_conv_func.mach)(mach, in libconv_fill_iter() 289 (void) (* sym->ste_conv_func.mach)(mach, in libconv_fill_iter() 294 (void) (* sym->ste_conv_func.osabi_mach)(osabi, mach, in libconv_fill_iter() 296 (void) (* sym->ste_conv_func.osabi_mach)(osabi, mach, in libconv_fill_iter() 309 libconv_fill(sym_table_ent_t *sym, conv_iter_osabi_t osabi, Half mach) in libconv_fill() argument 315 libconv_fill_iter(sym, osabi, mach, libconv_count_cb, &fill_state.cnt); in libconv_fill() 337 libconv_fill_iter(sym, osabi, mach, libconv_fill_cb, &fill_state); in libconv_fill() 352 init_libconv_strings(conv_iter_osabi_t *osabi, Half *mach) in init_libconv_strings() argument [all …]
|
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/ |
H A D | relocate.c | 34 Dbg_reloc_apply_reg(Lm_list *lml, int caller, Half mach, Xword off, Xword value) in Dbg_reloc_apply_reg() argument 46 Elf_reloc_apply_reg(lml, caller, mach, off, value); in Dbg_reloc_apply_reg() 66 Dbg_reloc_error(Lm_list *lml, int caller, Half mach, Word type, void *reloc, in Dbg_reloc_error() argument 74 Elf_reloc_entry_1(lml, caller, MSG_INTL(MSG_STR_IN), mach, type, reloc, in Dbg_reloc_error() 211 Dbg_reloc_doact(Lm_list *lml, int caller, Half mach, Word type, Rel_desc *rdesc, in Dbg_reloc_doact() argument 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() 272 Dbg_reloc_transition(Lm_list *lml, Half mach, Word rtype, Rel_desc *rsp, in Dbg_reloc_transition() argument 285 conv_reloc_type(mach, rsp->rel_rtype, 0, &inv_buf1), in Dbg_reloc_transition() [all …]
|
H A D | cap.c | 66 Dbg_cap_val(Lm_list *lml, Syscapset *sys, Syscapset *alt, Half mach) in Dbg_cap_val() argument 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 [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() 632 uchar_t osabi, Half mach, Sym *sym, Versym verndx, int gnuver, in Elf_syms_table_entry() argument 649 sec = conv_sym_shndx(osabi, mach, sym->st_shndx, in Elf_syms_table_entry() [all …]
|
/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
|