summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRod Evans <Rod.Evans@Sun.COM>2010-06-28 15:32:48 -0700
committerRod Evans <Rod.Evans@Sun.COM>2010-06-28 15:32:48 -0700
commit1e49577a7fcde812700ded04431b49d67cc57d6d (patch)
treec8f02eda62c4ca17100384b35d90e36d44d29af8
parentd28831b861181e5df28cac8efd6a92489e6feded (diff)
downloadillumos-joyent-1e49577a7fcde812700ded04431b49d67cc57d6d.tar.gz
6924858 various OSNet components could be simplified with symbol capabilities
--HG-- rename : usr/src/lib/libc_psr/Makefile => usr/src/lib/libc/capabilities/Makefile rename : usr/src/lib/libc_psr/Makefile.targ => usr/src/lib/libc/capabilities/Makefile.targ rename : usr/src/lib/libc_psr/sun4u-opl/Makefile => usr/src/lib/libc/capabilities/sun4u-opl/Makefile rename : usr/src/lib/libc_psr/sun4u-opl/Makefile.com => usr/src/lib/libc/capabilities/sun4u-opl/Makefile.com rename : usr/src/lib/libc_psr/sun4u-opl/common/memcpy.s => usr/src/lib/libc/capabilities/sun4u-opl/common/memcpy.s rename : usr/src/lib/libc_psr/sun4u-opl/sparc/Makefile => usr/src/lib/libc/capabilities/sun4u-opl/sparc/Makefile rename : usr/src/lib/libc_psr/sun4u-opl/sparcv9/Makefile => usr/src/lib/libc/capabilities/sun4u-opl/sparcv9/Makefile rename : usr/src/lib/libc_psr/sun4u_hwcap1/Makefile => usr/src/lib/libc/capabilities/sun4u-us3-hwcap1/Makefile rename : usr/src/lib/libc_psr/sun4u_hwcap1/Makefile.com => usr/src/lib/libc/capabilities/sun4u-us3-hwcap1/Makefile.com rename : usr/src/lib/libc_psr/sun4u_hwcap1/sparc/Makefile => usr/src/lib/libc/capabilities/sun4u-us3-hwcap1/sparc/Makefile rename : usr/src/lib/libc_psr/sun4u_hwcap1/sparcv9/Makefile => usr/src/lib/libc/capabilities/sun4u-us3-hwcap1/sparcv9/Makefile rename : usr/src/lib/libc_psr/sun4u_hwcap2/Makefile => usr/src/lib/libc/capabilities/sun4u-us3-hwcap2/Makefile rename : usr/src/lib/libc_psr/sun4u_hwcap2/Makefile.com => usr/src/lib/libc/capabilities/sun4u-us3-hwcap2/Makefile.com rename : usr/src/lib/libc_psr/sun4u_hwcap2/mapfile => usr/src/lib/libc/capabilities/sun4u-us3-hwcap2/common/mapfile-cap rename : usr/src/lib/libc_psr/sun4u_hwcap2/sparc/Makefile => usr/src/lib/libc/capabilities/sun4u-us3-hwcap2/sparc/Makefile rename : usr/src/lib/libc_psr/sun4u_hwcap2/sparcv9/Makefile => usr/src/lib/libc/capabilities/sun4u-us3-hwcap2/sparcv9/Makefile rename : usr/src/lib/libc_psr/sun4u-us3/common/memcmp.s => usr/src/lib/libc/capabilities/sun4u-us3/common/memcmp.s rename : usr/src/lib/libc_psr/sun4u-us3/common/memcpy.s => usr/src/lib/libc/capabilities/sun4u-us3/common/memcpy.s rename : usr/src/lib/libc_psr/sun4u-us3/common/memset.s => usr/src/lib/libc/capabilities/sun4u-us3/common/memset.s rename : usr/src/lib/libc_psr/sun4u/Makefile => usr/src/lib/libc/capabilities/sun4u/Makefile rename : usr/src/lib/libc_psr/sun4u/common/memcmp.s => usr/src/lib/libc/capabilities/sun4u/common/memcmp.s rename : usr/src/lib/libc_psr/sun4u/common/memcpy.s => usr/src/lib/libc/capabilities/sun4u/common/memcpy.s rename : usr/src/lib/libc_psr/sun4u/common/memset.s => usr/src/lib/libc/capabilities/sun4u/common/memset.s rename : usr/src/lib/libc_psr/sun4u/sparc/Makefile => usr/src/lib/libc/capabilities/sun4u/sparc/Makefile rename : usr/src/lib/libc_psr/sun4u/sparcv9/Makefile => usr/src/lib/libc/capabilities/sun4u/sparcv9/Makefile rename : usr/src/lib/libc_psr/sun4v_hwcap1/Makefile => usr/src/lib/libc/capabilities/sun4v-hwcap1/Makefile rename : usr/src/lib/libc_psr/sun4v_hwcap1/Makefile.com => usr/src/lib/libc/capabilities/sun4v-hwcap1/Makefile.com rename : usr/src/lib/libc_psr/sun4v_hwcap1/sparc/Makefile => usr/src/lib/libc/capabilities/sun4v-hwcap1/sparc/Makefile rename : usr/src/lib/libc_psr/sun4v_hwcap1/sparcv9/Makefile => usr/src/lib/libc/capabilities/sun4v-hwcap1/sparcv9/Makefile rename : usr/src/lib/libc_psr/sun4v_hwcap2/Makefile => usr/src/lib/libc/capabilities/sun4v-hwcap2/Makefile rename : usr/src/lib/libc_psr/sun4v_hwcap2/Makefile.com => usr/src/lib/libc/capabilities/sun4v-hwcap2/Makefile.com rename : usr/src/lib/libc_psr/sun4v_hwcap2/sparc/Makefile => usr/src/lib/libc/capabilities/sun4v-hwcap2/sparc/Makefile rename : usr/src/lib/libc_psr/sun4v_hwcap2/sparcv9/Makefile => usr/src/lib/libc/capabilities/sun4v-hwcap2/sparcv9/Makefile rename : usr/src/lib/libc_psr/sun4v/common/memcpy.s => usr/src/lib/libc/capabilities/sun4v/common/memcpy.s rename : usr/src/lib/libc_psr/sun4v/common/memset.s => usr/src/lib/libc/capabilities/sun4v/common/memset.s rename : usr/src/lib/libmd/sun4u/Makefile => usr/src/lib/libmd/capabilities/sun4u/Makefile rename : usr/src/lib/libmd/sun4u/Makefile.com => usr/src/lib/libmd/capabilities/sun4u/Makefile.com rename : usr/src/lib/libmd/sun4u/sparc/Makefile => usr/src/lib/libmd/capabilities/sun4u/sparc/Makefile rename : usr/src/lib/libmd/sun4u/sparcv9/Makefile => usr/src/lib/libmd/capabilities/sun4u/sparcv9/Makefile rename : usr/src/lib/libmd/sun4v/Makefile => usr/src/lib/libmd/capabilities/sun4v/Makefile rename : usr/src/lib/libmd/sun4v/Makefile.com => usr/src/lib/libmd/capabilities/sun4v/Makefile.com rename : usr/src/lib/libmd/sun4v/sparc/Makefile => usr/src/lib/libmd/capabilities/sun4v/sparc/Makefile rename : usr/src/lib/libmd/sun4v/sparcv9/Makefile => usr/src/lib/libmd/capabilities/sun4v/sparcv9/Makefile rename : usr/src/lib/pkcs11/libsoftcrypto/i386_hwcap1/Makefile => usr/src/lib/pkcs11/libsoftcrypto/capabilities/intel/Makefile rename : usr/src/lib/pkcs11/libsoftcrypto/sun4u/Makefile => usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4u/Makefile rename : usr/src/lib/pkcs11/libsoftcrypto/sun4u/Makefile.com => usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4u/Makefile.com rename : usr/src/lib/pkcs11/libsoftcrypto/sun4u/mapfile-vers => usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4u/common/mapfile-cap rename : usr/src/lib/pkcs11/libsoftcrypto/sun4u/sparc/Makefile => usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4u/sparc/Makefile rename : usr/src/lib/pkcs11/libsoftcrypto/sun4u/sparcv9/Makefile => usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4u/sparcv9/Makefile rename : usr/src/lib/pkcs11/libsoftcrypto/sun4v/Makefile => usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4v/Makefile rename : usr/src/lib/pkcs11/libsoftcrypto/sun4v/Makefile.com => usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4v/Makefile.com rename : usr/src/lib/pkcs11/libsoftcrypto/sun4v/mapfile-vers => usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4v/common/mapfile-cap rename : usr/src/lib/pkcs11/libsoftcrypto/sun4v/sparc/Makefile => usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4v/sparc/Makefile rename : usr/src/lib/pkcs11/libsoftcrypto/sun4v/sparcv9/Makefile => usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4v/sparcv9/Makefile
-rw-r--r--usr/src/Makefile.master.648
-rw-r--r--usr/src/cmd/svc/milestone/fs-root115
-rw-r--r--usr/src/cmd/trapstat/Makefile48
-rw-r--r--usr/src/cmd/trapstat/capabilities/Makefile (renamed from usr/src/lib/libc_psr/Makefile)27
-rw-r--r--usr/src/cmd/trapstat/capabilities/Makefile.com37
-rw-r--r--usr/src/cmd/trapstat/capabilities/Makefile.targ70
-rw-r--r--usr/src/cmd/trapstat/capabilities/sun4/gettrapent.c679
-rw-r--r--usr/src/cmd/trapstat/capabilities/sun4u/Makefile (renamed from usr/src/lib/libmd/sun4v/Makefile.links)28
-rw-r--r--usr/src/cmd/trapstat/capabilities/sun4u/mapfile-cap35
-rw-r--r--usr/src/cmd/trapstat/capabilities/sun4v/Makefile36
-rw-r--r--usr/src/cmd/trapstat/capabilities/sun4v/mapfile-cap35
-rw-r--r--usr/src/cmd/trapstat/i386/Makefile (renamed from usr/src/lib/pkcs11/libsoftcrypto/sun4v/sparcv9/Makefile)26
-rw-r--r--usr/src/cmd/trapstat/sun4/Makefile (renamed from usr/src/lib/libc_psr/sun4u_hwcap1/Makefile)43
-rw-r--r--usr/src/cmd/trapstat/sun4/_trapstat.h52
-rw-r--r--usr/src/cmd/trapstat/sun4/trapstat.c719
-rw-r--r--usr/src/common/bignum/bignumimpl.c4
-rw-r--r--usr/src/lib/Makefile1
-rw-r--r--usr/src/lib/Makefile.lib4
-rw-r--r--usr/src/lib/Makefile.targ9
-rw-r--r--usr/src/lib/libc/Makefile21
-rw-r--r--usr/src/lib/libc/amd64/Makefile66
-rw-r--r--usr/src/lib/libc/capabilities/Makefile55
-rw-r--r--usr/src/lib/libc/capabilities/Makefile.com34
-rw-r--r--usr/src/lib/libc/capabilities/Makefile.targ (renamed from usr/src/cmd/trapstat/sun4u/Makefile)57
-rw-r--r--usr/src/lib/libc/capabilities/sun4u-opl/Makefile (renamed from usr/src/lib/libmd/sun4v/Makefile)21
-rw-r--r--usr/src/lib/libc/capabilities/sun4u-opl/Makefile.com40
-rw-r--r--usr/src/lib/libc/capabilities/sun4u-opl/common/mapfile-cap42
-rw-r--r--usr/src/lib/libc/capabilities/sun4u-opl/common/memcpy.s (renamed from usr/src/lib/libc_psr/sun4u-opl/common/memcpy.s)3
-rw-r--r--usr/src/lib/libc/capabilities/sun4u-opl/sparc/Makefile34
-rw-r--r--usr/src/lib/libc/capabilities/sun4u-opl/sparcv9/Makefile36
-rw-r--r--usr/src/lib/libc/capabilities/sun4u-us3-hwcap1/Makefile (renamed from usr/src/lib/libmd/sun4u/Makefile)23
-rw-r--r--usr/src/lib/libc/capabilities/sun4u-us3-hwcap1/Makefile.com (renamed from usr/src/lib/pkcs11/libsoftcrypto/sun4u/sparc/Makefile)25
-rw-r--r--usr/src/lib/libc/capabilities/sun4u-us3-hwcap1/common/mapfile-cap40
-rw-r--r--usr/src/lib/libc/capabilities/sun4u-us3-hwcap1/sparc/Makefile34
-rw-r--r--usr/src/lib/libc/capabilities/sun4u-us3-hwcap1/sparcv9/Makefile36
-rw-r--r--usr/src/lib/libc/capabilities/sun4u-us3-hwcap2/Makefile (renamed from usr/src/lib/pkcs11/libsoftcrypto/sun4u/Makefile)25
-rw-r--r--usr/src/lib/libc/capabilities/sun4u-us3-hwcap2/Makefile.com42
-rw-r--r--usr/src/lib/libc/capabilities/sun4u-us3-hwcap2/common/mapfile-cap42
-rw-r--r--usr/src/lib/libc/capabilities/sun4u-us3-hwcap2/sparc/Makefile34
-rw-r--r--usr/src/lib/libc/capabilities/sun4u-us3-hwcap2/sparcv9/Makefile36
-rw-r--r--usr/src/lib/libc/capabilities/sun4u-us3/common/mapfile-cap66
-rw-r--r--usr/src/lib/libc/capabilities/sun4u-us3/common/memcmp.s (renamed from usr/src/lib/libc_psr/sun4u-us3/common/memcmp.s)3
-rw-r--r--usr/src/lib/libc/capabilities/sun4u-us3/common/memcpy.s (renamed from usr/src/lib/libc_psr/sun4u-us3/common/memcpy.s)3
-rw-r--r--usr/src/lib/libc/capabilities/sun4u-us3/common/memset.s (renamed from usr/src/lib/libc_psr/sun4u-us3/common/memset.s)3
-rw-r--r--usr/src/lib/libc/capabilities/sun4u/Makefile47
-rw-r--r--usr/src/lib/libc/capabilities/sun4u/Makefile.com (renamed from usr/src/lib/libc_psr/sun4u-opl/sparc/Makefile)45
-rw-r--r--usr/src/lib/libc/capabilities/sun4u/common/mapfile-cap43
-rw-r--r--usr/src/lib/libc/capabilities/sun4u/common/memcmp.s (renamed from usr/src/lib/libc_psr/sun4u/common/memcmp.s)3
-rw-r--r--usr/src/lib/libc/capabilities/sun4u/common/memcpy.s (renamed from usr/src/lib/libc_psr/sun4u/common/memcpy.s)3
-rw-r--r--usr/src/lib/libc/capabilities/sun4u/common/memset.s (renamed from usr/src/lib/libc_psr/sun4u/common/memset.s)3
-rw-r--r--usr/src/lib/libc/capabilities/sun4u/sparc/Makefile34
-rw-r--r--usr/src/lib/libc/capabilities/sun4u/sparcv9/Makefile36
-rw-r--r--usr/src/lib/libc/capabilities/sun4v-hwcap1/Makefile46
-rw-r--r--usr/src/lib/libc/capabilities/sun4v-hwcap1/Makefile.com (renamed from usr/src/cmd/trapstat/sun4v/Makefile)53
-rw-r--r--usr/src/lib/libc/capabilities/sun4v-hwcap1/common/mapfile-cap42
-rw-r--r--usr/src/lib/libc/capabilities/sun4v-hwcap1/sparc/Makefile34
-rw-r--r--usr/src/lib/libc/capabilities/sun4v-hwcap1/sparcv9/Makefile34
-rw-r--r--usr/src/lib/libc/capabilities/sun4v-hwcap2/Makefile47
-rw-r--r--usr/src/lib/libc/capabilities/sun4v-hwcap2/Makefile.com (renamed from usr/src/lib/libc_psr/sun4u/Makefile)43
-rw-r--r--usr/src/lib/libc/capabilities/sun4v-hwcap2/common/mapfile-cap40
-rw-r--r--usr/src/lib/libc/capabilities/sun4v-hwcap2/sparc/Makefile32
-rw-r--r--usr/src/lib/libc/capabilities/sun4v-hwcap2/sparcv9/Makefile34
-rw-r--r--usr/src/lib/libc/capabilities/sun4v/common/memcpy.s (renamed from usr/src/lib/libc_psr/sun4v/common/memcpy.s)3
-rw-r--r--usr/src/lib/libc/capabilities/sun4v/common/memset.s (renamed from usr/src/lib/libc_psr/sun4v/common/memset.s)3
-rw-r--r--usr/src/lib/libc/i386/Makefile.com74
-rw-r--r--usr/src/lib/libc/port/mapfile-vers29
-rw-r--r--usr/src/lib/libc/sparc/Makefile5
-rw-r--r--usr/src/lib/libc/sparc/Makefile.com19
-rw-r--r--usr/src/lib/libc/sparc/gen/memcpy.s4
-rw-r--r--usr/src/lib/libc/sparc/mapfile-vers-aux58
-rw-r--r--usr/src/lib/libc/sparc_hwcap1/sparc/Makefile49
-rw-r--r--usr/src/lib/libc/sparcv9/Makefile5
-rw-r--r--usr/src/lib/libc/sparcv9/Makefile.com19
-rw-r--r--usr/src/lib/libc/sparcv9/mapfile-vers-aux58
-rw-r--r--usr/src/lib/libc_psr/Makefile.targ32
-rw-r--r--usr/src/lib/libc_psr/etc/Makefile85
-rwxr-xr-xusr/src/lib/libc_psr/etc/caplib.ksh136
-rw-r--r--usr/src/lib/libc_psr/sun4u-opl/Makefile78
-rw-r--r--usr/src/lib/libc_psr/sun4u-opl/Makefile.com67
-rw-r--r--usr/src/lib/libc_psr/sun4u-opl/sparcv9/Makefile64
-rw-r--r--usr/src/lib/libc_psr/sun4u-us3/Makefile102
-rw-r--r--usr/src/lib/libc_psr/sun4u/Makefile.com85
-rw-r--r--usr/src/lib/libc_psr/sun4u/sparc/Makefile61
-rw-r--r--usr/src/lib/libc_psr/sun4u/sparcv9/Makefile63
-rw-r--r--usr/src/lib/libc_psr/sun4u_hwcap1/Makefile.com67
-rw-r--r--usr/src/lib/libc_psr/sun4u_hwcap1/sparc/Makefile63
-rw-r--r--usr/src/lib/libc_psr/sun4u_hwcap1/sparcv9/Makefile66
-rw-r--r--usr/src/lib/libc_psr/sun4u_hwcap2/Makefile.com67
-rw-r--r--usr/src/lib/libc_psr/sun4u_hwcap2/sparc/Makefile63
-rw-r--r--usr/src/lib/libc_psr/sun4u_hwcap2/sparcv9/Makefile66
-rw-r--r--usr/src/lib/libc_psr/sun4v/Makefile63
-rw-r--r--usr/src/lib/libc_psr/sun4v_hwcap1/Makefile56
-rw-r--r--usr/src/lib/libc_psr/sun4v_hwcap1/Makefile.com53
-rw-r--r--usr/src/lib/libc_psr/sun4v_hwcap1/sparc/Makefile64
-rw-r--r--usr/src/lib/libc_psr/sun4v_hwcap1/sparcv9/Makefile68
-rw-r--r--usr/src/lib/libc_psr/sun4v_hwcap2/Makefile55
-rw-r--r--usr/src/lib/libc_psr/sun4v_hwcap2/Makefile.com54
-rw-r--r--usr/src/lib/libc_psr/sun4v_hwcap2/sparc/Makefile63
-rw-r--r--usr/src/lib/libc_psr/sun4v_hwcap2/sparcv9/Makefile65
-rw-r--r--usr/src/lib/libmd/Makefile26
-rw-r--r--usr/src/lib/libmd/Makefile.com97
-rw-r--r--usr/src/lib/libmd/Makefile.targ (renamed from usr/src/lib/libc_psr/sun4u_hwcap2/Makefile)47
-rw-r--r--usr/src/lib/libmd/amd64/Makefile48
-rw-r--r--usr/src/lib/libmd/capabilities/Makefile49
-rw-r--r--usr/src/lib/libmd/capabilities/Makefile.com34
-rw-r--r--usr/src/lib/libmd/capabilities/Makefile.targ71
-rw-r--r--usr/src/lib/libmd/capabilities/sun4u/Makefile47
-rw-r--r--usr/src/lib/libmd/capabilities/sun4u/Makefile.com39
-rw-r--r--usr/src/lib/libmd/capabilities/sun4u/Makefile.targ (renamed from usr/src/lib/libc/sparc_hwcap1/sparcv9/mapfile)8
-rw-r--r--usr/src/lib/libmd/capabilities/sun4u/common/mapfile-cap40
-rw-r--r--usr/src/lib/libmd/capabilities/sun4u/sparc/Makefile34
-rw-r--r--usr/src/lib/libmd/capabilities/sun4u/sparcv9/Makefile36
-rw-r--r--usr/src/lib/libmd/capabilities/sun4v/Makefile47
-rw-r--r--usr/src/lib/libmd/capabilities/sun4v/Makefile.com38
-rw-r--r--usr/src/lib/libmd/capabilities/sun4v/Makefile.targ (renamed from usr/src/lib/libc/sparc_hwcap1/sparc/mapfile)8
-rw-r--r--usr/src/lib/libmd/capabilities/sun4v/common/mapfile-cap37
-rw-r--r--usr/src/lib/libmd/capabilities/sun4v/sparc/Makefile34
-rw-r--r--usr/src/lib/libmd/capabilities/sun4v/sparcv9/Makefile36
-rw-r--r--usr/src/lib/libmd/i386/Makefile24
-rw-r--r--usr/src/lib/libmd/sparc/Makefile28
-rw-r--r--usr/src/lib/libmd/sparcv9/Makefile30
-rw-r--r--usr/src/lib/libmd/sun4u/Makefile.links61
-rw-r--r--usr/src/lib/libmd/sun4u/sparc/Makefile55
-rw-r--r--usr/src/lib/libmd/sun4u/sparcv9/Makefile55
-rw-r--r--usr/src/lib/libmd/sun4v/sparc/Makefile53
-rw-r--r--usr/src/lib/libmd/sun4v/sparcv9/Makefile55
-rw-r--r--usr/src/lib/pkcs11/libsoftcrypto/Makefile31
-rw-r--r--usr/src/lib/pkcs11/libsoftcrypto/Makefile.com259
-rw-r--r--usr/src/lib/pkcs11/libsoftcrypto/Makefile.targ73
-rw-r--r--usr/src/lib/pkcs11/libsoftcrypto/amd64/Makefile92
-rw-r--r--usr/src/lib/pkcs11/libsoftcrypto/capabilities/Makefile49
-rw-r--r--usr/src/lib/pkcs11/libsoftcrypto/capabilities/Makefile.com34
-rw-r--r--usr/src/lib/pkcs11/libsoftcrypto/capabilities/Makefile.targ71
-rw-r--r--usr/src/lib/pkcs11/libsoftcrypto/capabilities/intel/Makefile47
-rw-r--r--usr/src/lib/pkcs11/libsoftcrypto/capabilities/intel/common/mapfile-cap (renamed from usr/src/lib/libc/sparc_hwcap1/sparcv9/mapfile-vers-aux)55
-rw-r--r--usr/src/lib/pkcs11/libsoftcrypto/capabilities/intel/i386/Makefile54
-rw-r--r--usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4u/Makefile47
-rw-r--r--usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4u/Makefile.com (renamed from usr/src/lib/libc/sparc_hwcap1/sparcv9/Makefile)38
-rw-r--r--usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4u/Makefile.targ (renamed from usr/src/lib/libmd/sun4v/Makefile.com)27
-rw-r--r--usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4u/common/mapfile-cap (renamed from usr/src/lib/libc/sparc_hwcap1/sparc/mapfile-vers-aux)64
-rw-r--r--usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4u/sparc/Makefile (renamed from usr/src/lib/pkcs11/libsoftcrypto/sun4v/sparc/Makefile)18
-rw-r--r--usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4u/sparcv9/Makefile38
-rw-r--r--usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4v/Makefile47
-rw-r--r--usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4v/Makefile.com40
-rw-r--r--usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4v/Makefile.targ (renamed from usr/src/lib/libc_psr/sun4u_hwcap2/mapfile)10
-rw-r--r--usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4v/common/mapfile-cap (renamed from usr/src/lib/libmd/sun4u/Makefile.com)47
-rw-r--r--usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4v/sparc/Makefile32
-rw-r--r--usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4v/sparcv9/Makefile33
-rw-r--r--usr/src/lib/pkcs11/libsoftcrypto/i386/Makefile39
-rw-r--r--usr/src/lib/pkcs11/libsoftcrypto/i386_hwcap1/Makefile61
-rw-r--r--usr/src/lib/pkcs11/libsoftcrypto/sparc/Makefile40
-rw-r--r--usr/src/lib/pkcs11/libsoftcrypto/sparcv9/Makefile42
-rw-r--r--usr/src/lib/pkcs11/libsoftcrypto/sun4u/Makefile.com137
-rw-r--r--usr/src/lib/pkcs11/libsoftcrypto/sun4u/Makefile.links61
-rw-r--r--usr/src/lib/pkcs11/libsoftcrypto/sun4u/mapfile-vers85
-rw-r--r--usr/src/lib/pkcs11/libsoftcrypto/sun4u/sparcv9/Makefile44
-rw-r--r--usr/src/lib/pkcs11/libsoftcrypto/sun4v/Makefile47
-rw-r--r--usr/src/lib/pkcs11/libsoftcrypto/sun4v/Makefile.com68
-rw-r--r--usr/src/lib/pkcs11/libsoftcrypto/sun4v/Makefile.links41
-rw-r--r--usr/src/lib/pkcs11/libsoftcrypto/sun4v/mapfile-vers69
-rw-r--r--usr/src/pkg/manifests/SUNWcs.mf2
-rw-r--r--usr/src/pkg/manifests/system-library-platform.mf310
-rw-r--r--usr/src/pkg/manifests/system-library-processor.mf442
-rw-r--r--usr/src/pkg/manifests/system-library.mf7
-rw-r--r--usr/src/uts/sun4u/boston/Makefile6
-rw-r--r--usr/src/uts/sun4u/boston/Makefile.boston6
-rw-r--r--usr/src/uts/sun4u/boston/Makefile.targ6
-rw-r--r--usr/src/uts/sun4u/mpxu/Makefile7
-rw-r--r--usr/src/uts/sun4u/mpxu/Makefile.mpxu.shared7
-rw-r--r--usr/src/uts/sun4u/mpxu/Makefile.targ.shared6
-rw-r--r--usr/src/uts/sun4u/opl/Makefile6
-rw-r--r--usr/src/uts/sun4u/opl/Makefile.opl.shared6
-rw-r--r--usr/src/uts/sun4u/opl/Makefile.targ.shared6
-rw-r--r--usr/src/uts/sun4u/schumacher/Makefile6
-rw-r--r--usr/src/uts/sun4u/schumacher/Makefile.schumacher6
-rw-r--r--usr/src/uts/sun4u/schumacher/Makefile.targ6
-rw-r--r--usr/src/uts/sun4u/seattle/Makefile6
-rw-r--r--usr/src/uts/sun4u/seattle/Makefile.seattle6
-rw-r--r--usr/src/uts/sun4u/seattle/Makefile.targ6
-rw-r--r--usr/src/uts/sun4u/snowbird/Makefile7
-rw-r--r--usr/src/uts/sun4u/snowbird/Makefile.snowbird5
-rw-r--r--usr/src/uts/sun4u/snowbird/Makefile.targ6
-rw-r--r--usr/src/uts/sun4v/Makefile.monza6
-rw-r--r--usr/src/uts/sun4v/montoya/Makefile.montoya7
184 files changed, 4036 insertions, 5373 deletions
diff --git a/usr/src/Makefile.master.64 b/usr/src/Makefile.master.64
index cb01d1ab75..f48eefb29a 100644
--- a/usr/src/Makefile.master.64
+++ b/usr/src/Makefile.master.64
@@ -19,8 +19,7 @@
# CDDL HEADER END
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
#
# rebind basic build macros to 64-bit versions
@@ -73,7 +72,7 @@ REAL_CC= $(CW_CC_CMD:sh)
REAL_CCC= $(CW_CCC_CMD:sh)
BUILD.SO= $(CC) $(CFLAGS) -o $@ $(GSHARED) $(DYNFLAGS) \
- $(PICS) -L $(ROOTLIBDIR64) $(LDLIBS)
+ $(PICS) $(EXTPICS) -L $(ROOTLIBDIR64) $(LDLIBS)
#
# ld(1) requires the -64 option to create a 64-bit filter solely from a mapfile
@@ -84,5 +83,6 @@ CCNEEDED = -lCrun
$(__GNUC64)CCNEEDED = -L$(SFWLIBDIR) -R$(SFWLIBDIR) -lstdc++ \
-lgcc_s_$(MACH64)
-BUILDCCC.SO= $(CCC) $(CCFLAGS) -o $@ $(GSHARED) $(DYNFLAGS) $(PICS) $(LDLIBS) $(CCNEEDED)
+BUILDCCC.SO= $(CCC) $(CCFLAGS) -o $@ $(GSHARED) $(DYNFLAGS) \
+ $(PICS) $(EXTPICS) $(LDLIBS) $(CCNEEDED)
MAPFILE.NGB = $(MAPFILE.NGB_$(MACH64))
diff --git a/usr/src/cmd/svc/milestone/fs-root b/usr/src/cmd/svc/milestone/fs-root
index e9f5ce5c50..c61ec92b48 100644
--- a/usr/src/cmd/svc/milestone/fs-root
+++ b/usr/src/cmd/svc/milestone/fs-root
@@ -20,10 +20,7 @@
# CDDL HEADER END
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-#
+# Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
#
# Make sure that the libraries essential to this stage of booting can be found.
@@ -53,114 +50,6 @@ libc_mount() {
fi
}
-# This mount function is sun4v only. It may be melded with the sun4u-us3
-# version later.
-sun4v_libc_psr_mount() {
- LIBC_MOE_32=`/usr/bin/moe -32 /platform/$PLAT/lib/libc_psr/'$HWCAP'`
- if [ -n "$LIBC_MOE_32" ]; then
- /usr/sbin/mount |
- egrep -s "^/platform/[^/]*/lib/libc_psr.so.1 on "
- if [ $? -ne 0 ]; then
- /usr/sbin/mount -O -F lofs $LIBC_MOE_32 \
- /platform/$PLAT/lib/libc_psr.so.1
- fi
- fi
-
- LIBC_MOE_64=`/usr/bin/moe -64 \
- /platform/$PLAT/lib/sparcv9/libc_psr/'$HWCAP'`
- if [ -n "$LIBC_MOE_64" ]; then
- /usr/sbin/mount |
- egrep -s "^/platform/[^/]*/lib/sparcv9/libc_psr.so.1 on "
- if [ $? -ne 0 ]; then
- /usr/sbin/mount -O -F lofs $LIBC_MOE_64 \
- /platform/$PLAT/lib/sparcv9/libc_psr.so.1
- fi
- fi
-}
-
-# This is specific to sun4u[-us3].
-# try to intelligently handle the various ways that a hwcap library can
-# be present for libc_psr for sun4u.
-sun4u_libc_psr_mount() {
- # first look for $PLAT specific
- # the string $HWCAP is not an env var but part of the argument to moe
- LIBC_MOE_32=`/usr/bin/moe -32 /platform/$PLAT/lib/libc_psr/'$HWCAP'`
- if [ -n "$LIBC_MOE_32" ]; then
- /usr/sbin/mount |
- egrep -s "^/platform/$PLAT/lib/libc_psr.so.1 on "
- if [ $? -ne 0 ]; then
- /usr/sbin/mount -O -F lofs $LIBC_MOE_32 \
- /platform/$PLAT/lib/libc_psr.so.1
- fi
- else
- # try the 'generic' one under $ARCH
- LIBC_MOE_32=`/usr/bin/moe -32 \
- /platform/$ARCH/lib/libc_psr/'$HWCAP'`
- if [ -n "$LIBC_MOE_32" ]; then
- /usr/sbin/mount |
- egrep -s "^/platform/$ARCH/lib/libc_psr.so.1 on "
- if [ $? -ne 0 ]; then
- /usr/sbin/mount -O -F lofs $LIBC_MOE_32 \
- /platform/$ARCH/lib/libc_psr.so.1
- fi
- fi
-
- fi
-
- # now repeat for 64 bit.
-
- LIBC_MOE_64=`/usr/bin/moe -64 \
- /platform/$PLAT/lib/sparcv9/libc_psr/'$HWCAP'`
- if [ -n "$LIBC_MOE_64" ]; then
- /usr/sbin/mount |
- egrep -s "^/platform/$PLAT/lib/sparcv9/libc_psr.so.1 on "
- if [ $? -ne 0 ]; then
- /usr/sbin/mount -O -F lofs $LIBC_MOE_64 \
- /platform/$PLAT/lib/sparcv9/libc_psr.so.1
- fi
- else
- # now try $ARCH version
- LIBC_MOE_64=`/usr/bin/moe -64 \
- /platform/$ARCH/lib/sparcv9/libc_psr/'$HWCAP'`
- if [ -n "$LIBC_MOE_64" ]; then
- /usr/sbin/mount |
- egrep -s \
- "^/platform/$ARCH/lib/sparcv9/libc_psr.so.1 on "
- if [ $? -ne 0 ]; then
- /usr/sbin/mount -O -F lofs $LIBC_MOE_64 \
- /platform/$ARCH/lib/sparcv9/libc_psr.so.1
- fi
- fi
- fi
-}
-
-#
-# Discover architecture and find and mount optimal libc_psr
-#
-libc_psr_mount() {
- PLAT=`/usr/bin/uname -i`
- ARCH=`/usr/bin/uname -m`
- if [ "$ARCH" = "sun4v" ]; then
- # Check if we already loaded libc_hwcapX.so.1 thru libc_mount
- # We can get rid of this check (and the libc_psr mount),
- # if all the sun4v platforms start using libc_hwcap.
- if [ ! -n "$LIBC_MOE_32" ]; then
- sun4v_libc_psr_mount
- fi
- elif [ "$ARCH" = "sun4u" ]; then
- if [ -h /platform/$PLAT/lib/libc_psr.so.1 ]; then
- LINKSTO=`/usr/bin/ls -l \
- /platform/$PLAT/lib/libc_psr.so.1 |
- /usr/bin/awk '{print $NF}'`
- if [ "$LINKSTO" = \
- "../../sun4u-us3/lib/libc_psr.so.1" ]; then
- ARCH=sun4u-us3
- fi
- fi
- sun4u_libc_psr_mount
- fi
-}
-
. /lib/svc/share/smf_include.sh
. /lib/svc/share/fs_include.sh
@@ -171,7 +60,6 @@ libc_psr_mount() {
#
if smf_is_nonglobalzone; then
libc_mount
- libc_psr_mount
exit $SMF_EXIT_OK
fi
@@ -295,6 +183,5 @@ fi
/usr/sbin/devfsadm -I -P
libc_mount
-libc_psr_mount
exit $SMF_EXIT_OK
diff --git a/usr/src/cmd/trapstat/Makefile b/usr/src/cmd/trapstat/Makefile
index 6f68d6c504..2e6b761a61 100644
--- a/usr/src/cmd/trapstat/Makefile
+++ b/usr/src/cmd/trapstat/Makefile
@@ -2,9 +2,8 @@
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
-# Common Development and Distribution License, Version 1.0 only
-# (the "License"). You may not use this file except in compliance
-# with the License.
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
@@ -19,41 +18,40 @@
#
# CDDL HEADER END
#
+
#
-# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
#
-PROG= trapstat
-
-include ../Makefile.cmd
+include $(SRC)/cmd/Makefile.cmd
-sparc_SUBDIRS = sun4u sun4v
-i386_SUBDIRS =
+sparc_CAPDIR = capabilities
+i386_CAPDIR = i386
+CAPDIR = $($(MACH)_CAPDIR)
-SUBDIRS = $($(MACH)_SUBDIRS)
+sparc_SUBDIRS = sun4
+i386_SUBDIRS =
+SUBDIRS = $($(MACH)_SUBDIRS)
-all := TARGET = all
-install := TARGET = install
-clean := TARGET = clean
-clobber := TARGET = clobber
-lint := TARGET = lint
+all := TARGET= all
+clean := TARGET= clean
+clobber := TARGET= clobber
+install := TARGET= install
+lint := TARGET= lint
.KEEP_STATE:
-all: $(SUBDIRS)
+.PARALLEL: $(SUBDIRS)
-clean clobber lint: $(SUBDIRS)
+all clean clobber install lint: \
+ $(CAPDIR) .WAIT $(SUBDIRS)
-install: $(SUBDIRS)
- $(RM) $(ROOTUSRSBINPROG)
- $(LN) $(PLATEXEC) $(ROOTUSRSBINPROG)
+install_h check:
+$(CAPDIR) \
$(SUBDIRS): FRC
- @cd $@; pwd; $(MAKE) $(TARGET)
+ @cd $@; pwd; $(MAKE) $(TARGET)
FRC:
-include ../Makefile.targ
+include $(SRC)/cmd/Makefile.targ
diff --git a/usr/src/lib/libc_psr/Makefile b/usr/src/cmd/trapstat/capabilities/Makefile
index df9739cb24..37ffd8ee74 100644
--- a/usr/src/lib/libc_psr/Makefile
+++ b/usr/src/cmd/trapstat/capabilities/Makefile
@@ -18,29 +18,32 @@
#
# CDDL HEADER END
#
+
#
-# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
#
-include ../Makefile.lib
+include $(SRC)/Makefile.master
-SUBDIRS = etc sun4u sun4u-opl sun4u-us3 sun4u_hwcap1 sun4u_hwcap2 \
- sun4v sun4v_hwcap1 sun4v_hwcap2
+# Each target directory is responsible for making a symbol capabilities object.
+$(SPARC_BLD)SUBDIRS = sun4u sun4v
+$(INTEL_BLD)SUBDIRS =
all := TARGET= all
-install := TARGET= install
clean := TARGET= clean
clobber := TARGET= clobber
-lint := TARGET= lint
+install := TARGET= install
.KEEP_STATE:
-all install clean clobber lint: $(SUBDIRS)
+.PARALLEL: $(SUBDIRS)
+
+all clean clobber install: \
+ $(SUBDIRS)
+
+lint:
-$(SUBDIRS): FRC
- @cd $@; pwd; $(MAKE) $(TARGET)
+$(SUBDIRS): FRC
+ @cd $@; pwd; $(MAKE) $(TARGET)
FRC:
diff --git a/usr/src/cmd/trapstat/capabilities/Makefile.com b/usr/src/cmd/trapstat/capabilities/Makefile.com
new file mode 100644
index 0000000000..ffc21851dd
--- /dev/null
+++ b/usr/src/cmd/trapstat/capabilities/Makefile.com
@@ -0,0 +1,37 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+include $(SRC)/cmd/Makefile.cmd
+
+MAPFILE-CAP = mapfile-cap
+MAPOPT-CAP = $(MAPFILE-CAP:%=-M%)
+
+CFLAGS += $(CCVERBOSE)
+CPPFLAGS += -I$(SRC)/uts/sun4 -I../../sun4 -D$(PLATFORM)
+
+OBJCAP = objcap.o
+SYMCAP = symcap.o
+
+CLOBBERFILES += $(OBJCAP) $(SYMCAP)
diff --git a/usr/src/cmd/trapstat/capabilities/Makefile.targ b/usr/src/cmd/trapstat/capabilities/Makefile.targ
new file mode 100644
index 0000000000..f90d8d897a
--- /dev/null
+++ b/usr/src/cmd/trapstat/capabilities/Makefile.targ
@@ -0,0 +1,70 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+#
+# trapstat provides two families of trap tables for SPARC platforms, one for
+# sun4u, and one for sun4v. Previous implementations provided these families by
+# invoking a platform specific binary (/usr/platform/$PLATFORM/sbin/trapstat).
+# trapstat itself was linked to /usr/lib/platexec, a shell script used to
+# discover the platform name, and exec the associated platform specific binary.
+#
+# The two trapstat trap tables are now encapsulated behind a symbol capabilities
+# routine get_trap_entry(). An instance of this routine is provided for sun4u,
+# and sun4v, and are identified with a machine hardware name via using
+# ../common/mapfile-cap.
+#
+# These object capabilities relocatable objects are then translated into symbol
+# capabilities relocatable objects, pics/symcap.o.
+#
+# The sun4u and sun4v families of symbol capabilities object are eventually
+# included in the final build of trapstat.
+
+$(SYMCAP): $(OBJCAP)
+$(OBJCAP): $(OBJECTS)
+
+# Combine all pic objects into one relocatable object. Assign any capabilities
+# to this object, and define the interface.
+
+objcap.o: $(OBJECTS) $(MAPFILE-CAP)
+ $(LD) -r -o $@ $(MAPOPT-CAP) -Breduce $(OBJECTS)
+
+# Convert the combined object capabilities object into a symbol capabilities
+# object.
+
+symcap.o: $(OBJCAP)
+ $(LD) -r -o $@ -z symbolcap $(OBJCAP)
+
+# Create original object.
+
+%.o: ../sun4/%.c
+ $(COMPILE.c) -o $@ $<
+ $(POST_PROCESS_O)
+
+clean:
+ $(RM) $(OBJECTS)
+
+lint:
+
+include $(SRC)/cmd/Makefile.targ
diff --git a/usr/src/cmd/trapstat/capabilities/sun4/gettrapent.c b/usr/src/cmd/trapstat/capabilities/sun4/gettrapent.c
new file mode 100644
index 0000000000..7398b6c9f7
--- /dev/null
+++ b/usr/src/cmd/trapstat/capabilities/sun4/gettrapent.c
@@ -0,0 +1,679 @@
+/*
+ * CDDL HEADER START
+ *
+ * The contents of this file are subject to the terms of the
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
+ *
+ * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+ * or http://www.opensolaris.org/os/licensing.
+ * See the License for the specific language governing permissions
+ * and limitations under the License.
+ *
+ * When distributing Covered Code, include this CDDL HEADER in each
+ * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+ * If applicable, add the following below this CDDL HEADER, with the
+ * fields enclosed by brackets "[]" replaced with your own identifying
+ * information: Portions Copyright [yyyy] [name of copyright owner]
+ *
+ * CDDL HEADER END
+ */
+
+/*
+ * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+ */
+
+#include <sys/trapstat.h>
+#include "_trapstat.h"
+
+static tstat_ent_t g_traps[TSTAT_NENT] = {
+#ifndef sun4v
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { "power-on", "power on reset" },
+ { "watchdog", "watchdog reset" },
+ { "xir", "externally initiated reset" },
+ { "sir", "software initiated reset" },
+ { "red", "RED state exception" },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { "immu-xcp", "instruction access exception" },
+ { "immu-miss", "instruction access MMU miss" },
+ { "immu-err", "instruction access error" },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { "ill-inst", "illegal instruction" },
+ { "priv-inst", "privileged opcode" },
+ { "unimp-ldd", "unimplemented LDD" },
+ { "unimp-std", "unimplemented STD" },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { "fp-disabled", "fp disabled" },
+ { "fp-ieee754", "fp exception ieee754" },
+ { "fp-xcp-other", "fp exception other" },
+ { "tag-oflow", "tag overflow" },
+ { "cleanwin", "clean window" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "div-zero", "division by zero" },
+ { "internal-err", "internal processor error" },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { "dmmu-xcp", "data access exception" },
+ { "dmmu-miss", "data access MMU miss" },
+ { "dmmu-err", "data access error" },
+ { "dmmu-prot", "data access protection" },
+ { "unalign", "mem address not aligned" },
+ { "lddf-unalign", "LDDF mem address not aligned" },
+ { "stdf-unalign", "STDF mem address not aligned" },
+ { "priv-act", "privileged action" },
+ { "ldqf-unalign", "LDQF mem address not aligned" },
+ { "stqf-unalign", "STQF mem address not aligned" },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { "async-d-err", "async data error" },
+ { "level-1", "interrupt level 1" },
+ { "level-2", "interrupt level 2" },
+ { "level-3", "interrupt level 3" },
+ { "level-4", "interrupt level 4" },
+ { "level-5", "interrupt level 5" },
+ { "level-6", "interrupt level 6" },
+ { "level-7", "interrupt level 7" },
+ { "level-8", "interrupt level 8" },
+ { "level-9", "interrupt level 9" },
+ { "level-10", "interrupt level 10" },
+ { "level-11", "interrupt level 11" },
+ { "level-12", "interrupt level 12" },
+ { "level-13", "interrupt level 13" },
+ { "level-14", "interrupt level 14" },
+ { "level-15", "interrupt level 15" },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { "int-vec", "interrupt vector" },
+ { "pa-watch", "PA watchpoint" },
+ { "va-watch", "VA watchpoint" },
+ { "ecc-err", "corrected ECC error" },
+ { "itlb-miss", "instruction access MMU miss" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "dtlb-miss", "data access MMU miss" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "dtlb-prot", "data access protection" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "fast-ecc", "fast ECC error" },
+ { "dcache-parity", "D-cache parity error" },
+ { "icache-parity", "I-cache parity error" },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+#else /* sun4v */
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { "watchdog", "watchdog reset" },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { "immu-xcp", "instruction access exception" },
+ { "immu-miss", "instruction access MMU miss" },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { "ill-inst", "illegal instruction" },
+ { "priv-inst", "privileged opcode" },
+ { "unimp-ldd", "unimplemented LDD" },
+ { "unimp-std", "unimplemented STD" },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { "fp-disabled", "fp disabled" },
+ { "fp-ieee754", "fp exception ieee754" },
+ { "fp-xcp-other", "fp exception other" },
+ { "tag-oflow", "tag overflow" },
+ { "cleanwin", "clean window" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "div-zero", "division by zero" },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { "dmmu-xcp", "data access exception" },
+ { "dmmu-miss", "data access MMU miss" },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { "dmmu-prot", "data access protection" },
+ { "unalign", "mem address not aligned" },
+ { "lddf-unalign", "LDDF mem address not aligned" },
+ { "stdf-unalign", "STDF mem address not aligned" },
+ { "priv-act", "privileged action" },
+ { "ldqf-unalign", "LDQF mem address not aligned" },
+ { "stqf-unalign", "STQF mem address not aligned" },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { "level-1", "interrupt level 1" },
+ { "level-2", "interrupt level 2" },
+ { "level-3", "interrupt level 3" },
+ { "level-4", "interrupt level 4" },
+ { "level-5", "interrupt level 5" },
+ { "level-6", "interrupt level 6" },
+ { "level-7", "interrupt level 7" },
+ { "level-8", "interrupt level 8" },
+ { "level-9", "interrupt level 9" },
+ { "level-10", "interrupt level 10" },
+ { "level-11", "interrupt level 11" },
+ { "level-12", "interrupt level 12" },
+ { "level-13", "interrupt level 13" },
+ { "level-14", "interrupt level 14" },
+ { "level-15", "interrupt level 15" },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { "pa-watch", "PA watchpoint" },
+ { "va-watch", "VA watchpoint" },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { "itlb-miss", "instruction access MMU miss" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "dtlb-miss", "data access MMU miss" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "dtlb-prot", "data access protection" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { "ctl-xfer", "control transfer" },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { "instr-brkpt", "instruction breakpoint" },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { "hw-changed", "hardware changed" },
+ { "cpu_mondo", "cpu mondo trap" },
+ { "dev_mondo", "device mondo trap" },
+ { "res-err", "resumable error" },
+ { "nonres-err", "non-resumable error" },
+#endif /* sun4v */
+ { "spill-0-normal", "spill 0 normal" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "spill-user-32", "spill user window, 32-bit" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "spill-user-64", "spill user window, 64-bit" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "spill-user-32-cln", "spill, clean user window, 32-bit" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "spill-user-64-cln", "spill, clean user window, 64-bit" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "spill-kern-32", "spill kernel window, 32-bit" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "spill-kern-64", "spill kernel window, 64-bit" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "spill-mixed", "spill window, mixed 32-bit/64-bit" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "spill-0-other", "spill 0 other" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "spill-asuser-32", "spill user window as kernel, 32-bit" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "spill-asuser-64", "spill user window as kernel, 64-bit" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "spill-asuser-32-cln", "spill, clean user window as kernel, 32-bit" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "spill-asuser-64-cln", "spill, clean user window as kernel, 64-bit" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "spill-5-other", "spill 5 other" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "spill-6-other", "spill 6 other" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "spill-7-other", "spill 7 other" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "fill-0-normal", "fill 0 normal" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "fill-user-32", "fill user window, 32-bit" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "fill-user-64", "fill user window, 64-bit" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "fill-user-32-cln", "fill user window, 32-bit" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "fill-user-64-cln", "fill user window, 64-bit" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "fill-kern-32", "fill kernel window, 32-bit" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "fill-kern-64", "fill kernel window, 64-bit" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "fill-mixed", "fill window, mixed 32-bit/64-bit" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "fill-0-other", "fill 0 other" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "fill-asuser-32", "fill user window as kernel, 32-bit" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "fill-asuser-64", "fill user window as kernel, 64-bit" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "fill-asuser-32-cln", "fill user window as kernel, 32-bit" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "fill-asuser-64-cln", "fill user window as kernel, 64-bit" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "fill-5-other", "fill 5 other" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "fill-6-other", "fill 6 other" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "fill-7-other", "fill 7 other" },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { NULL, NULL, TSTAT_ENT_CONTINUED },
+ { "syscall-4x", "old system call" },
+ { "usr-brkpt", "user breakpoint" },
+ { "usr-div-zero", "user divide by zero" },
+ { "flush-wins", "flush windows" },
+ { "clean-wins", "clean windows" },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { "fix-align", "fix unaligned references" },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { "syscall-32", "ILP32 system call" },
+ { "set-t0-addr", "set trap0 address" },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { "trap-inst-16", "trap instruction 16", },
+ { "trap-inst-17", "trap instruction 17", },
+ { "trap-inst-18", "trap instruction 18", },
+ { "trap-inst-19", "trap instruction 19", },
+ { "trap-inst-20", "trap instruction 20", },
+ { "trap-inst-21", "trap instruction 21", },
+ { "trap-inst-22", "trap instruction 22", },
+ { "trap-inst-23", "trap instruction 23", },
+ { "trap-inst-24", "trap instruction 24", },
+ { "trap-inst-25", "trap instruction 25", },
+ { "trap-inst-26", "trap instruction 26", },
+ { "trap-inst-27", "trap instruction 27", },
+ { "trap-inst-28", "trap instruction 28", },
+ { "trap-inst-29", "trap instruction 29", },
+ { "trap-inst-30", "trap instruction 30", },
+ { "trap-inst-31", "trap instruction 31", },
+ { "get-cc", "get condition codes" },
+ { "set-cc", "set condition codes" },
+ { "get-psr", "get psr" },
+ { "set-psr", "set psr (some fields)" },
+ { "getts", "get timestamp" },
+ { "gethrvtime", "get lwp virtual time" },
+ { "self-xcall", "self xcall" },
+ { "gethrtime", "get hrestime" },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { "getlgrp", "get lgrpid" },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { "dtrace-pid", "DTrace pid provider" },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { "dtrace-return", "DTrace pid provider return" },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { "syscall-64", "LP64 system call" },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { "tt-freeze", "freeze traptrace" },
+ { "tt-unfreeze", "unfreeze traptrace" },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { NULL, NULL, TSTAT_ENT_UNUSED },
+ { "ptl1-panic", "test ptl1-panic" },
+ { "kmdb-enter", "kmdb enter (L1-A)" },
+ { "kmdb-brkpt", "kmdb breakpoint" },
+ { "obp-brkpt", "obp breakpoint" },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED },
+ { NULL, NULL, TSTAT_ENT_RESERVED }
+};
+
+tstat_ent_t *
+get_trap_ent(int ndx)
+{
+ return (&g_traps[ndx]);
+}
diff --git a/usr/src/lib/libmd/sun4v/Makefile.links b/usr/src/cmd/trapstat/capabilities/sun4u/Makefile
index e03b1e1b15..3b34c584fa 100644
--- a/usr/src/lib/libmd/sun4v/Makefile.links
+++ b/usr/src/cmd/trapstat/capabilities/sun4u/Makefile
@@ -18,15 +18,19 @@
#
# CDDL HEADER END
#
-#
-# ident "%Z%%M% %I% %E% SMI"
-#
-# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# lib/libmd/Makefile.sun4v.links
-#
-#
-# Used when building links in /platform/sun4v/lib
-#
-LINKED_PLATFORMS = SUNW,Sun-Fire-T200
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+PLATFORM = sun4u
+
+include ../Makefile.com
+
+OBJECTS = gettrapent.o
+
+.KEEP_STATE:
+
+all install: $(SYMCAP)
+
+include ../Makefile.targ
diff --git a/usr/src/cmd/trapstat/capabilities/sun4u/mapfile-cap b/usr/src/cmd/trapstat/capabilities/sun4u/mapfile-cap
new file mode 100644
index 0000000000..94631345e9
--- /dev/null
+++ b/usr/src/cmd/trapstat/capabilities/sun4u/mapfile-cap
@@ -0,0 +1,35 @@
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+$mapfile_version 2
+
+CAPABILITY sun4u {
+ MACHINE = sun4u;
+};
+
+SYMBOL_SCOPE {
+ global:
+ get_trap_ent;
+ local:
+ *;
+};
diff --git a/usr/src/cmd/trapstat/capabilities/sun4v/Makefile b/usr/src/cmd/trapstat/capabilities/sun4v/Makefile
new file mode 100644
index 0000000000..cf0442c39b
--- /dev/null
+++ b/usr/src/cmd/trapstat/capabilities/sun4v/Makefile
@@ -0,0 +1,36 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+PLATFORM = sun4v
+
+include ../Makefile.com
+
+OBJECTS = gettrapent.o
+
+.KEEP_STATE:
+
+all install: $(SYMCAP)
+
+include ../Makefile.targ
diff --git a/usr/src/cmd/trapstat/capabilities/sun4v/mapfile-cap b/usr/src/cmd/trapstat/capabilities/sun4v/mapfile-cap
new file mode 100644
index 0000000000..edb126f0ea
--- /dev/null
+++ b/usr/src/cmd/trapstat/capabilities/sun4v/mapfile-cap
@@ -0,0 +1,35 @@
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+$mapfile_version 2
+
+CAPABILITY sun4v {
+ MACHINE = sun4v;
+};
+
+SYMBOL_SCOPE {
+ global:
+ get_trap_ent;
+ local:
+ *;
+};
diff --git a/usr/src/lib/pkcs11/libsoftcrypto/sun4v/sparcv9/Makefile b/usr/src/cmd/trapstat/i386/Makefile
index ba8463e5ae..0f86470e71 100644
--- a/usr/src/lib/pkcs11/libsoftcrypto/sun4v/sparcv9/Makefile
+++ b/usr/src/cmd/trapstat/i386/Makefile
@@ -20,22 +20,24 @@
#
#
-# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
#
-#
-# lib/pkcs11/libsoftcrypto/sun4v/sparcv9/Makefile
-#
+include $(SRC)/cmd/Makefile.cmd
+
+PROG = trapstat
-CLASS = 64
+all:
-include ../Makefile.com
-include $(SRC)/lib/Makefile.lib.64
+# Generate a link to platexec. Nothing gets executed at runtime, other
+# than platexec which generates an error message that no i386 executable
+# is available.
+install: $(ROOTUSRSBINPROG)
-# E_NAME_MULTIPLY_DEF2 is for arcfour_key_init and arcfour_crypt in
-# different implementations of arcfour_crypt.c
-LINTFLAGS64 += -D$(PLATFORM) -erroff=E_NAME_MULTIPLY_DEF2
+$(ROOTUSRSBINPROG):
+ $(RM) $(ROOTUSRSBINPROG)
+ $(LN) $(PLATEXEC) $(ROOTUSRSBINPROG)
-install: all $(SOFT_PSR64_LINKS) $(USR_PSM_LIBS64)
+clean lint:
-include $(SRC)/Makefile.psm.targ
+include $(SRC)/cmd/Makefile.targ
diff --git a/usr/src/lib/libc_psr/sun4u_hwcap1/Makefile b/usr/src/cmd/trapstat/sun4/Makefile
index 90ff898954..a69c5e6af3 100644
--- a/usr/src/lib/libc_psr/sun4u_hwcap1/Makefile
+++ b/usr/src/cmd/trapstat/sun4/Makefile
@@ -18,39 +18,36 @@
#
# CDDL HEADER END
#
+
#
-# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
#
-include ../../Makefile.lib
+include $(SRC)/cmd/Makefile.cmd
-PLATFORM= sun4u-us3
-ALT_PLAT= sun4u_hwcap1
+PROG = trapstat
+OBJS = trapstat.o
-SUBDIRS= $(MACH)
-SUBDIRS64= $(MACH64)
+# Symbol capabilities objects are added for sun4u and sun4v.
+EXTOBJS = ../capabilities/sun4u/symcap.o \
+ ../capabilities/sun4v/symcap.o
-all := TARGET= all
-install := TARGET= install
-clean := TARGET= clean
-clobber := TARGET= clobber
+CPPFLAGS += -I$(SRC)/uts/sun4 -I.
+LINTFLAGS += -erroff=E_SEC_PRINTF_VAR_FMT
.KEEP_STATE:
-all install clean clobber : lib32 \
- $(BUILD64) lib64
-
-lint:
- @ $(ECHO) "Nothing to lint here: skipping"
+all: $(PROG)
-lib32: $(SUBDIRS)
+install: $(ROOTUSRSBINPROG)
-lib64: $(SUBDIRS64)
+$(PROG): $(OBJS) $(EXTOBJS)
+ $(LINK.c) -o $(PROG) $(OBJS) $(EXTOBJS) $(LDLIBS)
+ $(POST_PROCESS)
-$(SUBDIRS) $(SUBDIRS64): FRC
- @cd $@; pwd; $(MAKE) $(TARGET)
+clean:
+ $(RM) $(OBJS) $(EXTOBJS)
+
+lint: lint_PROG
-FRC:
+include $(SRC)/cmd/Makefile.targ
diff --git a/usr/src/cmd/trapstat/sun4/_trapstat.h b/usr/src/cmd/trapstat/sun4/_trapstat.h
new file mode 100644
index 0000000000..3c78343c44
--- /dev/null
+++ b/usr/src/cmd/trapstat/sun4/_trapstat.h
@@ -0,0 +1,52 @@
+/*
+ * CDDL HEADER START
+ *
+ * The contents of this file are subject to the terms of the
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
+ *
+ * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+ * or http://www.opensolaris.org/os/licensing.
+ * See the License for the specific language governing permissions
+ * and limitations under the License.
+ *
+ * When distributing Covered Code, include this CDDL HEADER in each
+ * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+ * If applicable, add the following below this CDDL HEADER, with the
+ * fields enclosed by brackets "[]" replaced with your own identifying
+ * information: Portions Copyright [yyyy] [name of copyright owner]
+ *
+ * CDDL HEADER END
+ */
+
+/*
+ * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+ */
+
+#ifndef __TRAPSTAT_DOT_H
+#define __TRAPSTAT_DOT_H
+
+#include <sys/trapstat.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define TSTAT_ENT_USED 0
+#define TSTAT_ENT_RESERVED 1
+#define TSTAT_ENT_UNUSED 2
+#define TSTAT_ENT_CONTINUED 3
+
+typedef struct {
+ char *tent_name;
+ char *tent_descr;
+ int tent_type;
+} tstat_ent_t;
+
+extern tstat_ent_t *get_trap_ent(int);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __TRAPSTAT_DOT_H */
diff --git a/usr/src/cmd/trapstat/sun4/trapstat.c b/usr/src/cmd/trapstat/sun4/trapstat.c
index ec78a7f380..4a32fd9c0e 100644
--- a/usr/src/cmd/trapstat/sun4/trapstat.c
+++ b/usr/src/cmd/trapstat/sun4/trapstat.c
@@ -20,12 +20,9 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
+ * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -42,6 +39,7 @@
#include <sys/wait.h>
#include <stddef.h>
#include <termio.h>
+#include "_trapstat.h"
#define TSTAT_DEVICE "/dev/trapstat"
#define TSTAT_COMMAND "trapstat"
@@ -98,662 +96,17 @@ typedef struct tstat_sum {
double tsum_time;
} tstat_sum_t;
-#define TSTAT_ENT_USED 0
-#define TSTAT_ENT_RESERVED 1
-#define TSTAT_ENT_UNUSED 2
-#define TSTAT_ENT_CONTINUED 3
-
-typedef struct tstat_ent {
- char *tent_name;
- char *tent_descr;
- int tent_type;
-} tstat_ent_t;
-
-static tstat_ent_t g_traps[] = {
-#ifndef sun4v
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { "power-on", "power on reset" },
- { "watchdog", "watchdog reset" },
- { "xir", "externally initiated reset" },
- { "sir", "software initiated reset" },
- { "red", "RED state exception" },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { "immu-xcp", "instruction access exception" },
- { "immu-miss", "instruction access MMU miss" },
- { "immu-err", "instruction access error" },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { "ill-inst", "illegal instruction" },
- { "priv-inst", "privileged opcode" },
- { "unimp-ldd", "unimplemented LDD" },
- { "unimp-std", "unimplemented STD" },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { "fp-disabled", "fp disabled" },
- { "fp-ieee754", "fp exception ieee754" },
- { "fp-xcp-other", "fp exception other" },
- { "tag-oflow", "tag overflow" },
- { "cleanwin", "clean window" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "div-zero", "division by zero" },
- { "internal-err", "internal processor error" },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { "dmmu-xcp", "data access exception" },
- { "dmmu-miss", "data access MMU miss" },
- { "dmmu-err", "data access error" },
- { "dmmu-prot", "data access protection" },
- { "unalign", "mem address not aligned" },
- { "lddf-unalign", "LDDF mem address not aligned" },
- { "stdf-unalign", "STDF mem address not aligned" },
- { "priv-act", "privileged action" },
- { "ldqf-unalign", "LDQF mem address not aligned" },
- { "stqf-unalign", "STQF mem address not aligned" },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { "async-d-err", "async data error" },
- { "level-1", "interrupt level 1" },
- { "level-2", "interrupt level 2" },
- { "level-3", "interrupt level 3" },
- { "level-4", "interrupt level 4" },
- { "level-5", "interrupt level 5" },
- { "level-6", "interrupt level 6" },
- { "level-7", "interrupt level 7" },
- { "level-8", "interrupt level 8" },
- { "level-9", "interrupt level 9" },
- { "level-10", "interrupt level 10" },
- { "level-11", "interrupt level 11" },
- { "level-12", "interrupt level 12" },
- { "level-13", "interrupt level 13" },
- { "level-14", "interrupt level 14" },
- { "level-15", "interrupt level 15" },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { "int-vec", "interrupt vector" },
- { "pa-watch", "PA watchpoint" },
- { "va-watch", "VA watchpoint" },
- { "ecc-err", "corrected ECC error" },
- { "itlb-miss", "instruction access MMU miss" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "dtlb-miss", "data access MMU miss" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "dtlb-prot", "data access protection" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "fast-ecc", "fast ECC error" },
- { "dcache-parity", "D-cache parity error" },
- { "icache-parity", "I-cache parity error" },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
-#else /* sun4v */
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { "watchdog", "watchdog reset" },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { "immu-xcp", "instruction access exception" },
- { "immu-miss", "instruction access MMU miss" },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { "ill-inst", "illegal instruction" },
- { "priv-inst", "privileged opcode" },
- { "unimp-ldd", "unimplemented LDD" },
- { "unimp-std", "unimplemented STD" },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { "fp-disabled", "fp disabled" },
- { "fp-ieee754", "fp exception ieee754" },
- { "fp-xcp-other", "fp exception other" },
- { "tag-oflow", "tag overflow" },
- { "cleanwin", "clean window" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "div-zero", "division by zero" },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { "dmmu-xcp", "data access exception" },
- { "dmmu-miss", "data access MMU miss" },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { "dmmu-prot", "data access protection" },
- { "unalign", "mem address not aligned" },
- { "lddf-unalign", "LDDF mem address not aligned" },
- { "stdf-unalign", "STDF mem address not aligned" },
- { "priv-act", "privileged action" },
- { "ldqf-unalign", "LDQF mem address not aligned" },
- { "stqf-unalign", "STQF mem address not aligned" },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { "level-1", "interrupt level 1" },
- { "level-2", "interrupt level 2" },
- { "level-3", "interrupt level 3" },
- { "level-4", "interrupt level 4" },
- { "level-5", "interrupt level 5" },
- { "level-6", "interrupt level 6" },
- { "level-7", "interrupt level 7" },
- { "level-8", "interrupt level 8" },
- { "level-9", "interrupt level 9" },
- { "level-10", "interrupt level 10" },
- { "level-11", "interrupt level 11" },
- { "level-12", "interrupt level 12" },
- { "level-13", "interrupt level 13" },
- { "level-14", "interrupt level 14" },
- { "level-15", "interrupt level 15" },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { "pa-watch", "PA watchpoint" },
- { "va-watch", "VA watchpoint" },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { "itlb-miss", "instruction access MMU miss" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "dtlb-miss", "data access MMU miss" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "dtlb-prot", "data access protection" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { "ctl-xfer", "control transfer" },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { "instr-brkpt", "instruction breakpoint" },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { "hw-changed", "hardware changed" },
- { "cpu_mondo", "cpu mondo trap" },
- { "dev_mondo", "device mondo trap" },
- { "res-err", "resumable error" },
- { "nonres-err", "non-resumable error" },
-#endif /* sun4v */
- { "spill-0-normal", "spill 0 normal" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "spill-user-32", "spill user window, 32-bit" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "spill-user-64", "spill user window, 64-bit" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "spill-user-32-cln", "spill, clean user window, 32-bit" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "spill-user-64-cln", "spill, clean user window, 64-bit" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "spill-kern-32", "spill kernel window, 32-bit" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "spill-kern-64", "spill kernel window, 64-bit" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "spill-mixed", "spill window, mixed 32-bit/64-bit" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "spill-0-other", "spill 0 other" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "spill-asuser-32", "spill user window as kernel, 32-bit" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "spill-asuser-64", "spill user window as kernel, 64-bit" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "spill-asuser-32-cln", "spill, clean user window as kernel, 32-bit" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "spill-asuser-64-cln", "spill, clean user window as kernel, 64-bit" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "spill-5-other", "spill 5 other" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "spill-6-other", "spill 6 other" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "spill-7-other", "spill 7 other" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "fill-0-normal", "fill 0 normal" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "fill-user-32", "fill user window, 32-bit" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "fill-user-64", "fill user window, 64-bit" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "fill-user-32-cln", "fill user window, 32-bit" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "fill-user-64-cln", "fill user window, 64-bit" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "fill-kern-32", "fill kernel window, 32-bit" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "fill-kern-64", "fill kernel window, 64-bit" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "fill-mixed", "fill window, mixed 32-bit/64-bit" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "fill-0-other", "fill 0 other" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "fill-asuser-32", "fill user window as kernel, 32-bit" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "fill-asuser-64", "fill user window as kernel, 64-bit" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "fill-asuser-32-cln", "fill user window as kernel, 32-bit" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "fill-asuser-64-cln", "fill user window as kernel, 64-bit" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "fill-5-other", "fill 5 other" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "fill-6-other", "fill 6 other" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "fill-7-other", "fill 7 other" },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { NULL, NULL, TSTAT_ENT_CONTINUED },
- { "syscall-4x", "old system call" },
- { "usr-brkpt", "user breakpoint" },
- { "usr-div-zero", "user divide by zero" },
- { "flush-wins", "flush windows" },
- { "clean-wins", "clean windows" },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { "fix-align", "fix unaligned references" },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { "syscall-32", "ILP32 system call" },
- { "set-t0-addr", "set trap0 address" },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { "trap-inst-16", "trap instruction 16", },
- { "trap-inst-17", "trap instruction 17", },
- { "trap-inst-18", "trap instruction 18", },
- { "trap-inst-19", "trap instruction 19", },
- { "trap-inst-20", "trap instruction 20", },
- { "trap-inst-21", "trap instruction 21", },
- { "trap-inst-22", "trap instruction 22", },
- { "trap-inst-23", "trap instruction 23", },
- { "trap-inst-24", "trap instruction 24", },
- { "trap-inst-25", "trap instruction 25", },
- { "trap-inst-26", "trap instruction 26", },
- { "trap-inst-27", "trap instruction 27", },
- { "trap-inst-28", "trap instruction 28", },
- { "trap-inst-29", "trap instruction 29", },
- { "trap-inst-30", "trap instruction 30", },
- { "trap-inst-31", "trap instruction 31", },
- { "get-cc", "get condition codes" },
- { "set-cc", "set condition codes" },
- { "get-psr", "get psr" },
- { "set-psr", "set psr (some fields)" },
- { "getts", "get timestamp" },
- { "gethrvtime", "get lwp virtual time" },
- { "self-xcall", "self xcall" },
- { "gethrtime", "get hrestime" },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { "getlgrp", "get lgrpid" },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { "dtrace-pid", "DTrace pid provider" },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { "dtrace-return", "DTrace pid provider return" },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { "syscall-64", "LP64 system call" },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { "tt-freeze", "freeze traptrace" },
- { "tt-unfreeze", "unfreeze traptrace" },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { NULL, NULL, TSTAT_ENT_UNUSED },
- { "ptl1-panic", "test ptl1-panic" },
- { "kmdb-enter", "kmdb enter (L1-A)" },
- { "kmdb-brkpt", "kmdb breakpoint" },
- { "obp-brkpt", "obp breakpoint" },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED },
- { NULL, NULL, TSTAT_ENT_RESERVED }
-};
+/*
+ * Define a dummy g_traps reader to establish a symbol capabilities lead.
+ * This routine should never be called, as the sun4u and sun4v variants
+ * will be used as appropriate.
+ */
+/* ARGSUSED0 */
+tstat_ent_t *
+get_trap_ent(int ndx)
+{
+ return (NULL);
+}
static void
usage(void)
@@ -861,11 +214,16 @@ setup(void)
int i;
for (i = 0; i < TSTAT_NENT; i++) {
- if (g_traps[i].tent_type == TSTAT_ENT_RESERVED)
- g_traps[i].tent_name = "reserved";
+ tstat_ent_t *gtp;
+
+ if ((gtp = get_trap_ent(i)) == NULL)
+ continue;
+
+ if (gtp->tent_type == TSTAT_ENT_RESERVED)
+ gtp->tent_name = "reserved";
- if (g_traps[i].tent_type == TSTAT_ENT_UNUSED)
- g_traps[i].tent_name = "unused";
+ if (gtp->tent_type == TSTAT_ENT_UNUSED)
+ gtp->tent_name = "unused";
}
g_max_cpus = (processorid_t)sysconf(_SC_CPUID_MAX) + 1;
@@ -976,13 +334,18 @@ print_entries(FILE *stream, int parsable)
}
for (entno = 0; entno < TSTAT_NENT; entno++) {
- if (g_traps[entno].tent_type != TSTAT_ENT_USED)
+ tstat_ent_t *gtp;
+
+ if ((gtp = get_trap_ent(entno)) == NULL)
+ continue;
+
+ if (gtp->tent_type != TSTAT_ENT_USED)
continue;
(void) fprintf(stream, "0x%03x %3d %s%-20s %s%s\n",
entno, entno,
- parsable ? "" : "| ", g_traps[entno].tent_name,
- parsable ? "" : "| ", g_traps[entno].tent_descr);
+ parsable ? "" : "| ", gtp->tent_name,
+ parsable ? "" : "| ", gtp->tent_descr);
}
}
@@ -1003,10 +366,15 @@ select_entry(char *entry)
goto bad_entry;
} else {
for (entno = 0; entno < TSTAT_NENT; entno++) {
- if (g_traps[entno].tent_type != TSTAT_ENT_USED)
+ tstat_ent_t *gtp;
+
+ if ((gtp = get_trap_ent(entno)) == NULL)
continue;
- if (strcmp(entry, g_traps[entno].tent_name) == 0)
+ if (gtp->tent_type != TSTAT_ENT_USED)
+ continue;
+
+ if (strcmp(entry, gtp->tent_name) == 0)
break;
}
@@ -1560,10 +928,12 @@ print_stats(tstat_data_t *data, tstat_data_t *odata)
(void) printf("\n");
for (j = 0; j < TSTAT_NENT; j++) {
- if (!g_active[j])
+ tstat_ent_t *gtp;
+
+ if ((!g_active[j]) || ((gtp = get_trap_ent(j)) == NULL))
continue;
- (void) printf("%3x %-20s|", j, g_traps[j].tent_name);
+ (void) printf("%3x %-20s|", j, gtp->tent_name);
for (k = 0; k < i; k++) {
(void) printf(" %8lld", TSTAT_DELTA(&data[k],
&odata[data - base + k], tdata_traps[j]));
@@ -1585,12 +955,15 @@ parsable_stats(tstat_data_t *data, tstat_data_t *odata)
break;
for (i = 0; i < TSTAT_NENT; i++) {
- if (!data->tdata_traps[i] && !g_active[i])
+ tstat_ent_t *gtp;
+
+ if ((!data->tdata_traps[i] && !g_active[i]) ||
+ ((gtp = get_trap_ent(i)) == NULL))
continue;
(void) printf("%lld %d %x %s ",
data->tdata_snapts - g_start, data->tdata_cpuid, i,
- g_traps[i].tent_name);
+ gtp->tent_name);
(void) printf("%lld\n", TSTAT_DELTA(data, odata,
tdata_traps[i]));
diff --git a/usr/src/common/bignum/bignumimpl.c b/usr/src/common/bignum/bignumimpl.c
index fbd1511fd8..f241675464 100644
--- a/usr/src/common/bignum/bignumimpl.c
+++ b/usr/src/common/bignum/bignumimpl.c
@@ -2498,10 +2498,14 @@ big_modexp_crt(BIGNUM *result, BIGNUM *a, BIGNUM *dmodpminus1,
static BIG_CHUNK_TYPE onearr[1] = {(BIG_CHUNK_TYPE)1};
+#if !defined(NO_BIG_ONE)
BIGNUM big_One = {1, 1, 1, 0, onearr};
+#endif
static BIG_CHUNK_TYPE twoarr[1] = {(BIG_CHUNK_TYPE)2};
+#if !defined(NO_BIG_TWO)
BIGNUM big_Two = {1, 1, 1, 0, twoarr};
+#endif
static BIG_CHUNK_TYPE fourarr[1] = {(BIG_CHUNK_TYPE)4};
static BIGNUM big_Four = {1, 1, 1, 0, fourarr};
diff --git a/usr/src/lib/Makefile b/usr/src/lib/Makefile
index 53c33825eb..483d528754 100644
--- a/usr/src/lib/Makefile
+++ b/usr/src/lib/Makefile
@@ -273,7 +273,6 @@ i386_SUBDIRS= \
sparc_SUBDIRS= .WAIT \
efcode \
- libc_psr .WAIT \
libds \
libdscp \
libprtdiag .WAIT \
diff --git a/usr/src/lib/Makefile.lib b/usr/src/lib/Makefile.lib
index 6d244ae4b3..8abc86c8f8 100644
--- a/usr/src/lib/Makefile.lib
+++ b/usr/src/lib/Makefile.lib
@@ -155,8 +155,8 @@ SRCS= $(OBJECTS:%.o=$(SRCDIR)/%.c)
# default build of an archive and a shared object,
# overridden locally when extra processing is needed
BUILD.AR= $(AR) $(ARFLAGS) $@ $(AROBJS)
-BUILD.SO= $(CC) -o $@ $(GSHARED) $(DYNFLAGS) $(PICS) $(LDLIBS)
-BUILDCCC.SO= $(CCC) -o $@ $(GSHARED) $(DYNFLAGS) $(PICS) $(LDLIBS)
+BUILD.SO= $(CC) -o $@ $(GSHARED) $(DYNFLAGS) $(PICS) $(EXTPICS) $(LDLIBS)
+BUILDCCC.SO= $(CCC) -o $@ $(GSHARED) $(DYNFLAGS) $(PICS) $(EXTPICS) $(LDLIBS)
# default dynamic library symlink
# IMPORTANT:: If you change INS.liblink OR INS.liblink64 here, then you
diff --git a/usr/src/lib/Makefile.targ b/usr/src/lib/Makefile.targ
index 00e1d3946c..4769c64d54 100644
--- a/usr/src/lib/Makefile.targ
+++ b/usr/src/lib/Makefile.targ
@@ -19,10 +19,7 @@
# CDDL HEADER END
#
#
-# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -93,11 +90,11 @@ $(LIBRARY): objs .WAIT $$(OBJS)
$(DYNLIB): $$(MAPFILES)
-$(DYNLIB): pics .WAIT $$(PICS) $$(ALTPICS)
+$(DYNLIB): pics .WAIT $$(PICS) $$(ALTPICS) $$(EXTPICS)
$(BUILD.SO)
$(POST_PROCESS_SO)
-$(DYNLIBCCC): pics .WAIT $$(PICS) $$(ALTPICS)
+$(DYNLIBCCC): pics .WAIT $$(PICS) $$(ALTPICS) $$(EXTPICS)
$(BUILDCCC.SO)
$(POST_PROCESS_SO)
diff --git a/usr/src/lib/libc/Makefile b/usr/src/lib/libc/Makefile
index b4a5cf64b5..2bbe37202f 100644
--- a/usr/src/lib/libc/Makefile
+++ b/usr/src/lib/libc/Makefile
@@ -19,8 +19,7 @@
# CDDL HEADER END
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -73,8 +72,13 @@ VAR1_DYNLIB64 = $(LIBRARY:%.a=%_$(VAR1).so$(VERS))
VAR1_BLDDIR64 = $(MACH)_$(VAR1)/$(VARBLD64)
i386_VARIANTS= $(VAR1) $(VAR2) $(VAR3)
-sparc_VARIANTS= $(VAR1)
-sparcv9_VARIANTS= $(VAR1)
+sparc_VARIANTS=
+sparcv9_VARIANTS=
+
+i386_COMP=
+sparc_COMP= capabilities
+
+MACH_COMP= $($(MACH)_COMP)
i386_ETC= $(MACH)/etc
sparc_ETC=
@@ -85,7 +89,7 @@ VARIANT_SUBDIRS = $(VARIANTS:%=$(MACH)_%/$(VARBLD))
VARIANTS64= $($(MACH64)_VARIANTS)
VARIANT_SUBDIRS64 = $(VARIANTS64:%=$(MACH)_%/$(VARBLD64))
-SUBDIRS= $(MACH) $(MACH_ETC) $(VARIANT_SUBDIRS)
+SUBDIRS= $(MACH_CAP) $(MACH) $(MACH_ETC) $(VARIANT_SUBDIRS)
$(BUILD64)SUBDIRS += $(MACH64) $(VARIANT_SUBDIRS64)
LIBS = $(DYNLIB) $(LINTLIB)
@@ -140,7 +144,7 @@ check_i18n:
etc: $($(MACH)_ETC)
-lib32: $(MACHLIBS) $(MACH)/$(LIB_PIC) $(VARIANTLIBS)
+lib32: $(MACH_COMP) $(MACHLIBS) $(MACH)/$(LIB_PIC) $(VARIANTLIBS)
mkdir -p $(MACH)/i18n_pics
cd $(MACH)/i18n_pics ; $(AR) -x $(ROOTFS_LIBDIR)/libc_i18n.a
@if $(ELFDUMP) -r $(MACH)/$(DYNLIB) | $(GREP) -w environ ; then \
@@ -149,7 +153,7 @@ lib32: $(MACHLIBS) $(MACH)/$(LIB_PIC) $(VARIANTLIBS)
exit 1; \
fi
-lib64: $(MACHLIBS64) $(MACH64)/$(LIB_PIC) $(VARIANTLIBS64)
+lib64: $(MACH_COMP) $(MACHLIBS64) $(MACH64)/$(LIB_PIC) $(VARIANTLIBS64)
mkdir -p $(MACH64)/i18n_pics
cd $(MACH64)/i18n_pics ; $(AR) -x $(ROOTFS_LIBDIR64)/libc_i18n.a
@if $(ELFDUMP) -r $(MACH64)/$(DYNLIB) | $(GREP) -w environ ; then \
@@ -167,6 +171,9 @@ $(VARIANTLIBS64): FRC
$($(MACH)_ETC): FRC
@cd $(@); pwd; $(MAKE) $(TARGET)
+$($(MACH)_COMP): FRC
+ @cd $(@); pwd; $(MAKE) $(TARGET)
+
install: all \
etc \
inslib32 \
diff --git a/usr/src/lib/libc/amd64/Makefile b/usr/src/lib/libc/amd64/Makefile
index 73e3475822..2176c1da01 100644
--- a/usr/src/lib/libc/amd64/Makefile
+++ b/usr/src/lib/libc/amd64/Makefile
@@ -23,12 +23,12 @@
# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
#
-LIBCBASE=.
-
-LIBRARY= libc.a
-LIB_PIC= libc_pic.a
-VERS= .1
-CPP= /usr/lib/cpp
+LIBCBASE= .
+LIBCDIR= $(SRC)/lib/libc
+LIBRARY= libc.a
+LIB_PIC= libc_pic.a
+VERS= .1
+CPP= /usr/lib/cpp
TARGET_ARCH= amd64
# objects are grouped by source directory
@@ -297,7 +297,7 @@ SYSOBJS= \
# This macro should ALWAYS be empty; native APIs are already 'large file'.
PORTGEN64=
-# objects from source under ../port
+# objects from source under $(LIBCDIR)/port
PORTFP= \
__flt_decim.o \
__flt_rounds.o \
@@ -909,12 +909,12 @@ CFLAGS64 += $(XSTRCONST)
ALTPICS= $(TRACEOBJS:%=pics/%)
$(DYNLIB) := PICS += $(ROOTFS_LIBDIR64)/libc_i18n.a
-$(DYNLIB) := BUILD.SO = $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(ALTPICS)
+$(DYNLIB) := BUILD.SO = $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(ALTPICS) $(EXTPICS)
-MAPFILES = ../port/mapfile-vers
+MAPFILES = $(LIBCDIR)/port/mapfile-vers
CPPFLAGS= -D_REENTRANT -D$(MACH64) -D__$(MACH64) $(THREAD_DEBUG) \
- -I. -I$(LIBCBASE)/inc -I../inc $(CPPFLAGS.master) -I/usr/include
+ -I. -I$(LIBCBASE)/inc -I$(LIBCDIR)/inc $(CPPFLAGS.master)
ASFLAGS= $(AS_PICFLAGS) -P -D__STDC__ -D_ASM $(CPPFLAGS) \
$(amd64_AS_XARCH)
@@ -948,8 +948,8 @@ BUILD.AR= $(RM) $@ ; \
# extra files for the clean target
CLEANFILES= \
- ../port/gen/errlst.c \
- ../port/gen/new_list.c \
+ $(LIBCDIR)/port/gen/errlst.c \
+ $(LIBCDIR)/port/gen/new_list.c \
assym.h \
genassym \
crt/_rtld.s \
@@ -964,22 +964,22 @@ SRCS= \
$(ATOMICOBJS:%.o=$(SRC)/common/atomic/%.c) \
$(XATTROBJS:%.o=$(SRC)/common/xattr/%.c) \
$(COMOBJS:%.o=$(SRC)/common/util/%.c) \
- $(PORTFP:%.o=../port/fp/%.c) \
- $(PORTGEN:%.o=../port/gen/%.c) \
- $(PORTI18N:%.o=../port/i18n/%.c) \
- $(PORTPRINT:%.o=../port/print/%.c) \
- $(PORTREGEX:%.o=../port/regex/%.c) \
- $(PORTSTDIO:%.o=../port/stdio/%.c) \
- $(PORTSYS:%.o=../port/sys/%.c) \
- $(AIOOBJS:%.o=../port/aio/%.c) \
- $(RTOBJS:%.o=../port/rt/%.c) \
- $(TPOOLOBJS:%.o=../port/tpool/%.c) \
- $(THREADSOBJS:%.o=../port/threads/%.c) \
+ $(PORTFP:%.o=$(LIBCDIR)/port/fp/%.c) \
+ $(PORTGEN:%.o=$(LIBCDIR)/port/gen/%.c) \
+ $(PORTI18N:%.o=$(LIBCDIR)/port/i18n/%.c) \
+ $(PORTPRINT:%.o=$(LIBCDIR)/port/print/%.c) \
+ $(PORTREGEX:%.o=$(LIBCDIR)/port/regex/%.c) \
+ $(PORTSTDIO:%.o=$(LIBCDIR)/port/stdio/%.c) \
+ $(PORTSYS:%.o=$(LIBCDIR)/port/sys/%.c) \
+ $(AIOOBJS:%.o=$(LIBCDIR)/port/aio/%.c) \
+ $(RTOBJS:%.o=$(LIBCDIR)/port/rt/%.c) \
+ $(TPOOLOBJS:%.o=$(LIBCDIR)/port/tpool/%.c) \
+ $(THREADSOBJS:%.o=$(LIBCDIR)/port/threads/%.c) \
$(THREADSMACHOBJS:%.o=threads/%.c) \
$(UNICODEOBJS:%.o=$(SRC)/common/unicode/%.c) \
$(UNWINDMACHOBJS:%.o=unwind/%.c) \
$(FPOBJS:%.o=fp/%.c) \
- $(I386FPOBJS:%.o=../i386/fp/%.c) \
+ $(I386FPOBJS:%.o=$(LIBCDIR)/i386/fp/%.c) \
$(LIBCBASE)/gen/ecvt.c \
$(LIBCBASE)/gen/makectxt.c \
$(LIBCBASE)/gen/siginfolst.c \
@@ -1070,7 +1070,7 @@ $(PORTI18N_COND:%=pics/%) := \
all: $(LIBS) $(LIB_PIC)
-lint := CPPFLAGS += -I../$(MACH)/fp
+lint := CPPFLAGS += -I$(LIBCDIR)/$(MACH)/fp
lint := CPPFLAGS += -D_MSE_INT_H -D_LCONV_C99
lint := LINTFLAGS64 += -mn -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
@@ -1078,7 +1078,7 @@ lint:
@echo $(LINT.c) ... $(LDLIBS)
@$(LINT.c) $(SRCS) $(LDLIBS)
-$(LINTLIB):= SRCS=../port/llib-lc
+$(LINTLIB):= SRCS=$(LIBCDIR)/port/llib-lc
$(LINTLIB):= CPPFLAGS += -D_MSE_INT_H
$(LINTLIB):= LINTFLAGS64=-nvx -m64
@@ -1119,19 +1119,19 @@ CPPFLAGS.genassym = \
$(ENVCPPFLAGS1) $(ENVCPPFLAGS2) $(ENVCPPFLAGS3) $(ENVCPPFLAGS4)
genassym: $(GENASSYM_C)
- $(NATIVECC) -Iinc -I../inc $(CPPFLAGS.genassym) -o $@ $(GENASSYM_C)
+ $(NATIVECC) -Iinc -I$(LIBCDIR)/inc $(CPPFLAGS.genassym) -o $@ $(GENASSYM_C)
-OFFSETS = ../$(MACH)/offsets.in
+OFFSETS = $(LIBCDIR)/$(MACH)/offsets.in
assym.h: $(OFFSETS) genassym
$(OFFSETS_CREATE) <$(OFFSETS) >$@
./genassym >>$@
# derived C source and related explicit dependencies
-../port/gen/errlst.c + \
-../port/gen/new_list.c: ../port/gen/errlist ../port/gen/errlist.awk
- cd ../port/gen; pwd; $(AWK) -f errlist.awk < errlist
+$(LIBCDIR)/port/gen/errlst.c + \
+$(LIBCDIR)/port/gen/new_list.c: $(LIBCDIR)/port/gen/errlist $(LIBCDIR)/port/gen/errlist.awk
+ cd $(LIBCDIR)/port/gen; pwd; $(AWK) -f errlist.awk < errlist
-pics/errlst.o: ../port/gen/errlst.c
+pics/errlst.o: $(LIBCDIR)/port/gen/errlst.c
-pics/new_list.o: ../port/gen/new_list.c
+pics/new_list.o: $(LIBCDIR)/port/gen/new_list.c
diff --git a/usr/src/lib/libc/capabilities/Makefile b/usr/src/lib/libc/capabilities/Makefile
new file mode 100644
index 0000000000..ab390454fd
--- /dev/null
+++ b/usr/src/lib/libc/capabilities/Makefile
@@ -0,0 +1,55 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+include $(SRC)/Makefile.master
+
+# Each target directory is responsible for making a symbol capabilities object.
+$(SPARC_BLD)SUBDIRS = \
+ sun4u \
+ sun4u-opl \
+ sun4u-us3-hwcap1 \
+ sun4u-us3-hwcap2 \
+ sun4v-hwcap1 \
+ sun4v-hwcap2
+$(INTEL_BLD)SUBDIRS =
+
+all := TARGET= all
+clean := TARGET= clean
+clobber := TARGET= clobber
+install := TARGET= install
+
+.KEEP_STATE:
+
+.PARALLEL: $(SUBDIRS)
+
+all clean clobber install: \
+ $(SUBDIRS)
+
+lint:
+
+$(SUBDIRS): FRC
+ @cd $@; pwd; $(MAKE) $(TARGET)
+
+FRC:
diff --git a/usr/src/lib/libc/capabilities/Makefile.com b/usr/src/lib/libc/capabilities/Makefile.com
new file mode 100644
index 0000000000..76f6d38661
--- /dev/null
+++ b/usr/src/lib/libc/capabilities/Makefile.com
@@ -0,0 +1,34 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+include $(SRC)/lib/Makefile.lib
+
+MAPFILE-CAP = ../common/mapfile-cap
+MAPOPT-CAP = $(MAPFILE-CAP:%=-M%)
+
+OBJCAP = pics/objcap.o
+SYMCAP = pics/symcap.o
+
+CLOBBERFILES += $(OBJCAP) $(SYMCAP)
diff --git a/usr/src/cmd/trapstat/sun4u/Makefile b/usr/src/lib/libc/capabilities/Makefile.targ
index 69c6a6d15f..c2c6951f0d 100644
--- a/usr/src/cmd/trapstat/sun4u/Makefile
+++ b/usr/src/lib/libc/capabilities/Makefile.targ
@@ -18,49 +18,36 @@
#
# CDDL HEADER END
#
+
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
#
-PLATFORM = sun4u
-PLATLINKS =
-CLASS = 32
-SRCDIR=../sun4
-
-include ../../Makefile.cmd
-include ../../../Makefile.psm
-
-PROG= trapstat
-OBJS= trapstat.o
-SRCS= $(OBJS:%.o=$(SRCDIR)/%.c)
-
-CFLAGS += $(CCVERBOSE)
-IFLAGS = -I$(USR_PSM_INCL_DIR)
-CPPFLAGS += $(IFLAGS) $(ARCHOPTS)
-LINTFLAGS += $(LDLIBS) -u
-
-FILEMODE= 0555
-
-CLEANFILES += $(OBJS)
+$(SYMCAP): $(OBJCAP)
+$(OBJCAP): $(PICS)
+$(PICS): pics
-%.o : $(SRCDIR)/%.c
- $(COMPILE.c) $<
+# Assemble the original source file.
-.KEEP_STATE:
+pics/%.o: ../../$(TRG_PLATFORM)/common/%.s
+ $(COMPILE.s) $< -o $@
+ $(POST_PROCESS_O)
-all: $(PROG)
+pics/%.o: ../../$(ALT_PLATFORM)/common/%.s
+ $(COMPILE.s) $< -o $@
+ $(POST_PROCESS_O)
-install: all $(USR_PSM_SBIN_PROG) $(USR_PSM_SBIN_PROG_LINKS)
+# Combine all pic objects into one relocatable object. Assign any capabilities
+# to this object, and define the interface.
-$(PROG): $(OBJS)
- $(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS)
- $(POST_PROCESS)
+pics/objcap.o: $(PICS) $(MAPFILE-CAP)
+ $(LD) -r -o $@ $(MAPOPT-CAP) -Breduce $(PICS)
+ $(POST_PROCESS_OBJCAP_O)
-clean:
- -$(RM) $(CLEANFILES)
+# Convert the combined object capabilities object into a symbol capabilities
+# object.
-lint: lint_SRCS
+pics/symcap.o: $(OBJCAP)
+ $(LD) -r -o $@ -z symbolcap $(OBJCAP)
-include ../../Makefile.targ
-include ../../../Makefile.psm.targ
+include ../../../Makefile.targ
diff --git a/usr/src/lib/libmd/sun4v/Makefile b/usr/src/lib/libc/capabilities/sun4u-opl/Makefile
index b65f30de75..247f7c3456 100644
--- a/usr/src/lib/libmd/sun4v/Makefile
+++ b/usr/src/lib/libc/capabilities/sun4u-opl/Makefile
@@ -18,29 +18,28 @@
#
# CDDL HEADER END
#
-# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
#
-# ident "%Z%%M% %I% %E% SMI"
-include $(SRC)/Makefile.master
+include $(SRC)/lib/Makefile.lib
-SUBDIRS= $(MACH)
-$(BUILD64)SUBDIRS += $(MACH64)
+SUBDIRS = $(MACH) $(BUILD64) $(MACH64)
all := TARGET= all
clean := TARGET= clean
clobber := TARGET= clobber
-lint := TARGET= lint
install := TARGET= install
.KEEP_STATE:
-.PARALLEL: $(MACH) $(MACH64)
+all clean clobber install: \
+ $(SUBDIRS)
-all clean clobber lint install: $(SUBDIRS)
+lint:
-$(MACH) $(MACH64): FRC
- @cd $@; pwd; $(MAKE) $(TARGET)
+$(SUBDIRS): FRC
+ @cd $@; pwd; $(MAKE) $(TARGET)
FRC:
diff --git a/usr/src/lib/libc/capabilities/sun4u-opl/Makefile.com b/usr/src/lib/libc/capabilities/sun4u-opl/Makefile.com
new file mode 100644
index 0000000000..0080c16a0e
--- /dev/null
+++ b/usr/src/lib/libc/capabilities/sun4u-opl/Makefile.com
@@ -0,0 +1,40 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+TRG_PLATFORM = sun4u-opl
+ALT_PLATFORM = sun4u-us3
+GEN_PLATFORM = sun4u
+
+include ../../Makefile.com
+
+OBJECTS = memcpy.o memset.o memcmp.o
+
+include $(SRC)/lib/Makefile.lib
+
+IFLAGS = -I$(SRC)/uts/$(GEN_PLATFORM) \
+ -I$(ROOT)/usr/platform/$(GEN_PLATFORM)/include
+
+AS_CPPFLAGS += -D__STDC__ -D_ASM -DPIC -D_REENTRANT -D$(MACH) $(IFLAGS)
+ASFLAGS = -P -K pic
diff --git a/usr/src/lib/libc/capabilities/sun4u-opl/common/mapfile-cap b/usr/src/lib/libc/capabilities/sun4u-opl/common/mapfile-cap
new file mode 100644
index 0000000000..56e55edf0a
--- /dev/null
+++ b/usr/src/lib/libc/capabilities/sun4u-opl/common/mapfile-cap
@@ -0,0 +1,42 @@
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+$mapfile_version 2
+
+CAPABILITY sun4u-opl {
+ PLATFORM = "SUNW,SPARC-Enterprise";
+};
+
+SYMBOL_SCOPE {
+ global:
+ _memcmp;
+ _memcpy;
+ _memmove;
+ _memset;
+ memcmp;
+ memcpy;
+ memmove;
+ memset;
+ local:
+ *;
+};
diff --git a/usr/src/lib/libc_psr/sun4u-opl/common/memcpy.s b/usr/src/lib/libc/capabilities/sun4u-opl/common/memcpy.s
index 868d21f845..d7fe66ef94 100644
--- a/usr/src/lib/libc_psr/sun4u-opl/common/memcpy.s
+++ b/usr/src/lib/libc/capabilities/sun4u-opl/common/memcpy.s
@@ -20,8 +20,7 @@
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
+ * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
*/
.file "memcpy.s"
diff --git a/usr/src/lib/libc/capabilities/sun4u-opl/sparc/Makefile b/usr/src/lib/libc/capabilities/sun4u-opl/sparc/Makefile
new file mode 100644
index 0000000000..24e4b7974f
--- /dev/null
+++ b/usr/src/lib/libc/capabilities/sun4u-opl/sparc/Makefile
@@ -0,0 +1,34 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+include ../Makefile.com
+
+ASFLAGS += -xarch=v8plusb
+
+.KEEP_STATE:
+
+all install: $(SYMCAP)
+
+include ../../Makefile.targ
diff --git a/usr/src/lib/libc/capabilities/sun4u-opl/sparcv9/Makefile b/usr/src/lib/libc/capabilities/sun4u-opl/sparcv9/Makefile
new file mode 100644
index 0000000000..f63ba3e06c
--- /dev/null
+++ b/usr/src/lib/libc/capabilities/sun4u-opl/sparcv9/Makefile
@@ -0,0 +1,36 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+include ../Makefile.com
+include $(SRC)/lib/Makefile.lib.64
+
+.KEEP_STATE:
+
+AS_CPPFLAGS += -D__sparcv9
+ASFLAGS += -xarch=v9b
+
+all install: $(SYMCAP)
+
+include ../../Makefile.targ
diff --git a/usr/src/lib/libmd/sun4u/Makefile b/usr/src/lib/libc/capabilities/sun4u-us3-hwcap1/Makefile
index b65f30de75..77aed04fa7 100644
--- a/usr/src/lib/libmd/sun4u/Makefile
+++ b/usr/src/lib/libc/capabilities/sun4u-us3-hwcap1/Makefile
@@ -18,29 +18,30 @@
#
# CDDL HEADER END
#
-# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
#
-# ident "%Z%%M% %I% %E% SMI"
-include $(SRC)/Makefile.master
+include $(SRC)/lib/Makefile.lib
-SUBDIRS= $(MACH)
-$(BUILD64)SUBDIRS += $(MACH64)
+SUBDIRS = $(MACH) $(BUILD64) $(MACH64)
all := TARGET= all
clean := TARGET= clean
clobber := TARGET= clobber
-lint := TARGET= lint
install := TARGET= install
.KEEP_STATE:
-.PARALLEL: $(MACH) $(MACH64)
+.PARALLEL: $(SUBDIRS)
+
+all clean clobber install: \
+ $(SUBDIRS)
-all clean clobber lint install: $(SUBDIRS)
+lint:
-$(MACH) $(MACH64): FRC
- @cd $@; pwd; $(MAKE) $(TARGET)
+$(SUBDIRS): FRC
+ @cd $@; pwd; $(MAKE) $(TARGET)
FRC:
diff --git a/usr/src/lib/pkcs11/libsoftcrypto/sun4u/sparc/Makefile b/usr/src/lib/libc/capabilities/sun4u-us3-hwcap1/Makefile.com
index a3d0363d6d..b459a6ac2d 100644
--- a/usr/src/lib/pkcs11/libsoftcrypto/sun4u/sparc/Makefile
+++ b/usr/src/lib/libc/capabilities/sun4u-us3-hwcap1/Makefile.com
@@ -20,24 +20,23 @@
#
#
-# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
#
-#
-# lib/pkcs11/libsoftcrypto/sun4u/sparc/Makefile
-#
+TRG_PLATFORM = sun4u-us3
+GEN_PLATFORM = sun4u
-CLASS = 32
+include ../../Makefile.com
-include ../Makefile.com
+OBJECTS = memcpy.o memset.o memcmp.o
-ASFLAGS += -xarch=v8plus
-LINTFLAGS += -D$(PLATFORM) -erroff=E_STATIC_UNUSED
+include $(SRC)/lib/Makefile.lib
-install: all $(SOFT_PSR_LINKS) $(USR_PSM_LIBS)
+IFLAGS = -I$(SRC)/uts/$(GEN_PLATFORM) \
+ -I$(ROOT)/usr/platform/$(GEN_PLATFORM)/include
-include $(SRC)/Makefile.psm.targ
+MAPFILE-CAP += ../../$(TRG_PLATFORM)/common/mapfile-cap
-pics/mont_mulf_asm.o: $(BIGNUM_DIR)/sun4u/mont_mulf_v8plus.s
- $(COMPILE.s) -o $@ $(BIGNUM_DIR)/sun4u/mont_mulf_v8plus.s
- $(POST_PROCESS_O)
+AS_CPPFLAGS += -D__STDC__ -D_ASM -DPIC -D_REENTRANT -D$(MACH) $(IFLAGS) \
+ -DBSTORE_SIZE=256
+ASFLAGS = -P -K pic
diff --git a/usr/src/lib/libc/capabilities/sun4u-us3-hwcap1/common/mapfile-cap b/usr/src/lib/libc/capabilities/sun4u-us3-hwcap1/common/mapfile-cap
new file mode 100644
index 0000000000..1504f5aa3e
--- /dev/null
+++ b/usr/src/lib/libc/capabilities/sun4u-us3-hwcap1/common/mapfile-cap
@@ -0,0 +1,40 @@
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+$mapfile_version 2
+
+CAPABILITY sun4u-us3-hwcap1;
+
+SYMBOL_SCOPE {
+ global:
+ _memcmp;
+ _memcpy;
+ _memmove;
+ _memset;
+ memcmp;
+ memmove;
+ memcpy;
+ memset;
+ local:
+ *;
+};
diff --git a/usr/src/lib/libc/capabilities/sun4u-us3-hwcap1/sparc/Makefile b/usr/src/lib/libc/capabilities/sun4u-us3-hwcap1/sparc/Makefile
new file mode 100644
index 0000000000..24e4b7974f
--- /dev/null
+++ b/usr/src/lib/libc/capabilities/sun4u-us3-hwcap1/sparc/Makefile
@@ -0,0 +1,34 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+include ../Makefile.com
+
+ASFLAGS += -xarch=v8plusb
+
+.KEEP_STATE:
+
+all install: $(SYMCAP)
+
+include ../../Makefile.targ
diff --git a/usr/src/lib/libc/capabilities/sun4u-us3-hwcap1/sparcv9/Makefile b/usr/src/lib/libc/capabilities/sun4u-us3-hwcap1/sparcv9/Makefile
new file mode 100644
index 0000000000..f63ba3e06c
--- /dev/null
+++ b/usr/src/lib/libc/capabilities/sun4u-us3-hwcap1/sparcv9/Makefile
@@ -0,0 +1,36 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+include ../Makefile.com
+include $(SRC)/lib/Makefile.lib.64
+
+.KEEP_STATE:
+
+AS_CPPFLAGS += -D__sparcv9
+ASFLAGS += -xarch=v9b
+
+all install: $(SYMCAP)
+
+include ../../Makefile.targ
diff --git a/usr/src/lib/pkcs11/libsoftcrypto/sun4u/Makefile b/usr/src/lib/libc/capabilities/sun4u-us3-hwcap2/Makefile
index 3415b4dee3..77aed04fa7 100644
--- a/usr/src/lib/pkcs11/libsoftcrypto/sun4u/Makefile
+++ b/usr/src/lib/libc/capabilities/sun4u-us3-hwcap2/Makefile
@@ -18,29 +18,30 @@
#
# CDDL HEADER END
#
+
#
-# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# lib/pkcs11/libsoftcrypto/sun4u/Makefile
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
#
-include $(SRC)/lib/Makefile.lib
+include $(SRC)/lib/Makefile.lib
-SUBDIRS = sparc sparcv9
+SUBDIRS = $(MACH) $(BUILD64) $(MACH64)
all := TARGET= all
-check := TARGET= check
clean := TARGET= clean
clobber := TARGET= clobber
install := TARGET= install
-lint := TARGET= lint
-.PARALLEL: $(SUBDIRS)
+.KEEP_STATE:
+
+.PARALLEL: $(SUBDIRS)
+
+all clean clobber install: \
+ $(SUBDIRS)
-all check clean clobber install lint: $(SUBDIRS)
+lint:
-$(SUBDIRS): FRC
- @cd $@; pwd; $(MAKE) $(TARGET)
+$(SUBDIRS): FRC
+ @cd $@; pwd; $(MAKE) $(TARGET)
FRC:
diff --git a/usr/src/lib/libc/capabilities/sun4u-us3-hwcap2/Makefile.com b/usr/src/lib/libc/capabilities/sun4u-us3-hwcap2/Makefile.com
new file mode 100644
index 0000000000..039b50259c
--- /dev/null
+++ b/usr/src/lib/libc/capabilities/sun4u-us3-hwcap2/Makefile.com
@@ -0,0 +1,42 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+TRG_PLATFORM = sun4u-us3
+GEN_PLATFORM = sun4u
+
+include ../../Makefile.com
+
+OBJECTS = memcpy.o memset.o memcmp.o
+
+include $(SRC)/lib/Makefile.lib
+
+IFLAGS = -I$(SRC)/uts/$(GEN_PLATFORM) \
+ -I$(ROOT)/usr/platform/$(GEN_PLATFORM)/include
+
+MAPFILE-CAP += ../../$(TRG_PLATFORM)/common/mapfile-cap
+
+AS_CPPFLAGS += -D__STDC__ -D_ASM -DPIC -D_REENTRANT -D$(MACH) $(IFLAGS) \
+ -DBSTORE_SIZE=65536 -DPANTHER_ONLY
+ASFLAGS = -P -K pic
diff --git a/usr/src/lib/libc/capabilities/sun4u-us3-hwcap2/common/mapfile-cap b/usr/src/lib/libc/capabilities/sun4u-us3-hwcap2/common/mapfile-cap
new file mode 100644
index 0000000000..ab216cd660
--- /dev/null
+++ b/usr/src/lib/libc/capabilities/sun4u-us3-hwcap2/common/mapfile-cap
@@ -0,0 +1,42 @@
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+$mapfile_version 2
+
+CAPABILITY sun4u-us3-hwcap2 {
+ HW += POPC;
+};
+
+SYMBOL_SCOPE {
+ global:
+ _memcmp;
+ _memcpy;
+ _memmove;
+ _memset;
+ memcmp;
+ memcpy;
+ memmove;
+ memset;
+ local:
+ *;
+};
diff --git a/usr/src/lib/libc/capabilities/sun4u-us3-hwcap2/sparc/Makefile b/usr/src/lib/libc/capabilities/sun4u-us3-hwcap2/sparc/Makefile
new file mode 100644
index 0000000000..24e4b7974f
--- /dev/null
+++ b/usr/src/lib/libc/capabilities/sun4u-us3-hwcap2/sparc/Makefile
@@ -0,0 +1,34 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+include ../Makefile.com
+
+ASFLAGS += -xarch=v8plusb
+
+.KEEP_STATE:
+
+all install: $(SYMCAP)
+
+include ../../Makefile.targ
diff --git a/usr/src/lib/libc/capabilities/sun4u-us3-hwcap2/sparcv9/Makefile b/usr/src/lib/libc/capabilities/sun4u-us3-hwcap2/sparcv9/Makefile
new file mode 100644
index 0000000000..a9f2809937
--- /dev/null
+++ b/usr/src/lib/libc/capabilities/sun4u-us3-hwcap2/sparcv9/Makefile
@@ -0,0 +1,36 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+include ../Makefile.com
+include $(SRC)/lib/Makefile.lib.64
+
+.KEEPS_STATE:
+
+AS_CPPFLAGS += -D__sparcv9
+ASFLAGS += -xarch=v9b
+
+all install: $(SYMCAP)
+
+include ../../Makefile.targ
diff --git a/usr/src/lib/libc/capabilities/sun4u-us3/common/mapfile-cap b/usr/src/lib/libc/capabilities/sun4u-us3/common/mapfile-cap
new file mode 100644
index 0000000000..987347dd94
--- /dev/null
+++ b/usr/src/lib/libc/capabilities/sun4u-us3/common/mapfile-cap
@@ -0,0 +1,66 @@
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+$mapfile_version 2
+
+CAPABILITY {
+ PLATFORM = "SUNW,A70";
+ PLATFORM += "SUNW,Netra-210";
+ PLATFORM += "SUNW,Netra-240";
+ PLATFORM += "SUNW,Netra-440";
+ PLATFORM += "SUNW,Netra-CP3010";
+ PLATFORM += "SUNW,Netra-T12";
+ PLATFORM += "SUNW,Netra-T4";
+ PLATFORM += "SUNW,Sun-Blade-1000";
+ PLATFORM += "SUNW,Sun-Blade-1500";
+ PLATFORM += "SUNW,Sun-Blade-2500";
+ PLATFORM += "SUNW,Sun-Fire-15000";
+ PLATFORM += "SUNW,Sun-Fire-280R";
+ PLATFORM += "SUNW,Sun-Fire-480R";
+ PLATFORM += "SUNW,Sun-Fire-880";
+ PLATFORM += "SUNW,Sun-Fire-V210";
+ PLATFORM += "SUNW,Sun-Fire-V215";
+ PLATFORM += "SUNW,Sun-Fire-V240";
+ PLATFORM += "SUNW,Sun-Fire-V245";
+ PLATFORM += "SUNW,Sun-Fire-V250";
+ PLATFORM += "SUNW,Sun-Fire-V440";
+ PLATFORM += "SUNW,Sun-Fire-V445";
+ PLATFORM += "SUNW,Sun-Fire-V490";
+ PLATFORM += "SUNW,Sun-Fire-V890";
+ PLATFORM += "SUNW,Sun-Fire";
+ MACHINE = sun4u;
+};
+
+SYMBOL_SCOPE {
+ global:
+ _memcmp;
+ _memcpy;
+ _memmove;
+ _memset;
+ memcmp;
+ memcpy;
+ memmove;
+ memset;
+ local:
+ *;
+};
diff --git a/usr/src/lib/libc_psr/sun4u-us3/common/memcmp.s b/usr/src/lib/libc/capabilities/sun4u-us3/common/memcmp.s
index 96c92e922a..fbbb3d6fb8 100644
--- a/usr/src/lib/libc_psr/sun4u-us3/common/memcmp.s
+++ b/usr/src/lib/libc/capabilities/sun4u-us3/common/memcmp.s
@@ -20,8 +20,7 @@
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
+ * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
*/
.file "memcmp.s"
diff --git a/usr/src/lib/libc_psr/sun4u-us3/common/memcpy.s b/usr/src/lib/libc/capabilities/sun4u-us3/common/memcpy.s
index 83206bf1dc..5b8bbff7cc 100644
--- a/usr/src/lib/libc_psr/sun4u-us3/common/memcpy.s
+++ b/usr/src/lib/libc/capabilities/sun4u-us3/common/memcpy.s
@@ -20,8 +20,7 @@
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
+ * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
*/
.file "memcpy.s"
diff --git a/usr/src/lib/libc_psr/sun4u-us3/common/memset.s b/usr/src/lib/libc/capabilities/sun4u-us3/common/memset.s
index c154528dd0..50139ee067 100644
--- a/usr/src/lib/libc_psr/sun4u-us3/common/memset.s
+++ b/usr/src/lib/libc/capabilities/sun4u-us3/common/memset.s
@@ -20,8 +20,7 @@
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
+ * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
*/
.file "memset.s"
diff --git a/usr/src/lib/libc/capabilities/sun4u/Makefile b/usr/src/lib/libc/capabilities/sun4u/Makefile
new file mode 100644
index 0000000000..77aed04fa7
--- /dev/null
+++ b/usr/src/lib/libc/capabilities/sun4u/Makefile
@@ -0,0 +1,47 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+include $(SRC)/lib/Makefile.lib
+
+SUBDIRS = $(MACH) $(BUILD64) $(MACH64)
+
+all := TARGET= all
+clean := TARGET= clean
+clobber := TARGET= clobber
+install := TARGET= install
+
+.KEEP_STATE:
+
+.PARALLEL: $(SUBDIRS)
+
+all clean clobber install: \
+ $(SUBDIRS)
+
+lint:
+
+$(SUBDIRS): FRC
+ @cd $@; pwd; $(MAKE) $(TARGET)
+
+FRC:
diff --git a/usr/src/lib/libc_psr/sun4u-opl/sparc/Makefile b/usr/src/lib/libc/capabilities/sun4u/Makefile.com
index 5e5962bf76..0d8a28bfa1 100644
--- a/usr/src/lib/libc_psr/sun4u-opl/sparc/Makefile
+++ b/usr/src/lib/libc/capabilities/sun4u/Makefile.com
@@ -18,44 +18,29 @@
#
# CDDL HEADER END
#
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-
#
-# Platform specific Makefile for libc_psr.
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
#
-PLATFORM = sun4u-opl
-COMPAT_PLAT = sun4u-us3
-CLASS = 32
-
-OBJECTS = memcpy.o memset.o memcmp.o
-
-include ../Makefile.com
-
-MAPFILES = ../../sun4u/mapfile-vers $(MAPFILE.FLT)
-
-ASFLAGS += -xarch=v8plusb
-
-# Redefine shared object build rule to use $(LD) directly (this avoids .init
-# and .fini sections being added).
+TRG_PLATFORM = sun4u
+GEN_PLATFORM = sun4u
-BUILD.SO= $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(LDLIBS)
+include ../../Makefile.com
-.KEEP_STATE:
+OBJECTS = memcpy.o memset.o memcmp.o
-MODULE = libc_psr.so.1
-LIBC_PSR_DIR = $(ROOT_PSM_LIB_DIR)
-LIBC_PSR_LIB = $(LIBC_PSR_DIR)/$(MODULE)
+include $(SRC)/lib/Makefile.lib
-$(LIBC_PSR_DIRS):
- -$(INS.dir)
+IFLAGS = -I$(SRC)/uts/$(GEN_PLATFORM) \
+ -I$(ROOT)/usr/platform/$(GEN_PLATFORM)/include
-all: $(LIBS)
+AS_CPPFLAGS += -D__STDC__ -D_ASM -DPIC -D_REENTRANT -D$(MACH) $(IFLAGS)
+ASFLAGS = -P -K pic
-install: all $(LIBC_PSR_DIR) $(ROOT_PSM_LIBS)
+# memcpy.s provides __align_cpy_1 as an alias for memcpy. However, this isn't
+# a WEAK symbol, and hence ld(1)'s ability to cull duplicate local symbols with
+# the same address is compromised. The result is .SUNW_dynsymsort: duplicate
+# symbol errors from check_rtime. Use elfedit to assign a weak binding.
-include ../../Makefile.targ
+POST_PROCESS_OBJCAP_O = elfedit -e "sym:st_bind __align_cpy_1 STB_WEAK" $@
diff --git a/usr/src/lib/libc/capabilities/sun4u/common/mapfile-cap b/usr/src/lib/libc/capabilities/sun4u/common/mapfile-cap
new file mode 100644
index 0000000000..e2f6a94efc
--- /dev/null
+++ b/usr/src/lib/libc/capabilities/sun4u/common/mapfile-cap
@@ -0,0 +1,43 @@
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+$mapfile_version 2
+
+CAPABILITY sun4u {
+ MACHINE = sun4u;
+};
+
+SYMBOL_SCOPE {
+ global:
+ __align_cpy_1;
+ _memcmp;
+ _memcpy;
+ _memmove;
+ _memset;
+ memcmp;
+ memcpy;
+ memmove;
+ memset;
+ local:
+ *;
+};
diff --git a/usr/src/lib/libc_psr/sun4u/common/memcmp.s b/usr/src/lib/libc/capabilities/sun4u/common/memcmp.s
index e7691174ae..77b1d294cc 100644
--- a/usr/src/lib/libc_psr/sun4u/common/memcmp.s
+++ b/usr/src/lib/libc/capabilities/sun4u/common/memcmp.s
@@ -20,8 +20,7 @@
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
+ * Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
*/
.file "memcmp.s"
diff --git a/usr/src/lib/libc_psr/sun4u/common/memcpy.s b/usr/src/lib/libc/capabilities/sun4u/common/memcpy.s
index 54f812696a..42cd4ce658 100644
--- a/usr/src/lib/libc_psr/sun4u/common/memcpy.s
+++ b/usr/src/lib/libc/capabilities/sun4u/common/memcpy.s
@@ -20,8 +20,7 @@
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
+ * Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
*/
.file "memcpy.s"
diff --git a/usr/src/lib/libc_psr/sun4u/common/memset.s b/usr/src/lib/libc/capabilities/sun4u/common/memset.s
index 5a99e6bf96..eaf39a72f6 100644
--- a/usr/src/lib/libc_psr/sun4u/common/memset.s
+++ b/usr/src/lib/libc/capabilities/sun4u/common/memset.s
@@ -20,8 +20,7 @@
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
+ * Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
*/
.file "memset.s"
diff --git a/usr/src/lib/libc/capabilities/sun4u/sparc/Makefile b/usr/src/lib/libc/capabilities/sun4u/sparc/Makefile
new file mode 100644
index 0000000000..9fa9433eac
--- /dev/null
+++ b/usr/src/lib/libc/capabilities/sun4u/sparc/Makefile
@@ -0,0 +1,34 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+include ../Makefile.com
+
+ASFLAGS += -xarch=v8plusa -warn
+
+.KEEP_STATE:
+
+all install: $(SYMCAP)
+
+include ../../Makefile.targ
diff --git a/usr/src/lib/libc/capabilities/sun4u/sparcv9/Makefile b/usr/src/lib/libc/capabilities/sun4u/sparcv9/Makefile
new file mode 100644
index 0000000000..f989107e59
--- /dev/null
+++ b/usr/src/lib/libc/capabilities/sun4u/sparcv9/Makefile
@@ -0,0 +1,36 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+include ../Makefile.com
+include $(SRC)/lib/Makefile.lib.64
+
+.KEEP_STATE:
+
+AS_CPPFLAGS += -D__sparcv9
+ASFLAGS += -xarch=v9a
+
+all install: $(SYMCAP)
+
+include ../../Makefile.targ
diff --git a/usr/src/lib/libc/capabilities/sun4v-hwcap1/Makefile b/usr/src/lib/libc/capabilities/sun4v-hwcap1/Makefile
new file mode 100644
index 0000000000..a23938e6d9
--- /dev/null
+++ b/usr/src/lib/libc/capabilities/sun4v-hwcap1/Makefile
@@ -0,0 +1,46 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+include $(SRC)/lib/Makefile.lib
+
+SUBDIRS = $(MACH) $(BUILD64) $(MACH64)
+
+all := TARGET= all
+clean := TARGET= clean
+clobber := TARGET= clobber
+install := TARGET= install
+
+.KEEP_STATE:
+
+.PARALLEL: $(SUBDIRS)
+
+all clean clobber install: \
+ $(SUBDIRS)
+
+lint:
+
+$(SUBDIRS): FRC
+ @cd $@; pwd; $(MAKE) $(TARGET)
+
+FRC:
diff --git a/usr/src/cmd/trapstat/sun4v/Makefile b/usr/src/lib/libc/capabilities/sun4v-hwcap1/Makefile.com
index 928139e603..858fd7dda5 100644
--- a/usr/src/cmd/trapstat/sun4v/Makefile
+++ b/usr/src/lib/libc/capabilities/sun4v-hwcap1/Makefile.com
@@ -18,49 +18,30 @@
#
# CDDL HEADER END
#
+
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
#
-PLATFORM = sun4v
-PLATLINKS =
-CLASS = 32
-SRCDIR=../sun4
-
-include ../../Makefile.cmd
-include ../../../Makefile.psm
-
-PROG= trapstat
-OBJS= trapstat.o
-SRCS= $(OBJS:%.o=$(SRCDIR)/%.c)
-
-CFLAGS += -v -Dsun4v
-IFLAGS = -I$(USR_PSM_INCL_DIR)
-CPPFLAGS += $(IFLAGS) $(ARCHOPTS) -Dsun4v
-LINTFLAGS += $(LDLIBS) -u
-
-FILEMODE= 0555
-
-CLEANFILES += $(OBJS)
-
-%.o : $(SRCDIR)/%.c
- $(COMPILE.c) $<
+TRG_PLATFORM = sun4v
+GEN_PLATFORM = sun4v
-.KEEP_STATE:
+include ../../Makefile.com
-all: $(PROG)
+OBJECTS = memcpy.o memset.o
-install: all $(USR_PSM_SBIN_PROG) $(USR_PSM_SBIN_PROG_LINKS)
+include $(SRC)/lib/Makefile.lib
-$(PROG): $(OBJS)
- $(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS)
- $(POST_PROCESS)
+IFLAGS = -I$(SRC)/uts/$(GEN_PLATFORM) \
+ -I$(ROOT)/usr/include/v9
-clean:
- -$(RM) $(CLEANFILES)
+AS_CPPFLAGS += -D__STDC__ -D_ASM -DPIC -D_REENTRANT -D$(MACH) $(IFLAGS) \
+ -DNIAGARA_IMPL
+ASFLAGS = -P -K pic
-lint: lint_SRCS
+# memcpy.s provides __align_cpy_1 as an alias for memcpy. However, this isn't
+# a WEAK symbol, and hence ld(1)'s ability to cull duplicate local symbols with
+# the same address is compromised. The result is .SUNW_dynsymsort: duplicate
+# symbol errors from check_rtime. Use elfedit to assign a weak binding.
-include ../../Makefile.targ
-include ../../../Makefile.psm.targ
+POST_PROCESS_OBJCAP_O = elfedit -e "sym:st_bind __align_cpy_1 STB_WEAK" $@
diff --git a/usr/src/lib/libc/capabilities/sun4v-hwcap1/common/mapfile-cap b/usr/src/lib/libc/capabilities/sun4v-hwcap1/common/mapfile-cap
new file mode 100644
index 0000000000..b4dc200a22
--- /dev/null
+++ b/usr/src/lib/libc/capabilities/sun4v-hwcap1/common/mapfile-cap
@@ -0,0 +1,42 @@
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+$mapfile_version 2
+
+CAPABILITY sun4v-hwcap1 {
+ MACHINE = sun4v;
+ HW += ASI_BLK_INIT;
+};
+
+SYMBOL_SCOPE {
+ global:
+ __align_cpy_1;
+ _memcpy;
+ _memmove;
+ _memset;
+ memcpy;
+ memmove;
+ memset;
+ local:
+ *;
+};
diff --git a/usr/src/lib/libc/capabilities/sun4v-hwcap1/sparc/Makefile b/usr/src/lib/libc/capabilities/sun4v-hwcap1/sparc/Makefile
new file mode 100644
index 0000000000..b96dc6ffc0
--- /dev/null
+++ b/usr/src/lib/libc/capabilities/sun4v-hwcap1/sparc/Makefile
@@ -0,0 +1,34 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+include ../Makefile.com
+
+ASFLAGS += -xarch=v8plus
+
+.KEEP_STATE:
+
+all install: $(SYMCAP)
+
+include ../../Makefile.targ
diff --git a/usr/src/lib/libc/capabilities/sun4v-hwcap1/sparcv9/Makefile b/usr/src/lib/libc/capabilities/sun4v-hwcap1/sparcv9/Makefile
new file mode 100644
index 0000000000..16234a0700
--- /dev/null
+++ b/usr/src/lib/libc/capabilities/sun4v-hwcap1/sparcv9/Makefile
@@ -0,0 +1,34 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+include ../Makefile.com
+include $(SRC)/lib/Makefile.lib.64
+
+AS_CPPFLAGS += -D__sparcv9
+ASFLAGS += -xarch=v9
+
+all install: $(SYMCAP)
+
+include ../../Makefile.targ
diff --git a/usr/src/lib/libc/capabilities/sun4v-hwcap2/Makefile b/usr/src/lib/libc/capabilities/sun4v-hwcap2/Makefile
new file mode 100644
index 0000000000..77aed04fa7
--- /dev/null
+++ b/usr/src/lib/libc/capabilities/sun4v-hwcap2/Makefile
@@ -0,0 +1,47 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+include $(SRC)/lib/Makefile.lib
+
+SUBDIRS = $(MACH) $(BUILD64) $(MACH64)
+
+all := TARGET= all
+clean := TARGET= clean
+clobber := TARGET= clobber
+install := TARGET= install
+
+.KEEP_STATE:
+
+.PARALLEL: $(SUBDIRS)
+
+all clean clobber install: \
+ $(SUBDIRS)
+
+lint:
+
+$(SUBDIRS): FRC
+ @cd $@; pwd; $(MAKE) $(TARGET)
+
+FRC:
diff --git a/usr/src/lib/libc_psr/sun4u/Makefile b/usr/src/lib/libc/capabilities/sun4v-hwcap2/Makefile.com
index 05f1d1ad94..de1d0a297d 100644
--- a/usr/src/lib/libc_psr/sun4u/Makefile
+++ b/usr/src/lib/libc/capabilities/sun4v-hwcap2/Makefile.com
@@ -18,38 +18,31 @@
#
# CDDL HEADER END
#
+
#
-# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
#
-include ../../Makefile.lib
-
-PLATFORM= sun4u
-
-SUBDIRS= $(MACH)
-SUBDIRS64= $(MACH64)
-
-all := TARGET= all
-install := TARGET= install
-clean := TARGET= clean
-clobber := TARGET= clobber
+TRG_PLATFORM = sun4v
+GEN_PLATFORM = sun4v
-.KEEP_STATE:
+include ../../Makefile.com
-all install clean clobber : lib32 \
- $(BUILD64) lib64
+OBJECTS = memcpy.o
-lint:
- @ $(ECHO) "Nothing to lint here: skipping"
+include $(SRC)/lib/Makefile.lib
-lib32: $(SUBDIRS)
+IFLAGS = -I$(SRC)/uts/$(GEN_PLATFORM) \
+ -I$(ROOT)/usr/platform/sun4v/include \
+ -I$(ROOT)/usr/include/v9
-lib64: $(SUBDIRS64)
+AS_CPPFLAGS += -D__STDC__ -D_ASM -DPIC -D_REENTRANT -D$(MACH) $(IFLAGS) \
+ -DNIAGARA2_IMPL
+ASFLAGS = -P -K pic
-$(SUBDIRS) $(SUBDIRS64): FRC
- @cd $@; pwd; $(MAKE) $(TARGET)
+# memcpy.s provides __align_cpy_1 as an alias for memcpy. However, this isn't
+# a WEAK symbol, and hence ld(1)'s ability to cull duplicate local symbols with
+# the same address is compromised. The result is .SUNW_dynsymsort: duplicate
+# symbol errors from check_rtime. Use elfedit to assign a weak binding.
-FRC:
+POST_PROCESS_OBJCAP_O = elfedit -e "sym:st_bind __align_cpy_1 STB_WEAK" $@
diff --git a/usr/src/lib/libc/capabilities/sun4v-hwcap2/common/mapfile-cap b/usr/src/lib/libc/capabilities/sun4v-hwcap2/common/mapfile-cap
new file mode 100644
index 0000000000..9b7d9fa961
--- /dev/null
+++ b/usr/src/lib/libc/capabilities/sun4v-hwcap2/common/mapfile-cap
@@ -0,0 +1,40 @@
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+$mapfile_version 2
+
+CAPABILITY sun4v-hwcap2 {
+ MACHINE = sun4v;
+ HW += ASI_BLK_INIT VIS;
+};
+
+SYMBOL_SCOPE {
+ global:
+ __align_cpy_1;
+ _memcpy;
+ _memmove;
+ memcpy;
+ memmove;
+ local:
+ *;
+};
diff --git a/usr/src/lib/libc/capabilities/sun4v-hwcap2/sparc/Makefile b/usr/src/lib/libc/capabilities/sun4v-hwcap2/sparc/Makefile
new file mode 100644
index 0000000000..9e81c99669
--- /dev/null
+++ b/usr/src/lib/libc/capabilities/sun4v-hwcap2/sparc/Makefile
@@ -0,0 +1,32 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+include ../Makefile.com
+
+ASFLAGS += -xarch=v8plusa
+
+all install: $(SYMCAP)
+
+include ../../Makefile.targ
diff --git a/usr/src/lib/libc/capabilities/sun4v-hwcap2/sparcv9/Makefile b/usr/src/lib/libc/capabilities/sun4v-hwcap2/sparcv9/Makefile
new file mode 100644
index 0000000000..b6b9819fe8
--- /dev/null
+++ b/usr/src/lib/libc/capabilities/sun4v-hwcap2/sparcv9/Makefile
@@ -0,0 +1,34 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+include ../Makefile.com
+include $(SRC)/lib/Makefile.lib.64
+
+AS_CPPFLAGS += -D__sparcv9
+ASFLAGS += -xarch=v9a
+
+all install: $(SYMCAP)
+
+include ../../Makefile.targ
diff --git a/usr/src/lib/libc_psr/sun4v/common/memcpy.s b/usr/src/lib/libc/capabilities/sun4v/common/memcpy.s
index 7b516dac1d..75a2b3fbdb 100644
--- a/usr/src/lib/libc_psr/sun4v/common/memcpy.s
+++ b/usr/src/lib/libc/capabilities/sun4v/common/memcpy.s
@@ -20,8 +20,7 @@
*/
/*
- * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
+ * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
*/
.file "memcpy.s"
diff --git a/usr/src/lib/libc_psr/sun4v/common/memset.s b/usr/src/lib/libc/capabilities/sun4v/common/memset.s
index bf46b9e130..1c23e6ed4b 100644
--- a/usr/src/lib/libc_psr/sun4v/common/memset.s
+++ b/usr/src/lib/libc/capabilities/sun4v/common/memset.s
@@ -20,8 +20,7 @@
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
+ * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
*/
.file "memset.s"
diff --git a/usr/src/lib/libc/i386/Makefile.com b/usr/src/lib/libc/i386/Makefile.com
index f2cf98b304..50d06a4e4f 100644
--- a/usr/src/lib/libc/i386/Makefile.com
+++ b/usr/src/lib/libc/i386/Makefile.com
@@ -23,12 +23,13 @@
# Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
#
-LIB_PIC= libc_pic.a
-VERS= .1
-CPP= /usr/lib/cpp
+LIBCDIR= $(SRC)/lib/libc
+LIB_PIC= libc_pic.a
+VERS= .1
+CPP= /usr/lib/cpp
TARGET_ARCH= i386
-VALUES= values-Xa.o
+VALUES= values-Xa.o
# objects are grouped by source directory
@@ -316,7 +317,7 @@ SYSOBJS= \
vforkx.o \
xstat.o
-# objects under ../port which contain transitional large file interfaces
+# objects under $(LIBCDIR)/port which contain transitional large file interfaces
PORTGEN64= \
_xftw64.o \
attropen64.o \
@@ -326,7 +327,7 @@ PORTGEN64= \
tell64.o \
truncate64.o
-# objects from source under ../port
+# objects from source under $(LIBCDIR)/port
PORTFP= \
__flt_decim.o \
__flt_rounds.o \
@@ -951,16 +952,17 @@ CFLAGS += $(XSTRCONST)
ALTPICS= $(TRACEOBJS:%=pics/%)
$(DYNLIB) := PICS += $(ROOTFS_LIBDIR)/libc_i18n.a
-$(DYNLIB) := BUILD.SO = $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(ALTPICS) $(LDLIBS)
+$(DYNLIB) := BUILD.SO = $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(ALTPICS) \
+ $(EXTPICS) $(LDLIBS)
-MAPFILES = ../port/mapfile-vers
+MAPFILES = $(LIBCDIR)/port/mapfile-vers
#
# EXTN_CPPFLAGS and EXTN_CFLAGS set in enclosing Makefile
#
CFLAGS += $(EXTN_CFLAGS)
CPPFLAGS= -D_REENTRANT -Di386 $(EXTN_CPPFLAGS) $(THREAD_DEBUG) \
- -I$(LIBCBASE)/inc -I../inc $(CPPFLAGS.master)
+ -I$(LIBCBASE)/inc -I$(LIBCDIR)/inc $(CPPFLAGS.master)
ASFLAGS= $(AS_PICFLAGS) -P -D__STDC__ -D_ASM $(CPPFLAGS) $(i386_AS_XARCH)
# As a favor to the dtrace syscall provider, libc still calls the
@@ -1001,8 +1003,8 @@ BUILD.AR= $(RM) $@ ; \
# extra files for the clean target
CLEANFILES= \
- ../port/gen/errlst.c \
- ../port/gen/new_list.c \
+ $(LIBCDIR)/port/gen/errlst.c \
+ $(LIBCDIR)/port/gen/new_list.c \
assym.h \
genassym \
crt/_rtld.s \
@@ -1020,21 +1022,21 @@ SRCS= \
$(XATTROBJS:%.o=$(SRC)/common/xattr/%.c) \
$(COMOBJS:%.o=$(SRC)/common/util/%.c) \
$(DTRACEOBJS:%.o=$(SRC)/common/dtrace/%.c) \
- $(PORTFP:%.o=../port/fp/%.c) \
- $(PORTGEN:%.o=../port/gen/%.c) \
- $(PORTI18N:%.o=../port/i18n/%.c) \
- $(PORTPRINT:%.o=../port/print/%.c) \
- $(PORTREGEX:%.o=../port/regex/%.c) \
- $(PORTSTDIO:%.o=../port/stdio/%.c) \
- $(PORTSYS:%.o=../port/sys/%.c) \
- $(AIOOBJS:%.o=../port/aio/%.c) \
- $(RTOBJS:%.o=../port/rt/%.c) \
- $(TPOOLOBJS:%.o=../port/tpool/%.c) \
- $(THREADSOBJS:%.o=../port/threads/%.c) \
- $(THREADSMACHOBJS:%.o=../$(MACH)/threads/%.c) \
+ $(PORTFP:%.o=$(LIBCDIR)/port/fp/%.c) \
+ $(PORTGEN:%.o=$(LIBCDIR)/port/gen/%.c) \
+ $(PORTI18N:%.o=$(LIBCDIR)/port/i18n/%.c) \
+ $(PORTPRINT:%.o=$(LIBCDIR)/port/print/%.c) \
+ $(PORTREGEX:%.o=$(LIBCDIR)/port/regex/%.c) \
+ $(PORTSTDIO:%.o=$(LIBCDIR)/port/stdio/%.c) \
+ $(PORTSYS:%.o=$(LIBCDIR)/port/sys/%.c) \
+ $(AIOOBJS:%.o=$(LIBCDIR)/port/aio/%.c) \
+ $(RTOBJS:%.o=$(LIBCDIR)/port/rt/%.c) \
+ $(TPOOLOBJS:%.o=$(LIBCDIR)/port/tpool/%.c) \
+ $(THREADSOBJS:%.o=$(LIBCDIR)/port/threads/%.c) \
+ $(THREADSMACHOBJS:%.o=$(LIBCDIR)/$(MACH)/threads/%.c) \
$(UNICODEOBJS:%.o=$(SRC)/common/unicode/%.c) \
- $(UNWINDMACHOBJS:%.o=../port/unwind/%.c) \
- $(FPOBJS:%.o=../$(MACH)/fp/%.c) \
+ $(UNWINDMACHOBJS:%.o=$(LIBCDIR)/port/unwind/%.c) \
+ $(FPOBJS:%.o=$(LIBCDIR)/$(MACH)/fp/%.c) \
$(LIBCBASE)/gen/ecvt.c \
$(LIBCBASE)/gen/makectxt.c \
$(LIBCBASE)/gen/siginfolst.c \
@@ -1127,7 +1129,7 @@ $(PORTI18N_COND:%=pics/%) := \
all: $(LIBS) $(LIB_PIC)
-lint := CPPFLAGS += -I../$(MACH)/fp
+lint := CPPFLAGS += -I$(LIBCDIR)/$(MACH)/fp
lint := CPPFLAGS += -D_MSE_INT_H -D_LCONV_C99
lint := LINTFLAGS += -mn -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
@@ -1135,7 +1137,7 @@ lint:
@echo $(LINT.c) ...
@$(LINT.c) $(SRCS) $(LDLIBS)
-$(LINTLIB):= SRCS=../port/llib-lc
+$(LINTLIB):= SRCS=$(LIBCDIR)/port/llib-lc
$(LINTLIB):= CPPFLAGS += -D_MSE_INT_H
$(LINTLIB):= LINTFLAGS=-nvx
@@ -1144,7 +1146,7 @@ $(TIL:%=pics/%): $(LIBCBASE)/threads/i386.il
# pics/mul64.o: $(LIBCBASE)/crt/mul64.il
# include common libc targets
-include ../Makefile.targ
+include $(LIBCDIR)/Makefile.targ
# We need to strip out all CTF and DOF data from the static library
$(LIB_PIC) := DIR = pics
@@ -1180,7 +1182,7 @@ $(ASSYMDEP_OBJS:%=pics/%): assym.h
# assym.h build rules
-GENASSYM_C = ../$(MACH)/genassym.c
+GENASSYM_C = $(LIBCDIR)/$(MACH)/genassym.c
# XXX A hack. Perhaps this should be 'CPPFLAGS.native' and
# live in Makefile.master
@@ -1189,20 +1191,20 @@ CPPFLAGS.genassym = \
$(ENVCPPFLAGS1) $(ENVCPPFLAGS2) $(ENVCPPFLAGS3) $(ENVCPPFLAGS4)
genassym: $(GENASSYM_C)
- $(NATIVECC) -I$(LIBCBASE)/inc -I../inc \
+ $(NATIVECC) -I$(LIBCBASE)/inc -I$(LIBCDIR)/inc \
-D__EXTENSIONS__ $(CPPFLAGS.genassym) -o $@ $(GENASSYM_C)
-OFFSETS = ../$(MACH)/offsets.in
+OFFSETS = $(LIBCDIR)/$(MACH)/offsets.in
assym.h: $(OFFSETS) genassym
$(OFFSETS_CREATE) <$(OFFSETS) >$@
./genassym >>$@
# derived C source and related explicit dependencies
-../port/gen/errlst.c + \
-../port/gen/new_list.c: ../port/gen/errlist ../port/gen/errlist.awk
- cd ../port/gen; pwd; $(AWK) -f errlist.awk < errlist
+$(LIBCDIR)/port/gen/errlst.c + \
+$(LIBCDIR)/port/gen/new_list.c: $(LIBCDIR)/port/gen/errlist $(LIBCDIR)/port/gen/errlist.awk
+ cd $(LIBCDIR)/port/gen; pwd; $(AWK) -f errlist.awk < errlist
-pics/errlst.o: ../port/gen/errlst.c
+pics/errlst.o: $(LIBCDIR)/port/gen/errlst.c
-pics/new_list.o: ../port/gen/new_list.c
+pics/new_list.o: $(LIBCDIR)/port/gen/new_list.c
diff --git a/usr/src/lib/libc/port/mapfile-vers b/usr/src/lib/libc/port/mapfile-vers
index f557f958b6..a3dae49082 100644
--- a/usr/src/lib/libc/port/mapfile-vers
+++ b/usr/src/lib/libc/port/mapfile-vers
@@ -101,6 +101,11 @@ $error unknown platform
$endif
protected:
+
+$if sparc32
+ __align_cpy_1;
+$endif
+
addrtosymstr;
aio_cancel;
aiocancel;
@@ -1794,6 +1799,10 @@ $endif
ldexp { TYPE = FUNCTION; FILTER = libm.so.2 };
logb { TYPE = FUNCTION; FILTER = libm.so.2 };
malloc { FLAGS = NODIRECT };
+ memcmp;
+ memcpy;
+ memmove;
+ memset;
modf { TYPE = FUNCTION; FILTER = libm.so.2 };
_modf { TYPE = FUNCTION; FILTER = libm.so.2 };
nextafter { TYPE = FUNCTION; FILTER = libm.so.2 };
@@ -1810,14 +1819,6 @@ $endif
_timezone;
tzname;
_tzname;
-
-$if _x86
- memcmp;
- memcpy;
- memmove;
- memset;
-$endif
-
$if i386
_fp_hw;
$endif
@@ -2507,6 +2508,10 @@ SYMBOL_VERSION SUNWprivate_1.1 {
_lten { FLAGS = NODYNSORT };
_lzero { FLAGS = NODYNSORT };
__malloc_lock;
+ _memcmp;
+ _memcpy { FLAGS = NODYNSORT };
+ _memmove;
+ _memset;
_modff { TYPE = FUNCTION; FILTER = libm.so.2 };
__nan_read;
__nan_written;
@@ -2576,14 +2581,6 @@ $if _sparc
__mon_lengths;
__yday_to_month;
$endif
-
-$if _x86
- _memcmp;
- _memcpy;
- _memmove;
- _memset;
-$endif
-
$if i386
_sse_hw;
$endif
diff --git a/usr/src/lib/libc/sparc/Makefile b/usr/src/lib/libc/sparc/Makefile
index 455c908a1e..592fcef514 100644
--- a/usr/src/lib/libc/sparc/Makefile
+++ b/usr/src/lib/libc/sparc/Makefile
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
#
LIBCBASE=.
@@ -35,6 +34,4 @@ PRFOBJS= \
strlen.o \
strcpy.o
-MAPFILE_AUX = mapfile-vers-aux
-
include Makefile.com
diff --git a/usr/src/lib/libc/sparc/Makefile.com b/usr/src/lib/libc/sparc/Makefile.com
index ff779c4d07..b03c067933 100644
--- a/usr/src/lib/libc/sparc/Makefile.com
+++ b/usr/src/lib/libc/sparc/Makefile.com
@@ -24,13 +24,22 @@
#
LIBCDIR= $(SRC)/lib/libc
-LIB_PIC= libc_pic.a
-VERS= .1
-CPP= /usr/lib/cpp
+LIB_PIC= libc_pic.a
+VERS= .1
+CPP= /usr/lib/cpp
TARGET_ARCH= sparc
# objects are grouped by source directory
+# Symbol capabilities objects.
+EXTPICS= \
+ $(LIBCDIR)/capabilities/sun4u/sparc/pics/symcap.o \
+ $(LIBCDIR)/capabilities/sun4u-opl/sparc/pics/symcap.o \
+ $(LIBCDIR)/capabilities/sun4u-us3-hwcap1/sparc/pics/symcap.o \
+ $(LIBCDIR)/capabilities/sun4u-us3-hwcap2/sparc/pics/symcap.o \
+ $(LIBCDIR)/capabilities/sun4v-hwcap1/sparc/pics/symcap.o \
+ $(LIBCDIR)/capabilities/sun4v-hwcap2/sparc/pics/symcap.o
+
# local objects
STRETS= \
stret1.o \
@@ -973,9 +982,9 @@ CFLAGS += $(XSTRCONST)
ALTPICS= $(TRACEOBJS:%=pics/%)
$(DYNLIB) := PICS += $(ROOTFS_LIBDIR)/libc_i18n.a
-$(DYNLIB) := BUILD.SO = $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(ALTPICS)
+$(DYNLIB) := BUILD.SO = $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(ALTPICS) $(EXTPICS)
-MAPFILES = $(LIBCDIR)/port/mapfile-vers $(MAPFILE_AUX)
+MAPFILES = $(LIBCDIR)/port/mapfile-vers
CFLAGS += $(EXTN_CFLAGS)
CPPFLAGS= -D_REENTRANT -Dsparc $(EXTN_CPPFLAGS) $(THREAD_DEBUG) \
diff --git a/usr/src/lib/libc/sparc/gen/memcpy.s b/usr/src/lib/libc/sparc/gen/memcpy.s
index c24b290db6..d0e18cfeac 100644
--- a/usr/src/lib/libc/sparc/gen/memcpy.s
+++ b/usr/src/lib/libc/sparc/gen/memcpy.s
@@ -20,8 +20,7 @@
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
+ * Copyright (c) 1988, 2010, Oracle and/or its affiliates. All rights reserved.
*/
.file "memcpy.s"
@@ -54,6 +53,7 @@
ANSI_PRAGMA_WEAK(memcpy,function)
ENTRY(memcpy)
+ ENTRY(__align_cpy_1)
st %o0, [%sp + 68] ! save des address for return val
cmp %o2, 17 ! for small counts copy bytes
bleu .dbytecp
diff --git a/usr/src/lib/libc/sparc/mapfile-vers-aux b/usr/src/lib/libc/sparc/mapfile-vers-aux
deleted file mode 100644
index 96e77f95be..0000000000
--- a/usr/src/lib/libc/sparc/mapfile-vers-aux
+++ /dev/null
@@ -1,58 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
-#
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-$mapfile_version 2
-
-SYMBOL_VERSION SYSVABI_1.3 {
- global:
- memcmp { AUXILIARY = /platform/$PLATFORM/lib/libc_psr.so.1 };
- memcpy { AUXILIARY = /platform/$PLATFORM/lib/libc_psr.so.1 };
- memmove { AUXILIARY = /platform/$PLATFORM/lib/libc_psr.so.1 };
- memset { AUXILIARY = /platform/$PLATFORM/lib/libc_psr.so.1 };
-};
-
-SYMBOL_VERSION SUNWprivate_1.1 {
- global:
- _memcmp { AUXILIARY = /platform/$PLATFORM/lib/libc_psr.so.1 };
- _memcpy {
- AUXILIARY = /platform/$PLATFORM/lib/libc_psr.so.1;
- FLAGS = NODYNSORT;
- };
- _memmove { AUXILIARY = /platform/$PLATFORM/lib/libc_psr.so.1 };
- _memset { AUXILIARY = /platform/$PLATFORM/lib/libc_psr.so.1 };
-};
diff --git a/usr/src/lib/libc/sparc_hwcap1/sparc/Makefile b/usr/src/lib/libc/sparc_hwcap1/sparc/Makefile
deleted file mode 100644
index d648203adc..0000000000
--- a/usr/src/lib/libc/sparc_hwcap1/sparc/Makefile
+++ /dev/null
@@ -1,49 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-
-LIBCBASE= $(SRC)/lib/libc/sparc
-
-LIBRARY= libc_hwcap1.a
-
-EXTN_CPPFLAGS= -I$(SRC)/uts/sun4v -I$(ROOT)/usr/platform/sun4v/include
-EXTN_ASFLAGS= -xarch=v8plusd
-EXTN_DYNFLAGS= -M mapfile
-
-# Defining this means build targets will first try to use source from this
-# directory before falling back to unoptimized sun4v source.
-#
-OPTIMIZED_LIBCBASE=../common
-
-PRFOBJS= \
- memcpy.o \
- memmove.o \
- memset.o \
- strlen.o \
- strcpy.o \
-
-MAPFILE_AUX = mapfile-vers-aux
-
-include $(SRC)/lib/libc/sparc/Makefile.com
diff --git a/usr/src/lib/libc/sparcv9/Makefile b/usr/src/lib/libc/sparcv9/Makefile
index 455c908a1e..4a76730bb8 100644
--- a/usr/src/lib/libc/sparcv9/Makefile
+++ b/usr/src/lib/libc/sparcv9/Makefile
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.
#
LIBCBASE=.
@@ -35,6 +34,4 @@ PRFOBJS= \
strlen.o \
strcpy.o
-MAPFILE_AUX = mapfile-vers-aux
-
include Makefile.com
diff --git a/usr/src/lib/libc/sparcv9/Makefile.com b/usr/src/lib/libc/sparcv9/Makefile.com
index e932c01dc1..2144a07e17 100644
--- a/usr/src/lib/libc/sparcv9/Makefile.com
+++ b/usr/src/lib/libc/sparcv9/Makefile.com
@@ -24,13 +24,22 @@
#
LIBCDIR= $(SRC)/lib/libc
-LIB_PIC= libc_pic.a
-VERS= .1
-CPP= /usr/lib/cpp
+LIB_PIC= libc_pic.a
+VERS= .1
+CPP= /usr/lib/cpp
TARGET_ARCH= sparc
# objects are grouped by source directory
+# Symbol capabilities objects.
+EXTPICS= \
+ $(LIBCDIR)/capabilities/sun4u/sparcv9/pics/symcap.o \
+ $(LIBCDIR)/capabilities/sun4u-opl/sparcv9/pics/symcap.o \
+ $(LIBCDIR)/capabilities/sun4u-us3-hwcap1/sparcv9/pics/symcap.o \
+ $(LIBCDIR)/capabilities/sun4u-us3-hwcap2/sparcv9/pics/symcap.o \
+ $(LIBCDIR)/capabilities/sun4v-hwcap1/sparcv9/pics/symcap.o \
+ $(LIBCDIR)/capabilities/sun4v-hwcap2/sparcv9/pics/symcap.o
+
# local objects
STRETS=
@@ -922,9 +931,9 @@ CFLAGS64 += $(XSTRCONST)
ALTPICS= $(TRACEOBJS:%=pics/%)
$(DYNLIB) := PICS += $(ROOTFS_LIBDIR64)/libc_i18n.a
-$(DYNLIB) := BUILD.SO = $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(ALTPICS)
+$(DYNLIB) := BUILD.SO = $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(ALTPICS) $(EXTPICS)
-MAPFILES = $(LIBCDIR)/port/mapfile-vers $(MAPFILE_AUX)
+MAPFILES = $(LIBCDIR)/port/mapfile-vers
sparcv9_C_PICFLAGS= -K PIC
CFLAGS64 += $(EXTN_CFLAGS)
diff --git a/usr/src/lib/libc/sparcv9/mapfile-vers-aux b/usr/src/lib/libc/sparcv9/mapfile-vers-aux
deleted file mode 100644
index 2f00ec63be..0000000000
--- a/usr/src/lib/libc/sparcv9/mapfile-vers-aux
+++ /dev/null
@@ -1,58 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
-#
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-$mapfile_version 2
-
-SYMBOL_VERSION SUNW_0.7 { # SunOS 5.3 (Solaris 2.3)
- global:
- memcmp { AUXILIARY = /platform/$PLATFORM/lib/sparcv9/libc_psr.so.1 };
- memcpy { AUXILIARY = /platform/$PLATFORM/lib/sparcv9/libc_psr.so.1 };
- memmove { AUXILIARY = /platform/$PLATFORM/lib/sparcv9/libc_psr.so.1 };
- memset { AUXILIARY = /platform/$PLATFORM/lib/sparcv9/libc_psr.so.1 };
-};
-
-SYMBOL_VERSION SUNWprivate_1.1 {
- global:
- _memcmp { AUXILIARY = /platform/$PLATFORM/lib/sparcv9/libc_psr.so.1 };
- _memcpy {
- AUXILIARY = /platform/$PLATFORM/lib/sparcv9/libc_psr.so.1;
- FLAGS = NODYNSORT;
- };
- _memmove { AUXILIARY = /platform/$PLATFORM/lib/sparcv9/libc_psr.so.1 };
- _memset { AUXILIARY = /platform/$PLATFORM/lib/sparcv9/libc_psr.so.1 };
-};
diff --git a/usr/src/lib/libc_psr/Makefile.targ b/usr/src/lib/libc_psr/Makefile.targ
deleted file mode 100644
index 6e25007ffc..0000000000
--- a/usr/src/lib/libc_psr/Makefile.targ
+++ /dev/null
@@ -1,32 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License, Version 1.0 only
-# (the "License"). You may not use this file except in compliance
-# with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# ident "%Z%%M% %I% %E% SMI"
-#
-# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-
-include $(SRC)/lib/Makefile.targ
-include $(SRC)/Makefile.psm.targ
-
-pics/%.o := ASFLAGS += $(AS_PICFLAGS)
diff --git a/usr/src/lib/libc_psr/etc/Makefile b/usr/src/lib/libc_psr/etc/Makefile
deleted file mode 100644
index 4fae2758ed..0000000000
--- a/usr/src/lib/libc_psr/etc/Makefile
+++ /dev/null
@@ -1,85 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# Makefile for libc_psr (hwcap) flarcreate precreation scripts
-#
-#
-# usr/src/lib/libc_psr/etc/Makefile
-
-include ../../../Makefile.master
-
-FLASHPRESRC= caplib.ksh
-FLASHPREPROG= $(FLASHPRESRC:%.ksh=%)
-
-all:= TARGET= all
-install:= TARGET= install
-clean:= TARGET= clean
-clobber:= TARGET= clobber
-lint:= TARGET= lint
-
-ROOTETC= $(ROOT)/etc
-ETCFLASHD= $(ROOTETC)/flash
-ETCFLASHPREC= $(ROOTETC)/flash/precreation
-ETCFLASHPREE= $(ROOTETC)/flash/preexit
-ETCFLASHPOSTC= $(ROOTETC)/flash/postcreation
-
-DIRS= $(ETCFLASHPREC) $(ETCFLASHPREE) $(ETCFLASHPOSTC)
-
-ETCFLASHPREPROG= $(FLASHPREPROG:%=$(ETCFLASHPREC)/%)
-
-$(ETCFLASHD) := DIRMODE= 755
-$(ETCFLASHPREC) := DIRMODE= 700
-$(ETCFLASHPREE) := DIRMODE= 700
-$(ETCFLASHPOSTC) := DIRMODE= 700
-$(ETCFLASHPREPROG) := FILEMODE= 0500
-
-.KEEP_STATE:
-
-all: $(FLASHPREPROG)
-
-install: all .WAIT $(DIRS) .WAIT $(ETCFLASHPREPROG)
-
-cstyle:
-
-lint:
-
-$(FLASHPREPROG): $(FLASHPRESRC)
- $(CP) $@.ksh $@
-
-$(DIRS):
- $(INS.dir)
-
-$(ETCFLASHPREC)/% : %
- $(INS.file)
-
-$(ETCFLASHPREE)/% : %
- $(INS.file)
-
-$(ETCFLASHPOSTC)/% : %
- $(INS.file)
-
-clean:
- $(RM) $(FLASHPREPROG)
-
-clobber: clean
- $(RM) $(ETCFLASHPREPROG)
diff --git a/usr/src/lib/libc_psr/etc/caplib.ksh b/usr/src/lib/libc_psr/etc/caplib.ksh
deleted file mode 100755
index fc7f5eed65..0000000000
--- a/usr/src/lib/libc_psr/etc/caplib.ksh
+++ /dev/null
@@ -1,136 +0,0 @@
-#!/bin/ksh
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-#pragma ident "%Z%%M% %I% %E% SMI"
-#
-# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-
-#
-# This script is called by flarcreate.sh
-#
-# Unmount any hwcap libraries (like /usr/lib/libc_psr/libc_psr_hwcap2.so.1)
-# and store commands needed to remount them in preexit/remount_hwcap.xxxx
-# scripts, which remounts them in the preexit phase.
-#
-
-if [ -z "$FLASH_PID" ]; then
- echo "$0: ERROR: FLASH_PID not set in execution environment, exiting..."
- exit 1
-fi
-if [ -z "$FLASH_DIR" ]; then
- echo "$0: ERROR: FLASH_DIR not set in execution environment, exiting..."
- exit 1
-fi
-
-CHMOD=/usr/bin/chmod
-MOUNT=/usr/sbin/mount
-UMOUNT=/usr/sbin/umount
-EGREP=/usr/bin/egrep
-SED=/usr/bin/sed
-CMD_LIST="$CHMOD $MOUNT $UMOUNT $EGREP $SED"
-
-for cmd in $CMD_LIST
-do
- if [ ! -x $cmd ]; then
- echo "$0: ERROR: $cmd not found or not executable, exiting..."
- exit 1
- fi
-done
-
-#
-# Fill "LIBS" with a list of mounted libraries in the form:
-# MOUNTPOUNT:FILE
-# e.g.:
-# /lib/libc.so.1:/usr/lib/libc/libc_hwcap2.so.1
-#
-LIBS=`$MOUNT | $EGREP "^/platform.*hwcap" | \
- $SED -e 's:^\(/[^ ]*\) on \([^ ]*\).*$:\1@\2:'`
-
-if [ -z "$LIBS" ]; then
- exit 0
-fi
-
-REMOUNT_DIR=${FLASH_DIR}/preexit
-REMOUNT=${REMOUNT_DIR}/remount_hwcap.${FLASH_PID}
-
-#
-# Create the flash preexit script directory for the remount scripts if it
-# doesn't already exist.
-#
-if [ ! -d $REMOUNT_DIR ]; then
- umask 077
- /usr/bin/mkdir $REMOUNT_DIR
- if [ $? -ne 0 ]; then
- echo "$0: ERROR: could not mkdir $REMOUNT_DIR, exiting..."
- exit 1
- fi
-fi
-
-#
-# If an old remount script by this name exists, delete it
-#
-if [ -f $REMOUNT ]; then
- /bin/rm -f $REMOUNT
-fi
-
-umask 477
-
-cat > $REMOUNT << EOF
-#!/bin/sh
-if [ \"\$FLASH_PID\" != \"$FLASH_PID\" ]; then
- /bin/rm -f $REMOUNT
- exit 0
-fi
-EOF
-
-if [ $? -ne 0 ]; then
- echo "$0: ERROR: could not create $REMOUNT, exiting..."
- exit 1
-fi
-
-#
-# Now process each of the libraries that are mounted. For each, find out if
-# it's a hwcap library; if it is, unmount it and write instructions to the
-# preexit script as to how to remount it.
-#
-for entry in $LIBS
-do
- echo $entry | IFS=@ read MOUNTPOINT MOUNTLIB
- $UMOUNT $MOUNTPOINT || $UMOUNT -f $MOUNTPOINT || \
- { echo "$0: ERROR: Could not unmount" \
- "$MOUNTPOINT, exiting..."; \
- /bin/sh $REMOUNT; /bin/rm -f $REMOUNT; exit 1; }
-
- MOUNTOPTS="-O -F lofs"
- echo "$MOUNT $MOUNTOPTS $MOUNTLIB $MOUNTPOINT" >> $REMOUNT
-done
-
-#
-# Write final cleanup instructions to the flash preexit remount script and make
-# it executable.
-#
-echo "/bin/rm -f $REMOUNT" >> $REMOUNT
-echo "exit 0" >> $REMOUNT
-$CHMOD 0500 $REMOUNT
-exit 0
diff --git a/usr/src/lib/libc_psr/sun4u-opl/Makefile b/usr/src/lib/libc_psr/sun4u-opl/Makefile
deleted file mode 100644
index d42f5eae13..0000000000
--- a/usr/src/lib/libc_psr/sun4u-opl/Makefile
+++ /dev/null
@@ -1,78 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-
-include $(SRC)/lib/Makefile.lib
-include $(SRC)/Makefile.psm
-
-PLATFORM= sun4u-opl
-
-SUBDIRS= $(MACH)
-SUBDIRS64= $(MACH64)
-
-all := TARGET= all
-install := TARGET= install
-clean := TARGET= clean
-clobber := TARGET= clobber
-
-MODULE = libc_psr.so.1
-LIBC_PSR_DIRS = $(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%/lib)
-LIBC_PSR_LINKS = $(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%/lib/$(MODULE))
-INS.slink6 = $(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/lib/$(MODULE) $@
-LIBC_PSR64_DIRS = $(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%/lib/$(MACH64))
-LIBC_PSR64_LINKS = $(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%/lib/$(MACH64)/$(MODULE))
-INS.slink7 = $(RM) -r $@; $(SYMLINK) ../../../$(PLATFORM)/lib/$(MACH64)/$(MODULE) $@
-
-#
-# Used when building links in /platform/$(PLATFORM)/lib
-#
-LINKED_PLATFORMS = SUNW,SPARC-Enterprise
-
-all install: lib32 $(BUILD64) lib64 $(LIBC_PSR_LINKS) $(LIBC_PSR64_LINKS)
-
-clean clobber: lib32 $(BUILD64) lib64
-
-$(LIBC_PSR_DIRS):
- -$(INS.dir)
-
-$(LIBC_PSR_LINKS): $(LIBC_PSR_DIRS)
- -$(INS.slink6)
-
-$(LIBC_PSR64_DIRS):
- -$(INS.dir)
-
-$(LIBC_PSR64_LINKS): $(LIBC_PSR64_DIRS)
- -$(INS.slink7)
-
-lint:
- @ $(ECHO) "Nothing to lint here: skipping"
-
-lib32: $(SUBDIRS)
-
-lib64: $(SUBDIRS64)
-
-$(SUBDIRS) $(SUBDIRS64): FRC
- @cd $@; pwd; $(MAKE) $(TARGET)
-
-FRC:
diff --git a/usr/src/lib/libc_psr/sun4u-opl/Makefile.com b/usr/src/lib/libc_psr/sun4u-opl/Makefile.com
deleted file mode 100644
index 107550d626..0000000000
--- a/usr/src/lib/libc_psr/sun4u-opl/Makefile.com
+++ /dev/null
@@ -1,67 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
-#
-
-#
-# Create default so empty rules don't
-# confuse make
-#
-
-LIBRARY = libc_psr.a
-VERS = .1
-
-include $(SRC)/lib/Makefile.lib
-include $(SRC)/Makefile.psm
-
-#
-# Since libc_psr is strictly assembly, deactivate the CTF build logic.
-#
-CTFCONVERT_POST = :
-CTFMERGE_LIB = :
-
-LIBS = $(DYNLIB)
-IFLAGS = -I$(SRC)/uts/sun4u \
- -I$(ROOT)/usr/platform/sun4u/include
-CPPFLAGS = -D_REENTRANT -D$(MACH) $(IFLAGS) $(CPPFLAGS.master)
-ASDEFS = -D__STDC__ -D_ASM $(CPPFLAGS)
-ASFLAGS = -P $(ASDEFS)
-
-#
-# install rule
-#
-$(ROOT_PSM_LIB_DIR)/%: % $(ROOT_PSM_LIB_DIR)
- $(INS.file)
-
-#
-# build rules
-#
-pics/%.o: ../../$(PLATFORM)/common/%.s
- $(AS) $(ASFLAGS) $< -o $@
- $(POST_PROCESS_O)
-
-pics/%.o: ../../$(COMPAT_PLAT)/common/%.s
- $(AS) $(ASFLAGS) $< -o $@
- $(POST_PROCESS_O)
diff --git a/usr/src/lib/libc_psr/sun4u-opl/sparcv9/Makefile b/usr/src/lib/libc_psr/sun4u-opl/sparcv9/Makefile
deleted file mode 100644
index 7b6318a413..0000000000
--- a/usr/src/lib/libc_psr/sun4u-opl/sparcv9/Makefile
+++ /dev/null
@@ -1,64 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-
-
-#
-# Platform specific Makefile for libc_psr.
-#
-
-PLATFORM = sun4u-opl
-COMPAT_PLAT = sun4u-us3
-CLASS = 64
-
-OBJECTS = memcpy.o memset.o memcmp.o
-
-include ../Makefile.com
-
-MAPFILES = ../../sun4u/mapfile-vers $(MAPFILE.FLT)
-
-ASDEFS += -D__sparcv9
-ASFLAGS += -xarch=v9b
-
-include $(SRC)/Makefile.master.64
-
-# Redefine shared object build rule to use $(LD) directly (this avoids .init
-# and .fini sections being added).
-
-BUILD.SO= $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(LDLIBS)
-
-.KEEP_STATE:
-
-MODULE = libc_psr.so.1
-LIBC_PSR64_DIR = $(ROOT_PSM_LIB_DIR)/$(MACH64)
-LIBC_PSR64_LIB = $(LIBC_PSR64_DIR)/$(MODULE)
-
-$(LIBC_PSR64_DIRS):
- -$(INS.dir)
-
-all: $(LIBS)
-
-install: all $(LIBC_PSR64_DIR) $(ROOT_PSM_LIB64_DIR)/$(LIBS)
-
-include ../../Makefile.targ
diff --git a/usr/src/lib/libc_psr/sun4u-us3/Makefile b/usr/src/lib/libc_psr/sun4u-us3/Makefile
deleted file mode 100644
index ee1ea7bb7f..0000000000
--- a/usr/src/lib/libc_psr/sun4u-us3/Makefile
+++ /dev/null
@@ -1,102 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-
-include $(SRC)/lib/Makefile.lib
-include $(SRC)/Makefile.psm
-
-PLATFORM = sun4u-us3
-
-all := TARGET= all
-install := TARGET= install
-clean := TARGET= clean
-clobber := TARGET= clobber
-
-TOUCH = /usr/bin/touch
-
-MODULE = libc_psr.so.1
-LIBC_PSR_DIRS = $(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%/lib)
-LIBC_PSR_LINKS = $(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%/lib/$(MODULE))
-INS.slink6 = $(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/lib/$(MODULE) $@
-LIBC_PSR64_DIRS = $(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%/lib/$(MACH64))
-LIBC_PSR64_LINKS = $(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%/lib/$(MACH64)/$(MODULE))
-INS.slink7 = $(RM) -r $@; $(SYMLINK) ../../../$(PLATFORM)/lib/$(MACH64)/$(MODULE) $@
-
-#
-# Used when building links in /platform/$(PLATFORM)/lib
-#
-LINKED_PLATFORMS = SUNW,Sun-Blade-1000
-LINKED_PLATFORMS += SUNW,Sun-Blade-1500
-LINKED_PLATFORMS += SUNW,Sun-Blade-2500
-LINKED_PLATFORMS += SUNW,A70
-LINKED_PLATFORMS += SUNW,Sun-Fire
-LINKED_PLATFORMS += SUNW,Sun-Fire-V240
-LINKED_PLATFORMS += SUNW,Sun-Fire-V250
-LINKED_PLATFORMS += SUNW,Sun-Fire-V440
-LINKED_PLATFORMS += SUNW,Sun-Fire-280R
-LINKED_PLATFORMS += SUNW,Sun-Fire-15000
-LINKED_PLATFORMS += SUNW,Sun-Fire-880
-LINKED_PLATFORMS += SUNW,Sun-Fire-480R
-LINKED_PLATFORMS += SUNW,Netra-T12
-LINKED_PLATFORMS += SUNW,Netra-T4
-LINKED_PLATFORMS += SUNW,Netra-CP3010
-LINKED_PLATFORMS += SUNW,Sun-Fire-V215
-LINKED_PLATFORMS += SUNW,Sun-Fire-V445
-
-$(ROOT_PSM_LIB_DIR):
- -$(INS.dir)
-
-$(ROOT_PSM_LIB_DIR)/$(MODULE): $(ROOT_PSM_LIB_DIR) $(MODULE)
- $(RM) -r $@; $(INS) -s -f $(@D) $(MODULE)
-
-$(ROOT_PSM_LIB64_DIR):
- -$(INS.dir)
-
-$(ROOT_PSM_LIB64_DIR)/$(MODULE): $(ROOT_PSM_LIB64_DIR) $(MODULE)
- $(RM) -r $@; $(INS) -s -f $(@D) $(MODULE)
-
-$(LIBC_PSR_DIRS):
- -$(INS.dir)
-
-$(LIBC_PSR_LINKS): $(LIBC_PSR_DIRS)
- -$(INS.slink6)
-
-$(LIBC_PSR64_DIRS):
- -$(INS.dir)
-
-$(LIBC_PSR64_LINKS): $(LIBC_PSR64_DIRS)
- -$(INS.slink7)
-
-all: FRC
- @$(TOUCH) $(MODULE)
-
-install: all $(ROOT_PSM_LIB_DIR)/$(MODULE) $(ROOT_PSM_LIB64_DIR)/$(MODULE) $(LIBC_PSR_LINKS) $(LIBC_PSR64_LINKS)
-
-clean clobber : FRC
- $(RM) $(MODULE)
-
-lint:
- @ $(ECHO) "Nothing to lint here: skipping"
-
-FRC:
diff --git a/usr/src/lib/libc_psr/sun4u/Makefile.com b/usr/src/lib/libc_psr/sun4u/Makefile.com
deleted file mode 100644
index 4df215f817..0000000000
--- a/usr/src/lib/libc_psr/sun4u/Makefile.com
+++ /dev/null
@@ -1,85 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-
-#
-# Create default so empty rules don't
-# confuse make
-#
-
-LIBRARY = libc_psr.a
-VERS = .1
-
-include $(SRC)/lib/Makefile.lib
-include $(SRC)/Makefile.psm
-
-#
-# Since libc_psr is strictly assembly, deactivate the CTF build logic.
-#
-CTFCONVERT_POST = :
-CTFMERGE_LIB = :
-
-LIBS = $(DYNLIB)
-IFLAGS = -I$(SRC)/uts/$(PLATFORM) \
- -I$(ROOT)/usr/platform/$(PLATFORM)/include
-CPPFLAGS = -D_REENTRANT -D$(MACH) $(IFLAGS) $(CPPFLAGS.master)
-ASDEFS = -D__STDC__ -D_ASM $(CPPFLAGS)
-ASFLAGS = -P $(ASDEFS)
-
-MAPFILES = ../../sun4u/mapfile-vers ../../sun4u/mapfile-memcpy \
- $(MAPFILE.FLT)
-
-#
-# Used when building links in /platform/$(PLATFORM)/lib
-#
-LINKED_PLATFORMS = SUNW,Ultra-2
-LINKED_PLATFORMS += SUNW,Ultra-4
-LINKED_PLATFORMS += SUNW,Ultra-5_10
-LINKED_PLATFORMS += SUNW,Ultra-30
-LINKED_PLATFORMS += SUNW,Ultra-60
-LINKED_PLATFORMS += SUNW,Ultra-80
-LINKED_PLATFORMS += SUNW,Ultra-250
-LINKED_PLATFORMS += SUNW,Ultra-Enterprise
-LINKED_PLATFORMS += SUNW,Ultra-Enterprise-10000
-LINKED_PLATFORMS += SUNW,UltraAX-i2
-LINKED_PLATFORMS += SUNW,UltraSPARC-IIi-Netract
-LINKED_PLATFORMS += SUNW,UltraSPARC-IIe-NetraCT-40
-LINKED_PLATFORMS += SUNW,UltraSPARC-IIe-NetraCT-60
-LINKED_PLATFORMS += SUNW,Sun-Blade-100
-LINKED_PLATFORMS += SUNW,Serverblade1
-LINKED_PLATFORMS += SUNW,Netra-CP2300
-
-#
-# install rule
-#
-$(ROOT_PSM_LIB_DIR)/%: % $(ROOT_PSM_LIB_DIR)
- $(INS.file)
-
-#
-# build rules
-#
-pics/%.o: ../../$(PLATFORM)/common/%.s
- $(AS) $(ASFLAGS) $< -o $@
- $(POST_PROCESS_O)
diff --git a/usr/src/lib/libc_psr/sun4u/sparc/Makefile b/usr/src/lib/libc_psr/sun4u/sparc/Makefile
deleted file mode 100644
index aef22af9ec..0000000000
--- a/usr/src/lib/libc_psr/sun4u/sparc/Makefile
+++ /dev/null
@@ -1,61 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-
-#
-# Platform specific Makefile for libc_psr.
-#
-
-CLASS = 32
-PLATFORM = sun4u
-
-OBJECTS = memcpy.o memset.o memcmp.o
-
-include ../Makefile.com
-
-ASFLAGS += -xarch=v8plusa -warn
-
-# Redefine shared object build rule to use $(LD) directly (this avoids .init
-# and .fini sections being added).
-
-BUILD.SO= $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(LDLIBS)
-
-.KEEP_STATE:
-
-MODULE = libc_psr.so.1
-LIBC_PSR_DIRS = $(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%/lib)
-LIBC_PSR_LINKS = $(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%/lib/$(MODULE))
-INS.slink6 = $(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/lib/$(MODULE) $@
-
-$(LIBC_PSR_DIRS):
- -$(INS.dir)
-
-$(LIBC_PSR_LINKS): $(LIBC_PSR_DIRS)
- -$(INS.slink6)
-
-all: $(LIBS)
-
-install: all $(LIBC_PSR_LINKS) $(ROOT_PSM_LIBS)
-
-include ../../Makefile.targ
diff --git a/usr/src/lib/libc_psr/sun4u/sparcv9/Makefile b/usr/src/lib/libc_psr/sun4u/sparcv9/Makefile
deleted file mode 100644
index d00fc7070e..0000000000
--- a/usr/src/lib/libc_psr/sun4u/sparcv9/Makefile
+++ /dev/null
@@ -1,63 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-#
-# Platform specific Makefile for libc_psr.
-#
-
-PLATFORM = sun4u
-CLASS = 64
-
-OBJECTS = memcpy.o memset.o memcmp.o
-
-include ../Makefile.com
-
-ASDEFS += -D__sparcv9
-ASFLAGS += -xarch=v9a
-
-include $(SRC)/Makefile.master.64
-
-# Redefine shared object build rule to use $(LD) directly (this avoids .init
-# and .fini sections being added).
-
-BUILD.SO= $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(LDLIBS)
-
-.KEEP_STATE:
-
-MODULE = libc_psr.so.1
-LIBC_PSR64_DIRS = $(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%/lib/$(MACH64))
-LIBC_PSR64_LINKS = $(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%/lib/$(MACH64)/$(MODULE))
-INS.slink6 = $(RM) -r $@; $(SYMLINK) ../../../$(PLATFORM)/lib/$(MACH64)/$(MODULE) $@
-
-$(LIBC_PSR64_DIRS):
- -$(INS.dir)
-
-$(LIBC_PSR64_LINKS): $(LIBC_PSR64_DIRS)
- -$(INS.slink6)
-
-all: $(LIBS)
-
-install: all $(LIBC_PSR64_LINKS) $(ROOT_PSM_LIB64_DIR)/$(LIBS)
-
-include ../../Makefile.targ
diff --git a/usr/src/lib/libc_psr/sun4u_hwcap1/Makefile.com b/usr/src/lib/libc_psr/sun4u_hwcap1/Makefile.com
deleted file mode 100644
index 40f0cae3e9..0000000000
--- a/usr/src/lib/libc_psr/sun4u_hwcap1/Makefile.com
+++ /dev/null
@@ -1,67 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
-#
-
-#
-# Create default so empty rules don't
-# confuse make
-#
-
-LIBRARY = libc_psr_hwcap1.a
-VERS = .1
-
-include $(SRC)/lib/Makefile.lib
-include $(SRC)/Makefile.psm
-
-#
-# Since libc_psr is strictly assembly, deactivate the CTF build logic.
-#
-CTFCONVERT_POST = :
-CTFMERGE_LIB = :
-
-LIBS = $(DYNLIB)
-IFLAGS = -I$(SRC)/uts/sun4u \
- -I$(ROOT)/usr/platform/sun4u/include
-# See note in memcpy.s for use of bst threshold.
-CPPFLAGS = -DBSTORE_SIZE=256 \
- -D_REENTRANT -D$(MACH) $(IFLAGS) $(CPPFLAGS.master)
-ASDEFS = -D__STDC__ -D_ASM $(CPPFLAGS)
-ASFLAGS = -P $(ASDEFS)
-
-MAPFILES = ../../sun4u/mapfile-vers $(MAPFILE.FLT)
-
-#
-# build rules
-#
-pics/%.o: ../../$(PLATFORM)/common/%.s
- $(AS) $(ASFLAGS) $< -o $@
- $(POST_PROCESS_O)
-
-pics/%.o: ../../$(COMPAT_PLAT)/common/%.s
- $(AS) $(ASFLAGS) $< -o $@
- $(POST_PROCESS_O)
-
diff --git a/usr/src/lib/libc_psr/sun4u_hwcap1/sparc/Makefile b/usr/src/lib/libc_psr/sun4u_hwcap1/sparc/Makefile
deleted file mode 100644
index b3b1b1a96f..0000000000
--- a/usr/src/lib/libc_psr/sun4u_hwcap1/sparc/Makefile
+++ /dev/null
@@ -1,63 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-
-#
-# Platform specific Makefile for libc_psr_hwcap1.
-#
-
-PLATFORM = sun4u-us3
-ALT_PLAT = sun4u_hwcap1
-COMPAT_PLAT = sun4u
-CLASS = 32
-
-OBJECTS = memcpy.o memset.o memcmp.o
-
-include ../Makefile.com
-
-ASFLAGS += -xarch=v8plusb
-
-# Redefine shared object build rule to use $(LD) directly (this avoids .init
-# and .fini sections being added).
-
-BUILD.SO= $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(LDLIBS)
-
-.KEEP_STATE:
-
-MODULE = libc_psr_hwcap1.so.1
-LIBC_PSR_DIR = $(ROOT_PSM_LIB_DIR)/libc_psr
-LIBC_PSR_LIB = $(LIBC_PSR_DIR)/$(MODULE)
-INS.libc = $(RM) -r $@; $(INS) -s -f $(@D) $(MODULE)
-
-$(LIBC_PSR_DIR):
- -$(INS.dir)
-
-$(LIBC_PSR_LIB): $(LIBC_PSR_DIR) $(MODULE)
- -$(INS.libc)
-
-all: $(LIBS)
-
-install: all $(LIBC_PSR_LIB)
-
-include ../../Makefile.targ
diff --git a/usr/src/lib/libc_psr/sun4u_hwcap1/sparcv9/Makefile b/usr/src/lib/libc_psr/sun4u_hwcap1/sparcv9/Makefile
deleted file mode 100644
index 0b6bf3fd01..0000000000
--- a/usr/src/lib/libc_psr/sun4u_hwcap1/sparcv9/Makefile
+++ /dev/null
@@ -1,66 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-
-#
-# Platform specific Makefile for libc_psr_hwcap1.
-#
-
-PLATFORM = sun4u-us3
-ALT_PLAT = sun4u_hwcap1
-COMPAT_PLAT = sun4u
-CLASS = 64
-
-OBJECTS = memcpy.o memset.o memcmp.o
-
-include ../Makefile.com
-
-ASDEFS += -D__sparcv9
-ASFLAGS += -xarch=v9b
-
-include $(SRC)/Makefile.master.64
-
-# Redefine shared object build rule to use $(LD) directly (this avoids .init
-# and .fini sections being added).
-
-BUILD.SO= $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(LDLIBS)
-
-.KEEP_STATE:
-
-MODULE = libc_psr_hwcap1.so.1
-LIBC_PSR64_DIR = $(ROOT_PSM_LIB_DIR)/$(MACH64)/libc_psr
-LIBC_PSR64_LIB = $(LIBC_PSR64_DIR)/$(MODULE)
-INS.libc.64 = $(RM) -r $@; $(INS) -s -f $(@D) $(MODULE)
-
-$(LIBC_PSR64_DIR):
- -$(INS.dir)
-
-$(LIBC_PSR64_LIB): $(LIBC_PSR64_DIR) $(MODULE)
- -$(INS.libc.64)
-
-all: $(LIBS)
-
-install: all $(LIBC_PSR64_LIB)
-
-include ../../Makefile.targ
diff --git a/usr/src/lib/libc_psr/sun4u_hwcap2/Makefile.com b/usr/src/lib/libc_psr/sun4u_hwcap2/Makefile.com
deleted file mode 100644
index 0a625fe91f..0000000000
--- a/usr/src/lib/libc_psr/sun4u_hwcap2/Makefile.com
+++ /dev/null
@@ -1,67 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
-#
-
-#
-# Create default so empty rules don't
-# confuse make
-#
-
-LIBRARY = libc_psr_hwcap2.a
-VERS = .1
-
-include $(SRC)/lib/Makefile.lib
-include $(SRC)/Makefile.psm
-
-#
-# Since libc_psr is strictly assembly, deactivate the CTF build logic.
-#
-CTFCONVERT_POST = :
-CTFMERGE_LIB = :
-
-LIBS = $(DYNLIB)
-IFLAGS = -I$(SRC)/uts/sun4u \
- -I$(ROOT)/usr/platform/sun4u/include
-# See note in memcpy.s for use of bst threshold.
-CPPFLAGS = -DBSTORE_SIZE=65536 -DPANTHER_ONLY \
- -D_REENTRANT -D$(MACH) $(IFLAGS) $(CPPFLAGS.master)
-ASDEFS = -D__STDC__ -D_ASM $(CPPFLAGS)
-ASFLAGS = -P $(ASDEFS)
-
-MAPFILES = ../../sun4u/mapfile-vers ../mapfile $(MAPFILE.FLT)
-
-#
-# build rules
-#
-pics/%.o: ../../$(PLATFORM)/common/%.s
- $(AS) $(ASFLAGS) $< -o $@
- $(POST_PROCESS_O)
-
-pics/%.o: ../../$(COMPAT_PLAT)/common/%.s
- $(AS) $(ASFLAGS) $< -o $@
- $(POST_PROCESS_O)
-
diff --git a/usr/src/lib/libc_psr/sun4u_hwcap2/sparc/Makefile b/usr/src/lib/libc_psr/sun4u_hwcap2/sparc/Makefile
deleted file mode 100644
index 3b143c6846..0000000000
--- a/usr/src/lib/libc_psr/sun4u_hwcap2/sparc/Makefile
+++ /dev/null
@@ -1,63 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-
-#
-# Platform specific Makefile for libc_psr_hwcap2.
-#
-
-PLATFORM = sun4u-us3
-ALT_PLAT = sun4u_hwcap2
-COMPAT_PLAT = sun4u
-CLASS = 32
-
-OBJECTS = memcpy.o memset.o memcmp.o
-
-include ../Makefile.com
-
-ASFLAGS += -xarch=v8plusb
-
-# Redefine shared object build rule to use $(LD) directly (this avoids .init
-# and .fini sections being added).
-
-BUILD.SO= $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(LDLIBS)
-
-.KEEP_STATE:
-
-MODULE = libc_psr_hwcap2.so.1
-LIBC_PSR_DIR = $(ROOT_PSM_LIB_DIR)/libc_psr
-LIBC_PSR_LIB = $(LIBC_PSR_DIR)/$(MODULE)
-INS.libc = $(RM) -r $@; $(INS) -s -f $(@D) $(MODULE)
-
-$(LIBC_PSR_DIR):
- -$(INS.dir)
-
-$(LIBC_PSR_LIB): $(LIBC_PSR_DIR) $(MODULE)
- -$(INS.libc)
-
-all: $(LIBS)
-
-install: all $(LIBC_PSR_LIB)
-
-include ../../Makefile.targ
diff --git a/usr/src/lib/libc_psr/sun4u_hwcap2/sparcv9/Makefile b/usr/src/lib/libc_psr/sun4u_hwcap2/sparcv9/Makefile
deleted file mode 100644
index ff80420951..0000000000
--- a/usr/src/lib/libc_psr/sun4u_hwcap2/sparcv9/Makefile
+++ /dev/null
@@ -1,66 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-
-#
-# Platform specific Makefile for libc_psr_hwcap2.
-#
-
-PLATFORM = sun4u-us3
-ALT_PLAT = sun4u_hwcap2
-COMPAT_PLAT = sun4u
-CLASS = 64
-
-OBJECTS = memcpy.o memset.o memcmp.o
-
-include ../Makefile.com
-
-ASDEFS += -D__sparcv9
-ASFLAGS += -xarch=v9b
-
-include $(SRC)/Makefile.master.64
-
-# Redefine shared object build rule to use $(LD) directly (this avoids .init
-# and .fini sections being added).
-
-BUILD.SO= $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(LDLIBS)
-
-.KEEP_STATE:
-
-MODULE = libc_psr_hwcap2.so.1
-LIBC_PSR64_DIR = $(ROOT_PSM_LIB_DIR)/$(MACH64)/libc_psr
-LIBC_PSR64_LIB = $(LIBC_PSR64_DIR)/$(MODULE)
-INS.libc.64 = $(RM) -r $@; $(INS) -f $(@D) $(MODULE)
-
-$(LIBC_PSR64_DIR):
- -$(INS.dir)
-
-$(LIBC_PSR64_LIB): $(LIBC_PSR64_DIR) $(MODULE)
- -$(INS.libc.64)
-
-all: $(LIBS)
-
-install: all $(LIBC_PSR64_LIB)
-
-include ../../Makefile.targ
diff --git a/usr/src/lib/libc_psr/sun4v/Makefile b/usr/src/lib/libc_psr/sun4v/Makefile
deleted file mode 100644
index 15d8ac8231..0000000000
--- a/usr/src/lib/libc_psr/sun4v/Makefile
+++ /dev/null
@@ -1,63 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-
-include $(SRC)/lib/Makefile.lib
-include $(SRC)/Makefile.psm
-
-PLATFORM = sun4v
-
-all := TARGET= all
-install := TARGET= install
-clean := TARGET= clean
-clobber := TARGET= clobber
-
-TOUCH = /usr/bin/touch
-
-MODULE = libc_psr.so.1
-
-$(ROOT_PSM_LIB_DIR):
- -$(INS.dir)
-
-$(ROOT_PSM_LIB_DIR)/$(MODULE): $(ROOT_PSM_LIB_DIR) $(MODULE)
- $(RM) -r $@; $(INS) -s -m $(FILEMODE) -f $(@D) $(MODULE)
-
-$(ROOT_PSM_LIB64_DIR):
- -$(INS.dir)
-
-$(ROOT_PSM_LIB64_DIR)/$(MODULE): $(ROOT_PSM_LIB64_DIR) $(MODULE)
- $(RM) -r $@; $(INS) -s -m $(FILEMODE) -f $(@D) $(MODULE)
-
-all: FRC
- @$(TOUCH) $(MODULE)
-
-install: all $(ROOT_PSM_LIB_DIR)/$(MODULE) $(ROOT_PSM_LIB64_DIR)/$(MODULE)
-
-clean clobber : FRC
- $(RM) $(MODULE)
-
-lint:
- @ $(ECHO) "Nothing to lint here: skipping"
-
-FRC:
diff --git a/usr/src/lib/libc_psr/sun4v_hwcap1/Makefile b/usr/src/lib/libc_psr/sun4v_hwcap1/Makefile
deleted file mode 100644
index 0ffd0fe46b..0000000000
--- a/usr/src/lib/libc_psr/sun4v_hwcap1/Makefile
+++ /dev/null
@@ -1,56 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
-#
-
-include ../../Makefile.lib
-
-PLATFORM= sun4v
-ALT_PLAT= sun4v_hwcap1
-
-SUBDIRS= $(MACH)
-SUBDIRS64= $(MACH64)
-
-all := TARGET= all
-install := TARGET= install
-clean := TARGET= clean
-clobber := TARGET= clobber
-
-.KEEP_STATE:
-
-all install clean clobber : lib32 \
- $(BUILD64) lib64
-
-lint:
- @ $(ECHO) "Nothing to lint here: skipping"
-
-lib32: $(SUBDIRS)
-
-lib64: $(SUBDIRS64)
-
-$(SUBDIRS) $(SUBDIRS64): FRC
- @cd $@; pwd; $(MAKE) $(TARGET)
-
-FRC:
diff --git a/usr/src/lib/libc_psr/sun4v_hwcap1/Makefile.com b/usr/src/lib/libc_psr/sun4v_hwcap1/Makefile.com
deleted file mode 100644
index 6d3709577a..0000000000
--- a/usr/src/lib/libc_psr/sun4v_hwcap1/Makefile.com
+++ /dev/null
@@ -1,53 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
-#
-
-LIBRARY = libc_psr_hwcap1.a
-VERS = .1
-
-include $(SRC)/lib/Makefile.lib
-include $(SRC)/Makefile.psm
-
-#
-# Since libc_psr is strictly assembly, deactivate the CTF build logic.
-#
-CTFCONVERT_POST = :
-CTFMERGE_LIB = :
-
-LIBS = $(DYNLIB)
-IFLAGS = -I$(SRC)/uts/sun4v -I$(ROOT)/usr/include/v9
-CPPFLAGS = -D_REENTRANT -D$(MACH) -DNIAGARA_IMPL $(IFLAGS) $(CPPFLAGS.master)
-ASDEFS = -D__STDC__ -D_ASM $(CPPFLAGS)
-ASFLAGS = -P $(ASDEFS)
-
-MAPFILES = ../../sun4v/mapfile-vers ../mapfile $(MAPFILE.FLT)
-
-#
-# build rules
-#
-pics/%.o: ../../$(PLATFORM)/common/%.s
- $(AS) $(ASFLAGS) $< -o $@
- $(POST_PROCESS_O)
diff --git a/usr/src/lib/libc_psr/sun4v_hwcap1/sparc/Makefile b/usr/src/lib/libc_psr/sun4v_hwcap1/sparc/Makefile
deleted file mode 100644
index af88210a82..0000000000
--- a/usr/src/lib/libc_psr/sun4v_hwcap1/sparc/Makefile
+++ /dev/null
@@ -1,64 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-
-#
-# Platform specific Makefile for libc_psr.
-#
-
-PLATFORM = sun4v
-ALT_PLAT = sun4v_hwcap1
-CLASS = 32
-
-OBJECTS = memcpy.o memset.o
-
-include ../Makefile.com
-
-ASFLAGS += -xarch=v8plus
-
-# Redefine shared object build rule to use $(LD) directly (this avoids .init
-# and .fini sections being added).
-
-BUILD.SO= $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(LDLIBS)
-
-.KEEP_STATE:
-
-MODULE = libc_psr_hwcap1.so.1
-LIBC_PSR_DIR = $(ROOT_PSM_LIB_DIR)/libc_psr
-LIBC_PSR_LIB = $(LIBC_PSR_DIR)/$(MODULE)
-INS.libc = $(RM) -r $@; $(INS) -s -m $(FILEMODE) -f $(@D) $(MODULE)
-
-$(LIBC_PSR_LIB) := FILEMODE= 0755
-
-$(LIBC_PSR_DIR):
- -$(INS.dir)
-
-$(LIBC_PSR_LIB): $(LIBC_PSR_DIR) $(MODULE)
- -$(INS.libc)
-
-all: $(LIBS)
-
-install: all $(LIBC_PSR_LIB)
-
-include ../../Makefile.targ
diff --git a/usr/src/lib/libc_psr/sun4v_hwcap1/sparcv9/Makefile b/usr/src/lib/libc_psr/sun4v_hwcap1/sparcv9/Makefile
deleted file mode 100644
index c2f495bea0..0000000000
--- a/usr/src/lib/libc_psr/sun4v_hwcap1/sparcv9/Makefile
+++ /dev/null
@@ -1,68 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-
-#
-# Platform specific Makefile for libc_psr.
-#
-
-PLATFORM = sun4v
-ALT_PLAT = sun4v_hwcap1
-
-CLASS = 64
-
-OBJECTS = memcpy.o memset.o
-
-include ../Makefile.com
-
-ASDEFS += -D__sparcv9
-ASFLAGS += -xarch=v9
-
-include $(SRC)/Makefile.master.64
-
-# Redefine shared object build rule to use $(LD) directly (this avoids .init
-# and .fini sections being added).
-
-BUILD.SO= $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(LDLIBS)
-
-.KEEP_STATE:
-
-MODULE = libc_psr_hwcap1.so.1
-LIBC_PSR64_DIR = $(ROOT_PSM_LIB_DIR)/$(MACH64)/libc_psr
-LIBC_PSR64_LIB = $(LIBC_PSR64_DIR)/$(MODULE)
-INS.libc.64 = $(RM) -r $@; $(INS) -m $(FILEMODE) -f $(@D) $(MODULE)
-
-$(LIBC_PSR64_LIB) := FILEMODE= 0755
-
-$(LIBC_PSR64_DIR):
- -$(INS.dir)
-
-$(LIBC_PSR64_LIB): $(LIBC_PSR64_DIR) $(MODULE)
- -$(INS.libc.64)
-
-all: $(LIBS)
-
-install: all $(LIBC_PSR64_LIB)
-
-include ../../Makefile.targ
diff --git a/usr/src/lib/libc_psr/sun4v_hwcap2/Makefile b/usr/src/lib/libc_psr/sun4v_hwcap2/Makefile
deleted file mode 100644
index a3a7cdb544..0000000000
--- a/usr/src/lib/libc_psr/sun4v_hwcap2/Makefile
+++ /dev/null
@@ -1,55 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
-#
-
-include ../../Makefile.lib
-
-PLATFORM= sun4v
-
-SUBDIRS= $(MACH)
-SUBDIRS64= $(MACH64)
-
-all := TARGET= all
-install := TARGET= install
-clean := TARGET= clean
-clobber := TARGET= clobber
-
-.KEEP_STATE:
-
-all install clean clobber : lib32 \
- $(BUILD64) lib64
-
-lint:
- @ $(ECHO) "Nothing to lint here: skipping"
-
-lib32: $(SUBDIRS)
-
-lib64: $(SUBDIRS64)
-
-$(SUBDIRS) $(SUBDIRS64): FRC
- @cd $@; pwd; $(MAKE) $(TARGET)
-
-FRC:
diff --git a/usr/src/lib/libc_psr/sun4v_hwcap2/Makefile.com b/usr/src/lib/libc_psr/sun4v_hwcap2/Makefile.com
deleted file mode 100644
index 846d33737f..0000000000
--- a/usr/src/lib/libc_psr/sun4v_hwcap2/Makefile.com
+++ /dev/null
@@ -1,54 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
-#
-
-LIBRARY = libc_psr_hwcap2.a
-VERS = .1
-
-include $(SRC)/lib/Makefile.lib
-include $(SRC)/Makefile.psm
-
-#
-# Since libc_psr is strictly assembly, deactivate the CTF build logic.
-#
-CTFCONVERT_POST = :
-CTFMERGE_LIB = :
-
-LIBS = $(DYNLIB)
-IFLAGS = -I$(SRC)/uts/sun4v \
- -I$(ROOT)/usr/platform/sun4v/include -I$(ROOT)/usr/include/v9
-CPPFLAGS = -D_REENTRANT -D$(MACH) -DNIAGARA2_IMPL $(IFLAGS) $(CPPFLAGS.master)
-ASDEFS = -D__STDC__ -D_ASM $(CPPFLAGS)
-ASFLAGS = -P $(ASDEFS)
-
-MAPFILES = ../../sun4v/mapfile-vers ../mapfile $(MAPFILE.FLT)
-
-#
-# build rules
-#
-pics/%.o: ../../$(PLATFORM)/common/%.s
- $(AS) $(ASFLAGS) $< -o $@
- $(POST_PROCESS_O)
diff --git a/usr/src/lib/libc_psr/sun4v_hwcap2/sparc/Makefile b/usr/src/lib/libc_psr/sun4v_hwcap2/sparc/Makefile
deleted file mode 100644
index d0074ac473..0000000000
--- a/usr/src/lib/libc_psr/sun4v_hwcap2/sparc/Makefile
+++ /dev/null
@@ -1,63 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-
-#
-# Platform specific Makefile for libc_psr.
-#
-
-PLATFORM = sun4v
-CLASS = 32
-
-OBJECTS = memcpy.o memset.o
-
-include ../Makefile.com
-
-ASFLAGS += -xarch=v8plusa
-
-# Redefine shared object build rule to use $(LD) directly (this avoids .init
-# and .fini sections being added).
-
-BUILD.SO = $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(LDLIBS)
-
-.KEEP_STATE:
-
-MODULE = libc_psr_hwcap2.so.1
-LIBC_PSR_DIR = $(ROOT_PSM_LIB_DIR)/libc_psr
-LIBC_PSR_LIB = $(LIBC_PSR_DIR)/$(MODULE)
-INS.libc = $(RM) -r $@; $(INS) -s -m $(FILEMODE) -f $(@D) $(MODULE)
-
-$(LIBC_PSR_LIB) := FILEMODE= 0755
-
-$(LIBC_PSR_DIR):
- -$(INS.dir)
-
-$(LIBC_PSR_LIB): $(LIBC_PSR_DIR) $(MODULE)
- -$(INS.libc)
-
-all: $(LIBS)
-
-install: all $(LIBC_PSR_LIB)
-
-include ../../Makefile.targ
diff --git a/usr/src/lib/libc_psr/sun4v_hwcap2/sparcv9/Makefile b/usr/src/lib/libc_psr/sun4v_hwcap2/sparcv9/Makefile
deleted file mode 100644
index 356e58462e..0000000000
--- a/usr/src/lib/libc_psr/sun4v_hwcap2/sparcv9/Makefile
+++ /dev/null
@@ -1,65 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-#
-# Platform specific Makefile for libc_psr.
-#
-
-PLATFORM = sun4v
-CLASS = 64
-
-OBJECTS = memcpy.o memset.o
-
-include ../Makefile.com
-
-ASDEFS += -D__sparcv9
-ASFLAGS += -xarch=v9a
-
-include $(SRC)/Makefile.master.64
-
-# Redefine shared object build rule to use $(LD) directly (this avoids .init
-# and .fini sections being added).
-
-BUILD.SO = $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(LDLIBS)
-
-.KEEP_STATE:
-
-MODULE = libc_psr_hwcap2.so.1
-LIBC_PSR64_DIR = $(ROOT_PSM_LIB_DIR)/$(MACH64)/libc_psr
-LIBC_PSR64_LIB = $(LIBC_PSR64_DIR)/$(MODULE)
-INS.libc.64 = $(RM) -r $@; $(INS) -m $(FILEMODE) -f $(@D) $(MODULE)
-
-$(LIBC_PSR64_LIB) := FILEMODE= 0755
-
-$(LIBC_PSR64_DIR):
- -$(INS.dir)
-
-$(LIBC_PSR64_LIB): $(LIBC_PSR64_DIR) $(MODULE)
- -$(INS.libc.64)
-
-all: $(LIBS)
-
-install: all $(LIBC_PSR64_LIB)
-
-include ../../Makefile.targ
diff --git a/usr/src/lib/libmd/Makefile b/usr/src/lib/libmd/Makefile
index 16ca733489..ddd89d7382 100644
--- a/usr/src/lib/libmd/Makefile
+++ b/usr/src/lib/libmd/Makefile
@@ -18,19 +18,16 @@
#
# CDDL HEADER END
#
+
#
-# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
#
-include ../Makefile.lib
+include $(SRC)/lib/Makefile.lib
-$(SPARC_BLD)PLATFORMS= sun4u sun4v
+$(SPARC_BLD)CAPDIR = capabilities
-SUBDIRS= $(MACH) $(PLATFORMS)
-$(BUILD64)SUBDIRS += $(MACH64)
+SUBDIRS= $(MACH) $(BUILD64) $(MACH64)
HDRS = md4.h md5.h sha1.h sha2.h
HDRDIR = common
@@ -43,16 +40,19 @@ lint := TARGET= lint
.KEEP_STATE:
-.PARALLEL: $(SUBDIRS)
+.PARALLEL: $(SUBDIRS)
-all clean clobber install lint: $(SUBDIRS)
+all clean clobber install lint: \
+ $(CAPDIR) .WAIT $(SUBDIRS)
install_h: $(ROOTHDRS)
check: $(CHECKHDRS)
-$(SUBDIRS): FRC
- @cd $@; pwd; $(MAKE) $(TARGET)
+$(CAPDIR) \
+$(SUBDIRS): FRC
+ @cd $@; pwd; $(MAKE) $(TARGET)
+
FRC:
-include ../Makefile.targ
+include $(SRC)/lib/Makefile.targ
diff --git a/usr/src/lib/libmd/Makefile.com b/usr/src/lib/libmd/Makefile.com
index 1b79026d0e..af8cac390b 100644
--- a/usr/src/lib/libmd/Makefile.com
+++ b/usr/src/lib/libmd/Makefile.com
@@ -18,96 +18,23 @@
#
# CDDL HEADER END
#
+
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
#
-# $LIBRARY is set in lower makefiles so we can have platform and
-# processor optimised versions of this library via libmd_psr and libmd_hwcapN
-
-#LIBRARY= libmd.a
-VERS= .1
-
-OBJECTS= md4.o md5.o $(MD5_PSR_OBJECTS) sha1.o $(SHA1_PSR_OBJECTS) \
- sha2.o $(SHA2_PSR_OBJECTS)
-
-# Use $(SRC) to include makefiles rather than ../../ because the
-# platform subdirs are one level deeper so it would be ../../../ for them
-include $(SRC)/lib/Makefile.lib
-include $(SRC)/lib/Makefile.rootfs
-
LIBS = $(DYNLIB) $(LINTLIB)
-SRCS = \
- $(COMDIR)/md4/md4.c \
- $(COMDIR)/md5/md5.c \
- $(COMDIR)/sha1/sha1.c \
- $(COMDIR)/sha2/sha2.c
-
-COMDIR= $(SRC)/common/crypto
-
-$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
-LDLIBS += -lc
+SRCS = $(COMDIR)/md4/md4.c \
+ $(COMDIR)/md5/md5.c \
+ $(COMDIR)/sha1/sha1.c \
+ $(COMDIR)/sha2/sha2.c
-SRCDIR = ../common
COMDIR = $(SRC)/common/crypto
+SRCDIR = ../common
+MAPFILEDIR = $(SRCDIR)
-CFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS)
-CFLAGS64 += $(C_BIGPICFLAGS)
-CPPFLAGS += -I$(SRCDIR)
-
-ROOTLINT= $(LINTSRC:%=$(ROOTLIBDIR)/%)
-
-.KEEP_STATE:
-
-all: $(LIBS)
-
-lint: lintcheck
-
-pics/%.o: $(COMDIR)/md4/%.c
- $(COMPILE.c) -I$(COMDIR)/md4 -o $@ $<
- $(POST_PROCESS_O)
-
-pics/%.o: $(COMDIR)/md5/%.c
- $(COMPILE.c) -I$(COMDIR)/md5 $(INLINES) -o $@ $<
- $(POST_PROCESS_O)
-
-pics/%.o: $(COMDIR)/sha1/%.c
- $(COMPILE.c) -I$(COMDIR)/sha1 -o $@ $<
- $(POST_PROCESS_O)
-
-pics/%.o: $(COMDIR)/sha1/sparc/$(PLATFORM)/sha1_asm.s
- $(COMPILE.s) -P -DPIC -D_ASM -o $@ $<
- $(POST_PROCESS_O)
-
-pics/%.o: $(COMDIR)/sha2/%.c
- $(COMPILE.c) -I$(COMDIR)/sha2 -o $@ $<
- $(POST_PROCESS_O)
-
-#
-# Used when building links in /platform/$(PLATFORM)/lib for libmd_psr.so.1
-#
-
-LIBMD_PSR_DIRS = $(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%/lib)
-LIBMD_PSR_LINKS = $(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%/lib/$(MODULE))
-
-LIBMD_PSR64_DIRS = $(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%/lib/$(MACH64))
-LIBMD_PSR64_LINKS = $(LINKED_PLATFORMS:%=$(ROOT_PLAT_DIR)/%/lib/$(MACH64)/$(MODULE))
-
-INS.slink6 = $(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/lib/$(MODULE) $@
-
-INS.slink64 = $(RM) -r $@; $(SYMLINK) ../../../$(PLATFORM)/lib/$(MACH64)/$(MODULE) $@
-
-$(LIBMD_PSR_DIRS):
- -$(INS.dir)
-
-$(LIBMD_PSR_LINKS): $(LIBMD_PSR_DIRS)
- -$(INS.slink6)
-
-$(LIBMD_PSR64_DIRS):
- -$(INS.dir)
-
-$(LIBMD_PSR64_LINKS): $(LIBMD_PSR64_DIRS)
- -$(INS.slink64)
+CFLAGS += $(CCVERBOSE)
+CPPFLAGS += -I$(SRCDIR)
+LDLIBS += -lc
-include $(SRC)/lib/Makefile.targ
+$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
diff --git a/usr/src/lib/libc_psr/sun4u_hwcap2/Makefile b/usr/src/lib/libmd/Makefile.targ
index 564c1050ce..58ec7b30e5 100644
--- a/usr/src/lib/libc_psr/sun4u_hwcap2/Makefile
+++ b/usr/src/lib/libmd/Makefile.targ
@@ -18,39 +18,32 @@
#
# CDDL HEADER END
#
+
#
-# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
#
-include ../../Makefile.lib
-
-PLATFORM= sun4u-us3
-ALT_PLAT= sun4u_hwcap2
-
-SUBDIRS= $(MACH)
-SUBDIRS64= $(MACH64)
-
-all := TARGET= all
-install := TARGET= install
-clean := TARGET= clean
-clobber := TARGET= clobber
-
-.KEEP_STATE:
+COMDIR = $(SRC)/common/crypto
-all install clean clobber : lib32 \
- $(BUILD64) lib64
+pics/%.o: $(COMDIR)/md4/%.c
+ $(COMPILE.c) -I$(COMDIR)/md4 -o $@ $<
+ $(POST_PROCESS_O)
-lint:
- @ $(ECHO) "Nothing to lint here: skipping"
+pics/%.o: $(COMDIR)/md5/%.c
+ $(COMPILE.c) -I$(COMDIR)/md5 $(INLINES) -o $@ $<
+ $(POST_PROCESS_O)
-lib32: $(SUBDIRS)
+pics/%.o: $(COMDIR)/sha1/%.c
+ $(COMPILE.c) -I$(COMDIR)/sha1 -o $@ $<
+ $(POST_PROCESS_O)
-lib64: $(SUBDIRS64)
+pics/sha1_asm.o: $(COMDIR)/sha1/sparc/$(PLATFORM)/sha1_asm.s
+ $(COMPILE.s) -o pics/sha1_asm.o \
+ $(COMDIR)/sha1/sparc/$(PLATFORM)/sha1_asm.s
+ $(POST_PROCESS_O)
-$(SUBDIRS) $(SUBDIRS64): FRC
- @cd $@; pwd; $(MAKE) $(TARGET)
+pics/%.o: $(COMDIR)/sha2/%.c
+ $(COMPILE.c) -I$(COMDIR)/sha2 -o $@ $<
+ $(POST_PROCESS_O)
-FRC:
+include $(SRC)/lib/Makefile.targ
diff --git a/usr/src/lib/libmd/amd64/Makefile b/usr/src/lib/libmd/amd64/Makefile
index be5476ac90..3872749fbb 100644
--- a/usr/src/lib/libmd/amd64/Makefile
+++ b/usr/src/lib/libmd/amd64/Makefile
@@ -19,40 +19,52 @@
# CDDL HEADER END
#
#
-# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
#
-LIBRARY= libmd.a
+LIBRARY = libmd.a
+VERS = .1
+
+OBJECTS = md4.o md5.o sha1.o sha2.o
-MD5_PSR_OBJECTS = md5_amd64.o
-SHA1_PSR_OBJECTS = sha1-x86_64.o
-SHA2_PSR_OBJECTS = sha512-x86_64.o sha256-x86_64.o
+include $(SRC)/lib/Makefile.lib
+include $(SRC)/lib/Makefile.rootfs
+include $(SRC)/lib/Makefile.lib.64
+include ../Makefile.com
-include ../Makefile.com
-include $(SRC)/lib/Makefile.lib.64
+EXTPICS = pics/md5_amd64.o \
+ pics/sha1-x86_64.o \
+ pics/sha512-x86_64.o \
+ pics/sha256-x86_64.o
-CLEANFILES += md5_amd64.s sha1-x86_64.s sha512-x86_64.s sha256-x86_64.s
+CLEANFILES += $(EXTPICS) \
+ $(EXTPICS:pics/%.o=%.s)
# This prevents <sys/asm_linkage.h> from including C source:
AS_CPPFLAGS += -D_ASM
-install: all $(ROOTLIBS64) $(ROOTLINKS64) $(ROOTLINT64)
+.KEPP_STATE:
+
+all: $(LIBS)
+
+install: all $(ROOTLIBS64) $(ROOTLINKS64) $(ROOTLINT64)
+
+lint: lintcheck
pics/%.o: %.s
- $(COMPILE.s) -o $@ ${@F:.o=.s}
- $(POST_PROCESS_O)
+ $(COMPILE.s) -o $@ ${@F:.o=.s}
+ $(POST_PROCESS_O)
md5_amd64.s: $(COMDIR)/md5/amd64/md5_amd64.pl
- $(PERL) $? $@
+ $(PERL) $? $@
sha1-x86_64.s: $(COMDIR)/sha1/amd64/sha1-x86_64.pl
- $(PERL) $? $@
+ $(PERL) $? $@
sha512-x86_64.s: $(COMDIR)/sha2/amd64/sha512-x86_64.pl
- $(PERL) $? $@
+ $(PERL) $? $@
sha256-x86_64.s: $(COMDIR)/sha2/amd64/sha512-x86_64.pl
- $(PERL) $? $@
+ $(PERL) $? $@
+
+include ../Makefile.targ
diff --git a/usr/src/lib/libmd/capabilities/Makefile b/usr/src/lib/libmd/capabilities/Makefile
new file mode 100644
index 0000000000..51c8921240
--- /dev/null
+++ b/usr/src/lib/libmd/capabilities/Makefile
@@ -0,0 +1,49 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+include $(SRC)/lib/Makefile.lib
+
+# Each target directory is responsible for making a symbol capabilities object.
+$(SPARC_BLD)SUBDIRS = sun4u sun4v
+$(INTEL_BLD)SUBDIRS =
+
+all := TARGET= all
+clean := TARGET= clean
+clobber := TARGET= clobber
+install := TARGET= install
+
+.KEEP_STATE:
+
+.PARALLEL: $(SUBDIRS)
+
+all clean clobber install: \
+ $(SUBDIRS)
+
+lint:
+
+$(SUBDIRS): FRC
+ @cd $@; pwd; $(MAKE) $(TARGET)
+
+FRC:
diff --git a/usr/src/lib/libmd/capabilities/Makefile.com b/usr/src/lib/libmd/capabilities/Makefile.com
new file mode 100644
index 0000000000..7c550fb533
--- /dev/null
+++ b/usr/src/lib/libmd/capabilities/Makefile.com
@@ -0,0 +1,34 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+#include ../../../Makefile.com
+
+MAPFILE-CAP = ../common/mapfile-cap
+MAPOPT-CAP = $(MAPFILE-CAP:%=-M%)
+
+OBJCAP = pics/objcap.o
+SYMCAP = pics/symcap.o
+
+CLOBBERFILES += $(OBJCAP) $(SYMCAP)
diff --git a/usr/src/lib/libmd/capabilities/Makefile.targ b/usr/src/lib/libmd/capabilities/Makefile.targ
new file mode 100644
index 0000000000..86815a1987
--- /dev/null
+++ b/usr/src/lib/libmd/capabilities/Makefile.targ
@@ -0,0 +1,71 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+#
+# libmd provides two families of optimized functions for SPARC platforms,
+# one for sun4u, and one for sun4v. Previous implementations provided
+# these families as libmd_psr.so.1 libraries, triggered by tagging libmd.so.1
+# as an auxiliary filter. These psr filtees were installed under
+# /usr/platform/sun4u/lib, and numerous symlinks were established to provide
+# the necessary $PLATFORM names, ie:
+#
+# /usr/platform/SUNW,Ultra-2/lib/libmd_psr.so.1 -> ../../../sun4u
+# /usr/platform/SUNW,Ultra-4/lib/libmd_psr.so.1 -> ../../../sun4u
+# ....
+#
+# and:
+#
+# /usr/platform/SUNW,Netra-CP3060/lib/libmd_psr.so.1 -> ../../sun4v
+# /usr/platform/SUNW,Netra-CP3260/lib/libmd_psr.so.1 -> ../../sun4v/
+# ....
+#
+# The objects that made up these filtees are now combined into one relocatable
+# object, pics/objcap.o, using ../common/mapfile-cap. This mapfile identifies
+# the machine hardware name, together with establishing the global symbols that
+# should be exported to define each family.
+#
+# This object capabilities relocatable object is then translated into a symbol
+# capabilities relocatable object, pics/symcap.o.
+#
+# The sun4u and sun4v families of symbol capabilities object are eventually
+# included in the final build of libmd.so.1.
+
+$(SYMCAP): $(OBJCAP)
+$(OBJCAP): $(PICS)
+$(PICS): pics
+
+# Combine all pic objects into one relocatable object. Assign any capabilities
+# to this object, and define the interface.
+
+pics/objcap.o: $(PICS) $(MAPFILE-CAP)
+ $(LD) -r -o $@ $(MAPOPT-CAP) -Breduce $(PICS)
+
+# Convert the combined object capabilities object into a symbol capabilities
+# object.
+
+pics/symcap.o: $(OBJCAP)
+ $(LD) -r -o $@ -z symbolcap $(OBJCAP)
+
+include ../../../Makefile.targ
diff --git a/usr/src/lib/libmd/capabilities/sun4u/Makefile b/usr/src/lib/libmd/capabilities/sun4u/Makefile
new file mode 100644
index 0000000000..77aed04fa7
--- /dev/null
+++ b/usr/src/lib/libmd/capabilities/sun4u/Makefile
@@ -0,0 +1,47 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+include $(SRC)/lib/Makefile.lib
+
+SUBDIRS = $(MACH) $(BUILD64) $(MACH64)
+
+all := TARGET= all
+clean := TARGET= clean
+clobber := TARGET= clobber
+install := TARGET= install
+
+.KEEP_STATE:
+
+.PARALLEL: $(SUBDIRS)
+
+all clean clobber install: \
+ $(SUBDIRS)
+
+lint:
+
+$(SUBDIRS): FRC
+ @cd $@; pwd; $(MAKE) $(TARGET)
+
+FRC:
diff --git a/usr/src/lib/libmd/capabilities/sun4u/Makefile.com b/usr/src/lib/libmd/capabilities/sun4u/Makefile.com
new file mode 100644
index 0000000000..8622e03cb4
--- /dev/null
+++ b/usr/src/lib/libmd/capabilities/sun4u/Makefile.com
@@ -0,0 +1,39 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+PLATFORM = sun4u
+
+include ../../Makefile.com
+
+OBJECTS = md5.o sha1.o sha1_asm.o
+
+include $(SRC)/lib/Makefile.lib
+
+INLINES = $(COMDIR)/md5/$(MACH)/$(PLATFORM)/byteswap.il
+
+AS_CPPFLAGS += -D__STDC__ -D_ASM -DPIC -D_REENTRANT -D$(MACH)
+ASFLAGS += $(AS_PICFLAGS) -P
+CFLAGS += $(CCVERBOSE) -xarch=sparcvis
+CPPFLAGS += -D$(PLATFORM) -DVIS_SHA1
diff --git a/usr/src/lib/libc/sparc_hwcap1/sparcv9/mapfile b/usr/src/lib/libmd/capabilities/sun4u/Makefile.targ
index 0ee5bb382b..63e36816cc 100644
--- a/usr/src/lib/libc/sparc_hwcap1/sparcv9/mapfile
+++ b/usr/src/lib/libmd/capabilities/sun4u/Makefile.targ
@@ -19,11 +19,7 @@
# CDDL HEADER END
#
#
-# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
#
-$mapfile_version 2
-
-CAPABILITY {
- hw_1 += 0x10000;
-};
+include ../../Makefile.targ
diff --git a/usr/src/lib/libmd/capabilities/sun4u/common/mapfile-cap b/usr/src/lib/libmd/capabilities/sun4u/common/mapfile-cap
new file mode 100644
index 0000000000..1e7c55abca
--- /dev/null
+++ b/usr/src/lib/libmd/capabilities/sun4u/common/mapfile-cap
@@ -0,0 +1,40 @@
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+$mapfile_version 2
+
+CAPABILITY sun4u {
+ MACHINE = sun4u;
+};
+
+SYMBOL_SCOPE {
+ global:
+ MD5Init;
+ MD5Update;
+ MD5Final;
+ SHA1Init;
+ SHA1Update;
+ SHA1Final;
+ local:
+ *;
+};
diff --git a/usr/src/lib/libmd/capabilities/sun4u/sparc/Makefile b/usr/src/lib/libmd/capabilities/sun4u/sparc/Makefile
new file mode 100644
index 0000000000..99651943ca
--- /dev/null
+++ b/usr/src/lib/libmd/capabilities/sun4u/sparc/Makefile
@@ -0,0 +1,34 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+include ../Makefile.com
+
+ASFLAGS += -xarch=v8plusa -warn
+
+.KEEP_STATE:
+
+all install: $(SYMCAP)
+
+include ../Makefile.targ
diff --git a/usr/src/lib/libmd/capabilities/sun4u/sparcv9/Makefile b/usr/src/lib/libmd/capabilities/sun4u/sparcv9/Makefile
new file mode 100644
index 0000000000..183da1f33f
--- /dev/null
+++ b/usr/src/lib/libmd/capabilities/sun4u/sparcv9/Makefile
@@ -0,0 +1,36 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+include ../Makefile.com
+include $(SRC)/lib/Makefile.lib.64
+
+.KEEP_STATE:
+
+AS_CPPFLAGS += -D__sparcv9
+ASFLAGS += -xarch=v9a
+
+all install: $(SYMCAP)
+
+include ../Makefile.targ
diff --git a/usr/src/lib/libmd/capabilities/sun4v/Makefile b/usr/src/lib/libmd/capabilities/sun4v/Makefile
new file mode 100644
index 0000000000..77aed04fa7
--- /dev/null
+++ b/usr/src/lib/libmd/capabilities/sun4v/Makefile
@@ -0,0 +1,47 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+include $(SRC)/lib/Makefile.lib
+
+SUBDIRS = $(MACH) $(BUILD64) $(MACH64)
+
+all := TARGET= all
+clean := TARGET= clean
+clobber := TARGET= clobber
+install := TARGET= install
+
+.KEEP_STATE:
+
+.PARALLEL: $(SUBDIRS)
+
+all clean clobber install: \
+ $(SUBDIRS)
+
+lint:
+
+$(SUBDIRS): FRC
+ @cd $@; pwd; $(MAKE) $(TARGET)
+
+FRC:
diff --git a/usr/src/lib/libmd/capabilities/sun4v/Makefile.com b/usr/src/lib/libmd/capabilities/sun4v/Makefile.com
new file mode 100644
index 0000000000..2b1b457197
--- /dev/null
+++ b/usr/src/lib/libmd/capabilities/sun4v/Makefile.com
@@ -0,0 +1,38 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+PLATFORM = sun4v
+
+include ../../Makefile.com
+
+OBJECTS = md5.o
+
+include $(SRC)/lib/Makefile.lib
+
+INLINES = $(COMDIR)/md5/$(MACH)/$(PLATFORM)/byteswap.il
+
+AS_CPPFLAGS += -D__STDC__ -D_ASM -DPIC -D_REENTRANT -D$(MACH)
+ASFLAGS += $(AS_PICFLAGS) -P
+CFLAGS += $(CCVERBOSE) -xarch=sparcvis
+CPPFLAGS += -D$(PLATFORM)
diff --git a/usr/src/lib/libc/sparc_hwcap1/sparc/mapfile b/usr/src/lib/libmd/capabilities/sun4v/Makefile.targ
index 0ee5bb382b..63e36816cc 100644
--- a/usr/src/lib/libc/sparc_hwcap1/sparc/mapfile
+++ b/usr/src/lib/libmd/capabilities/sun4v/Makefile.targ
@@ -19,11 +19,7 @@
# CDDL HEADER END
#
#
-# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
#
-$mapfile_version 2
-
-CAPABILITY {
- hw_1 += 0x10000;
-};
+include ../../Makefile.targ
diff --git a/usr/src/lib/libmd/capabilities/sun4v/common/mapfile-cap b/usr/src/lib/libmd/capabilities/sun4v/common/mapfile-cap
new file mode 100644
index 0000000000..72b5738c25
--- /dev/null
+++ b/usr/src/lib/libmd/capabilities/sun4v/common/mapfile-cap
@@ -0,0 +1,37 @@
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+$mapfile_version 2
+
+CAPABILITY sun4v {
+ MACHINE = sun4v;
+};
+
+SYMBOL_SCOPE {
+ global:
+ MD5Init;
+ MD5Update;
+ MD5Final;
+ local:
+ *;
+};
diff --git a/usr/src/lib/libmd/capabilities/sun4v/sparc/Makefile b/usr/src/lib/libmd/capabilities/sun4v/sparc/Makefile
new file mode 100644
index 0000000000..99651943ca
--- /dev/null
+++ b/usr/src/lib/libmd/capabilities/sun4v/sparc/Makefile
@@ -0,0 +1,34 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+include ../Makefile.com
+
+ASFLAGS += -xarch=v8plusa -warn
+
+.KEEP_STATE:
+
+all install: $(SYMCAP)
+
+include ../Makefile.targ
diff --git a/usr/src/lib/libmd/capabilities/sun4v/sparcv9/Makefile b/usr/src/lib/libmd/capabilities/sun4v/sparcv9/Makefile
new file mode 100644
index 0000000000..65cdc485a4
--- /dev/null
+++ b/usr/src/lib/libmd/capabilities/sun4v/sparcv9/Makefile
@@ -0,0 +1,36 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+include ../Makefile.com
+include $(SRC)/lib/Makefile.lib.64
+
+AS_CPPFLAGS += -D__sparcv9
+ASFLAGS += -xarch=v9a
+
+.KEEP_STATE:
+
+all install: $(SYMCAP)
+
+include ../Makefile.targ
diff --git a/usr/src/lib/libmd/i386/Makefile b/usr/src/lib/libmd/i386/Makefile
index 2b05624aa1..3e6fe00e17 100644
--- a/usr/src/lib/libmd/i386/Makefile
+++ b/usr/src/lib/libmd/i386/Makefile
@@ -18,14 +18,26 @@
#
# CDDL HEADER END
#
+
#
-# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
#
-# ident "%Z%%M% %I% %E% SMI"
-LIBRARY= libmd.a
+LIBRARY = libmd.a
+VERS = .1
+
+OBJECTS = md4.o md5.o sha1.o sha2.o
+
+include $(SRC)/lib/Makefile.lib
+include $(SRC)/lib/Makefile.rootfs
+include ../Makefile.com
+
+.KEEP_STATE:
+
+all: $(LIBS)
+
+install: all $(ROOTLIBS) $(ROOTLINKS) $(ROOTLINT)
-include ../Makefile.com
+lint: lintcheck
-install: all $(ROOTLIBS) $(ROOTLINKS) $(ROOTLINT)
+include ../Makefile.targ
diff --git a/usr/src/lib/libmd/sparc/Makefile b/usr/src/lib/libmd/sparc/Makefile
index ccce8c78b2..5f491cc9af 100644
--- a/usr/src/lib/libmd/sparc/Makefile
+++ b/usr/src/lib/libmd/sparc/Makefile
@@ -18,15 +18,29 @@
#
# CDDL HEADER END
#
-# ident "%Z%%M% %I% %E% SMI"
#
-# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+LIBRARY = libmd.a
+VERS = .1
+
+OBJECTS = md4.o md5.o sha1.o sha2.o
+
+include $(SRC)/lib/Makefile.lib
+include $(SRC)/lib/Makefile.rootfs
+include ../Makefile.com
+
+# Symbol capabilities objects are added for sun4u and sun4v.
+EXTPICS = ../capabilities/sun4u/sparc/pics/symcap.o \
+ ../capabilities/sun4v/sparc/pics/symcap.o
+
+.KEEP_STATE:
-LIBRARY= libmd.a
+all: $(LIBS)
-include ../Makefile.com
+install: all $(ROOTLIBS) $(ROOTLINKS) $(ROOTLINT)
-DYNFLAGS += -Wl,-f/platform/\$$PLATFORM/lib/$(DYNLIBPSR)
+lint: lintcheck
-install: all $(ROOTLIBS) $(ROOTLINKS) $(ROOTLINT)
+include ../Makefile.targ
diff --git a/usr/src/lib/libmd/sparcv9/Makefile b/usr/src/lib/libmd/sparcv9/Makefile
index 6b3d51b1ea..5dd3f2eac3 100644
--- a/usr/src/lib/libmd/sparcv9/Makefile
+++ b/usr/src/lib/libmd/sparcv9/Makefile
@@ -18,16 +18,30 @@
#
# CDDL HEADER END
#
-# ident "%Z%%M% %I% %E% SMI"
#
-# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+LIBRARY = libmd.a
+VERS = .1
+
+OBJECTS = md4.o md5.o sha1.o sha2.o
+
+include $(SRC)/lib/Makefile.lib
+include $(SRC)/lib/Makefile.rootfs
+include $(SRC)/lib/Makefile.lib.64
+include ../Makefile.com
+
+# Symbol capabilities objects are added for sun4u and sun4v.
+EXTPICS = ../capabilities/sun4u/sparcv9/pics/symcap.o \
+ ../capabilities/sun4v/sparcv9/pics/symcap.o
+
+.KEEP_STATE:
-LIBRARY= libmd.a
+all: $(LIBS)
-include ../Makefile.com
-include $(SRC)/lib/Makefile.lib.64
+install: all $(ROOTLIBS64) $(ROOTLINKS64) $(ROOTLINT64)
-DYNFLAGS += -Wl,-f/platform/\$$PLATFORM/lib/$(MACH64)/$(DYNLIBPSR)
+lint: lintcheck
-install: all $(ROOTLIBS64) $(ROOTLINKS64) $(ROOTLINT64)
+include ../Makefile.targ
diff --git a/usr/src/lib/libmd/sun4u/Makefile.links b/usr/src/lib/libmd/sun4u/Makefile.links
deleted file mode 100644
index 3c85fd6acd..0000000000
--- a/usr/src/lib/libmd/sun4u/Makefile.links
+++ /dev/null
@@ -1,61 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# lib/libmd/Makefile.sun4u.links
-#
-#
-# Used when building links in /platform/sun4u/lib
-#
-LINKED_PLATFORMS = SUNW,Ultra-2
-LINKED_PLATFORMS += SUNW,Ultra-4
-LINKED_PLATFORMS += SUNW,Ultra-5_10
-LINKED_PLATFORMS += SUNW,Ultra-30
-LINKED_PLATFORMS += SUNW,Ultra-60
-LINKED_PLATFORMS += SUNW,Ultra-80
-LINKED_PLATFORMS += SUNW,Ultra-250
-LINKED_PLATFORMS += SUNW,Ultra-Enterprise
-LINKED_PLATFORMS += SUNW,Ultra-Enterprise-10000
-LINKED_PLATFORMS += SUNW,UltraAX-i2
-LINKED_PLATFORMS += SUNW,UltraSPARC-IIi-Netract
-LINKED_PLATFORMS += SUNW,UltraSPARC-IIe-NetraCT-40
-LINKED_PLATFORMS += SUNW,UltraSPARC-IIe-NetraCT-60
-LINKED_PLATFORMS += SUNW,Sun-Blade-100
-LINKED_PLATFORMS += SUNW,Sun-Blade-1000
-LINKED_PLATFORMS += SUNW,Sun-Blade-1500
-LINKED_PLATFORMS += SUNW,Sun-Blade-2500
-LINKED_PLATFORMS += SUNW,A70
-LINKED_PLATFORMS += SUNW,Sun-Fire
-LINKED_PLATFORMS += SUNW,Sun-Fire-V215
-LINKED_PLATFORMS += SUNW,Sun-Fire-V240
-LINKED_PLATFORMS += SUNW,Sun-Fire-V250
-LINKED_PLATFORMS += SUNW,Sun-Fire-V440
-LINKED_PLATFORMS += SUNW,Sun-Fire-V445
-LINKED_PLATFORMS += SUNW,Sun-Fire-280R
-LINKED_PLATFORMS += SUNW,Sun-Fire-15000
-LINKED_PLATFORMS += SUNW,Sun-Fire-880
-LINKED_PLATFORMS += SUNW,Sun-Fire-480R
-LINKED_PLATFORMS += SUNW,Serverblade1
-LINKED_PLATFORMS += SUNW,Netra-T12
-LINKED_PLATFORMS += SUNW,Netra-T4
-LINKED_PLATFORMS += SUNW,Netra-CP2300
-LINKED_PLATFORMS += SUNW,Netra-CP3010
diff --git a/usr/src/lib/libmd/sun4u/sparc/Makefile b/usr/src/lib/libmd/sun4u/sparc/Makefile
deleted file mode 100644
index 426b732d4e..0000000000
--- a/usr/src/lib/libmd/sun4u/sparc/Makefile
+++ /dev/null
@@ -1,55 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
-#
-
-CLASS = 32
-PLATFORM = sun4u
-MODULE = libmd_psr.so.1
-
-include ../Makefile.com
-
-# Override OBJECTS here because each $MACH/$PLATFORM can have a different
-# set of algortithm optimisations and thus different source and object files.
-OBJECTS = md5.o sha1.o sha1_asm.o
-
-MAPFILES = mapfile
-
-ASFLAGS += -xarch=v8plusa -warn
-
-# Redefine shared object build rule to use $(LD) directly (this avoids .init
-# and .fini sections being added).
-
-BUILD.SO= $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(LDLIBS)
-
-.KEEP_STATE:
-
-all: $(LIBS)
-
-$(ROOT_PSM_LIB_DIR)/% := FILEMODE = 755
-
-install: all $(LIBMD_PSR_LINKS) $(ROOT_PSM_LIBS)
-
-include $(SRC)/Makefile.psm.targ
diff --git a/usr/src/lib/libmd/sun4u/sparcv9/Makefile b/usr/src/lib/libmd/sun4u/sparcv9/Makefile
deleted file mode 100644
index 9f94a65cad..0000000000
--- a/usr/src/lib/libmd/sun4u/sparcv9/Makefile
+++ /dev/null
@@ -1,55 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-
-CLASS = 64
-PLATFORM = sun4u
-MODULE = libmd_psr.so.1
-
-include ../Makefile.com
-include $(SRC)/lib/Makefile.lib.64
-
-# Override OBJECTS here because each $MACH/$PLATFORM can have a different
-# set of algortithm optimisations and thus different source and object files.
-OBJECTS = md5.o sha1.o sha1_asm.o
-
-MAPFILES = mapfile
-
-ASDEFS += -D__sparcv9
-ASFLAGS += -xarch=v9a $(AS_BIGPICFLAGS)
-
-# Redefine shared object build rule to use $(LD) directly (this avoids .init
-# and .fini sections being added).
-
-BUILD.SO= $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(LDLIBS)
-
-.KEEP_STATE:
-
-all: $(LIBS)
-
-$(ROOT_PSM_LIB64_DIR)/% := FILEMODE = 755
-
-install: all $(LIBMD_PSR64_LINKS) $(ROOT_PSM_LIB64_DIR)/$(LIBS)
-
-include $(SRC)/Makefile.psm.targ
diff --git a/usr/src/lib/libmd/sun4v/sparc/Makefile b/usr/src/lib/libmd/sun4v/sparc/Makefile
deleted file mode 100644
index e0754a7da3..0000000000
--- a/usr/src/lib/libmd/sun4v/sparc/Makefile
+++ /dev/null
@@ -1,53 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-
-CLASS = 32
-PLATFORM = sun4v
-MODULE = libmd_psr.so.1
-
-include ../Makefile.com
-
-# Override OBJECTS here because each $MACH/$PLATFORM can have a different
-# set of algortithm optimisations and thus different source and object files.
-OBJECTS = md5.o
-
-MAPFILES = mapfile
-
-ASFLAGS += -xarch=v8plusa -warn
-
-# Redefine shared object build rule to use $(LD) directly (this avoids .init
-# and .fini sections being added).
-
-BUILD.SO= $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(LDLIBS)
-
-.KEEP_STATE:
-
-all: $(LIBS)
-
-$(ROOT_PSM_LIB_DIR)/% := FILEMODE = 755
-
-install: all $(ROOT_PSM_LIB_DIR)/$(LIBS)
-
-include $(SRC)/Makefile.psm.targ
diff --git a/usr/src/lib/libmd/sun4v/sparcv9/Makefile b/usr/src/lib/libmd/sun4v/sparcv9/Makefile
deleted file mode 100644
index 0c535c6bfb..0000000000
--- a/usr/src/lib/libmd/sun4v/sparcv9/Makefile
+++ /dev/null
@@ -1,55 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-
-CLASS = 64
-PLATFORM = sun4v
-MODULE = libmd_psr.so.1
-
-include ../Makefile.com
-include $(SRC)/lib/Makefile.lib.64
-
-# Override OBJECTS here because each $MACH/$PLATFORM can have a different
-# set of algortithm optimisations and thus different source and object files.
-OBJECTS = md5.o
-
-MAPFILES = mapfile
-
-ASDEFS += -D__sparcv9
-ASFLAGS += -xarch=v9a $(AS_PICFLAGS)
-
-# Redefine shared object build rule to use $(LD) directly (this avoids .init
-# and .fini sections being added).
-
-BUILD.SO= $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(LDLIBS)
-
-.KEEP_STATE:
-
-all: $(LIBS)
-
-$(ROOT_PSM_LIB64_DIR)/% := FILEMODE = 755
-
-install: all $(ROOT_PSM_LIB64_DIR)/$(LIBS)
-
-include $(SRC)/Makefile.psm.targ
diff --git a/usr/src/lib/pkcs11/libsoftcrypto/Makefile b/usr/src/lib/pkcs11/libsoftcrypto/Makefile
index ff69f0195a..96d8d8144d 100644
--- a/usr/src/lib/pkcs11/libsoftcrypto/Makefile
+++ b/usr/src/lib/pkcs11/libsoftcrypto/Makefile
@@ -18,38 +18,35 @@
#
# CDDL HEADER END
#
+
#
-# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# lib/libsoftcrypto/Makefile
+# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
#
-include $(SRC)/lib/Makefile.lib
+include $(SRC)/lib/Makefile.lib
-$(SPARC_BLD)PLATFORMS = sun4u sun4v
-$(INTEL_BLD)PLATFORMS = i386_hwcap1
-
-SUBDIRS = $(MACH) $(MACH64) $(PLATFORMS)
+CAPDIR = capabilities
+SUBDIRS = $(MACH) $(BUILD64) $(MACH64) $(PLATFORMS)
all := TARGET= all
-check := TARGET= check
clean := TARGET= clean
clobber := TARGET= clobber
install := TARGET= install
lint := TARGET= lint
+.KEEP_STATE:
-.PARALLEL: $(SUBDIRS)
-
-all check clean clobber install lint: $(SUBDIRS)
+.PARALLEL: $(SUBDIRS)
-install_h: $(ROOTHDRS)
+all clean clobber install lint: \
+ $(CAPDIR) .WAIT $(SUBDIRS)
-check: $(CHECKHDRS)
+install_h: $(ROOTHDRS)
+check: $(CHECKHDRS)
-$(SUBDIRS): FRC
- @cd $@; pwd; $(MAKE) $(TARGET)
+$(CAPDIR) \
+$(SUBDIRS): FRC
+ @cd $@; pwd; $(MAKE) $(TARGET)
FRC:
diff --git a/usr/src/lib/pkcs11/libsoftcrypto/Makefile.com b/usr/src/lib/pkcs11/libsoftcrypto/Makefile.com
index afa93ad2a2..b97aa47114 100644
--- a/usr/src/lib/pkcs11/libsoftcrypto/Makefile.com
+++ b/usr/src/lib/pkcs11/libsoftcrypto/Makefile.com
@@ -23,212 +23,99 @@
# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
#
-#
-# lib/pkcs11/libsoftcrypto/Makefile.com
-#
-
# AES
-AES_DIR= $(SRC)/common/crypto/aes
-AES_COMMON_OBJS= aes_impl.o aes_modes.o
-AES_COMMON_SRC= $(AES_COMMON_OBJS:%.o=$(AES_DIR)/%.c)
-AES_FLAGS= -I$(AES_DIR)
+AES_DIR = $(SRC)/common/crypto/aes
+AES_COMMON_OBJS = aes_impl.o aes_modes.o
+AES_COMMON_SRC = $(AES_COMMON_OBJS:%.o=$(AES_DIR)/%.c)
+AES_FLAGS = -I$(AES_DIR)
# Blowfish
-BLOWFISH_DIR= $(SRC)/common/crypto/blowfish
-BLOWFISH_COMMON_OBJS= blowfish_impl.o
-BLOWFISH_COMMON_SRC= $(BLOWFISH_COMMON_OBJS:%.o=$(BLOWFISH_DIR)/%.c)
-BLOWFISH_FLAGS= -I$(BLOWFISH_DIR)
+BLOWFISH_DIR = $(SRC)/common/crypto/blowfish
+BLOWFISH_COMMON_OBJS = blowfish_impl.o
+BLOWFISH_COMMON_SRC = $(BLOWFISH_COMMON_OBJS:%.o=$(BLOWFISH_DIR)/%.c)
+BLOWFISH_FLAGS = -I$(BLOWFISH_DIR)
# ARCFour
-ARCFOUR_DIR= $(SRC)/common/crypto/arcfour
-ARCFOUR_COMMON_OBJS= arcfour_crypt.o
-ARCFOUR_COMMON_SRC= $(ARCFOUR_COMMON_OBJS:%.o=$(ARCFOUR_DIR)/%.c)
-ARCFOUR_FLAGS= -I$(ARCFOUR_DIR)
+ARCFOUR_DIR = $(SRC)/common/crypto/arcfour
+ARCFOUR_COMMON_OBJS = arcfour_crypt.o
+ARCFOUR_COMMON_SRC = $(ARCFOUR_COMMON_OBJS:%.o=$(ARCFOUR_DIR)/%.c)
+ARCFOUR_FLAGS = -I$(ARCFOUR_DIR)
# DES
-DES_DIR= $(SRC)/common/crypto/des
-DES_COMMON_OBJS= des_impl.o des_ks.o
-DES_COMMON_SRC= $(DES_COMMON_OBJS:%.o=$(DES_DIR)/%.c)
-DES_FLAGS= -I$(DES_DIR)
+DES_DIR = $(SRC)/common/crypto/des
+DES_COMMON_OBJS = des_impl.o des_ks.o
+DES_COMMON_SRC = $(DES_COMMON_OBJS:%.o=$(DES_DIR)/%.c)
+DES_FLAGS = -I$(DES_DIR)
# BIGNUM -- needed by DH, DSA, RSA
-BIGNUM_DIR= $(SRC)/common/bignum
-BIGNUM_COMMON_OBJS= bignumimpl.o
-BIGNUM_COMMON_SRC= $(BIGNUM_COMMON_OBJS:%.o=$(BIGNUM_DIR)/%.c)
-BIGNUM_FLAGS= -I$(BIGNUM_DIR)
+BIGNUM_DIR = $(SRC)/common/bignum
+BIGNUM_COMMON_OBJS = bignumimpl.o
+BIGNUM_COMMON_SRC = $(BIGNUM_COMMON_OBJS:%.o=$(BIGNUM_DIR)/%.c)
+BIGNUM_FLAGS = -I$(BIGNUM_DIR)
# Modes
-MODES_DIR= $(SRC)/common/crypto/modes
-MODES_COMMON_OBJS= modes.o ecb.o cbc.o ctr.o
-MODES_COMMON_SRC= $(MODES_COMMON_OBJS:%.o=$(MODES_DIR)/%.c)
-MODES_FLAGS= -I$(MODES_DIR)
+MODES_DIR = $(SRC)/common/crypto/modes
+MODES_COMMON_OBJS = modes.o ecb.o cbc.o ctr.o
+MODES_COMMON_SRC = $(MODES_COMMON_OBJS:%.o=$(MODES_DIR)/%.c)
+MODES_FLAGS = -I$(MODES_DIR)
# DH
-DH_DIR= $(SRC)/common/crypto/dh
-DH_COMMON_OBJS= dh_impl.o
-DH_COMMON_SRC= $(DH_COMMON_OBJS:%.o=$(DH_DIR)/%.c)
-DH_FLAGS= $(BIGNUM_FLAGS) -I$(DH_DIR)
+DH_DIR = $(SRC)/common/crypto/dh
+DH_COMMON_OBJS = dh_impl.o
+DH_COMMON_SRC = $(DH_COMMON_OBJS:%.o=$(DH_DIR)/%.c)
+DH_FLAGS = $(BIGNUM_FLAGS) -I$(DH_DIR)
# DSA
-DSA_DIR= $(SRC)/common/crypto/dsa
-DSA_COMMON_OBJS= dsa_impl.o
-DSA_COMMON_SRC= $(DSA_COMMON_OBJS:%.o=$(DSA_DIR)/%.c)
-DSA_FLAGS= $(BIGNUM_FLAGS) -I$(DSA_DIR)
+DSA_DIR = $(SRC)/common/crypto/dsa
+DSA_COMMON_OBJS = dsa_impl.o
+DSA_COMMON_SRC = $(DSA_COMMON_OBJS:%.o=$(DSA_DIR)/%.c)
+DSA_FLAGS = $(BIGNUM_FLAGS) -I$(DSA_DIR)
# RSA
-RSA_DIR= $(SRC)/common/crypto/rsa
-RSA_COMMON_OBJS= rsa_impl.o
-RSA_COMMON_SRC= $(RSA_COMMON_OBJS:%.o=$(RSA_DIR)/%.c)
-RSA_FLAGS= $(BIGNUM_FLAGS) -I$(RSA_DIR)
+RSA_DIR = $(SRC)/common/crypto/rsa
+RSA_COMMON_OBJS = rsa_impl.o
+RSA_COMMON_SRC = $(RSA_COMMON_OBJS:%.o=$(RSA_DIR)/%.c)
+RSA_FLAGS = $(BIGNUM_FLAGS) -I$(RSA_DIR)
# PADDING -- needed by RSA
-PAD_DIR= $(SRC)/common/crypto/padding
-PAD_COMMON_OBJS= pkcs1.o pkcs7.o
-PAD_COMMON_SRC= $(PAD_COMMON_OBJS:%.o=$(PAD_DIR)/%.c)
-PAD_FLAGS= -I$(PAD_DIR)
+PAD_DIR = $(SRC)/common/crypto/padding
+PAD_COMMON_OBJS = pkcs1.o pkcs7.o
+PAD_COMMON_SRC = $(PAD_COMMON_OBJS:%.o=$(PAD_DIR)/%.c)
+PAD_FLAGS = -I$(PAD_DIR)
# Object setup
-AES_OBJS= $(AES_COMMON_OBJS) $(AES_PSM_OBJS)
-ARCFOUR_OBJS= $(ARCFOUR_COMMON_OBJS) $(ARCFOUR_PSM_OBJS)
-BLOWFISH_OBJS= $(BLOWFISH_COMMON_OBJS) $(BLOWFISH_PSM_OBJS)
-DES_OBJS= $(DES_COMMON_OBJS) $(DES_PSM_OBJS)
-BIGNUM_OBJS= $(BIGNUM_COMMON_OBJS) $(BIGNUM_PSM_OBJS)
-MODES_OBJS= $(MODES_COMMON_OBJS) $(MODES_PSM_OBJS)
-DH_OBJS= $(DH_COMMON_OBJS) $(DH_PSM_OBJS)
-DSA_OBJS= $(DSA_COMMON_OBJS) $(DSA_PSM_OBJS)
-RSA_OBJS= $(RSA_COMMON_OBJS) $(RSA_PSM_OBJS)
-PAD_OBJS= $(PAD_COMMON_OBJS) $(PAD_PSM_OBJS)
-
-OBJECTS= $(AES_OBJS) $(ARCFOUR_OBJS) $(BIGNUM_OBJS) $(BLOWFISH_OBJS) \
- $(DES_OBJS) $(MODES_OBJS) $(DH_OBJS) $(DSA_OBJS) \
- $(RSA_OBJS) $(PAD_OBJS)
-
-include $(SRC)/lib/Makefile.lib
+AES_OBJS = $(AES_COMMON_OBJS) $(AES_PSM_OBJS)
+ARCFOUR_OBJS = $(ARCFOUR_COMMON_OBJS) $(ARCFOUR_PSM_OBJS)
+BLOWFISH_OBJS = $(BLOWFISH_COMMON_OBJS) $(BLOWFISH_PSM_OBJS)
+DES_OBJS = $(DES_COMMON_OBJS) $(DES_PSM_OBJS)
+BIGNUM_OBJS = $(BIGNUM_COMMON_OBJS) $(BIGNUM_PSM_OBJS)
+MODES_OBJS = $(MODES_COMMON_OBJS) $(MODES_PSM_OBJS)
+DH_OBJS = $(DH_COMMON_OBJS) $(DH_PSM_OBJS)
+DSA_OBJS = $(DSA_COMMON_OBJS) $(DSA_PSM_OBJS)
+RSA_OBJS = $(RSA_COMMON_OBJS) $(RSA_PSM_OBJS)
+PAD_OBJS = $(PAD_COMMON_OBJS) $(PAD_PSM_OBJS)
+
+OBJECTS = $(AES_OBJS) $(ARCFOUR_OBJS) $(BIGNUM_OBJS) \
+ $(BLOWFISH_OBJS) $(DES_OBJS) $(MODES_OBJS) $(DH_OBJS) \
+ $(DSA_OBJS) $(RSA_OBJS) $(PAD_OBJS)
# Source file setup
-AES_SRC= $(AES_COMMON_SRC) $(AES_PSM_SRC)
-ARCFOUR_SRC= $(ARCFOUR_COMMON_SRC) $(ARCFOUR_PSM_SRC)
-BLOWFISH_SRC= $(BLOWFISH_COMMON_SRC) $(BLOWFISH_PSM_SRC)
-DES_SRC= $(DES_COMMON_SRC) $(DES_PSM_SRC)
-BIGNUM_SRC= $(BIGNUM_COMMON_SRC) $(BIGNUM_PSM_SRC)
-MODES_SRC= $(MODES_COMMON_SRC) $(MODES_PSM_SRC)
-DH_SRC= $(DH_COMMON_SRC) $(DH_PSM_SRC)
-DSA_SRC= $(DSA_COMMON_SRC) $(DSA_PSM_SRC)
-RSA_SRC= $(RSA_COMMON_SRC) $(RSA_PSM_SRC)
-PAD_SRC= $(PAD_COMMON_SRC) $(PAD_PSM_SRC)
-
-SRCS= $(AES_SRC) $(ARCFOUR_SRC) $(BIGNUM_SRC) $(BLOWFISH_SRC) $(DES_SRC) \
- $(MODES_SRC) $(DH_SRC) $(DSA_SRC) $(RSA_SRC) \
- $(PAD_SRC)
-
-# Do not lint ECC and MPI
-LINTABLE= \
- $(AES_SRC) $(ARCFOUR_SRC) $(BIGNUM_SRC) $(BLOWFISH_SRC) $(DES_SRC) \
- $(MODES_SRC) $(DH_SRC) $(DSA_SRC) $(RSA_SRC) $(PAD_SRC)
-
-#
-# Compiler settings
-#
-
-SRCDIR= $(SRC)/lib/pkcs11/libsoftcrypto/common/
-CRYPTODIR= $(SRC)/common/crypto/
-UTSDIR= $(SRC)/uts/common/
-ROOTLIBDIR= $(ROOT)/usr/lib
-ROOTLIBDIR64= $(ROOT)/usr/lib/$(MACH64)
-ROOTHWCAPDIR= $(ROOTLIBDIR)/libsoftcrypto
-
-# $(LINTLIB) is not included here; i386_hwcap1/Makefile does not make
-# a lint library, so each of the other platform-specific Makefiles adds
-# the lint library target individually
-LIBS = $(DYNLIB)
-LDLIBS += -lc
-
-CFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS)
-CPPFLAGS += -I$(SRCDIR) -I$(CRYPTODIR) -I$(UTSDIR) \
- $(BIGNUM_FLAGS) \
- -D_POSIX_PTHREAD_SEMANTICS
-ASFLAGS = $(AS_PICFLAGS) -P -D__STDC__ -D_ASM
-EXTRA_LINT_FLAGS = \
- $(AES_FLAGS) $(BLOWFISH_FLAGS) $(ARCFOUR_FLAGS) $(DES_FLAGS) \
- $(BIGNUM_FLAGS) $(MODES_FLAGS) $(DH_FLAGS) $(DSA_FLAGS) \
- $(RSA_FLAGS) $(PAD_FLAGS)
-LINTFLAGS += $(EXTRA_LINT_FLAGS)
-LINTFLAGS64 += $(EXTRA_LINT_FLAGS) -errchk=longptr64
-
-LINTLIB= llib-l$(LIBNAME).ln
-$(LINTLIB) := SRCS = $(LINTABLE)
-lintcheck := SRCS = $(LINTABLE)
-
-all: $(LIBS)
-
-lint: lintcheck
-
-pics/%.o: $(AES_DIR)/%.c
- $(COMPILE.c) $(AES_FLAGS) -o $@ $<
- $(POST_PROCESS_O)
-
-pics/%.o: $(ARCFOUR_DIR)/%.c
- $(COMPILE.c) $(ARCFOUR_FLAGS) -o $@ $<
- $(POST_PROCESS_O)
-
-pics/%.o: $(BIGNUM_DIR)/%.c
- $(COMPILE.c) $(BIGNUM_FLAGS) -o $@ $<
- $(POST_PROCESS_O)
-
-pics/%.o: $(BLOWFISH_DIR)/%.c
- $(COMPILE.c) $(BLOWFISH_FLAGS) -o $@ $<
- $(POST_PROCESS_O)
-
-pics/%.o: $(DES_DIR)/%.c
- $(COMPILE.c) $(DES_FLAGS) -o $@ $<
- $(POST_PROCESS_O)
-
-pics/%.o: $(MODES_DIR)/%.c
- $(COMPILE.c) $(MODES_FLAGS) -o $@ $<
- $(POST_PROCESS_O)
-
-pics/%.o: $(DH_DIR)/%.c
- $(COMPILE.c) $(DH_FLAGS) -o $@ $<
- $(POST_PROCESS_O)
-
-pics/%.o: $(DSA_DIR)/%.c
- $(COMPILE.c) $(DSA_FLAGS) -o $@ $<
- $(POST_PROCESS_O)
-
-pics/%.o: $(RSA_DIR)/%.c
- $(COMPILE.c) $(RSA_FLAGS) -o $@ $<
- $(POST_PROCESS_O)
-
-pics/%.o: $(PAD_DIR)/%.c
- $(COMPILE.c) $(PAD_FLAGS) -o $@ $<
- $(POST_PROCESS_O)
-
-#
-# Platform-specific targets
-#
-
-
-SOFT_PSR_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib)
-SOFT_PSR_LINKS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/$(MODULE))
-
-SOFT_PSR64_DIRS = $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/$(MACH64))
-SOFT_PSR64_LINKS = \
- $(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%/lib/$(MACH64)/$(MODULE))
-
-INS.slink6 = $(RM) -r $@; \
- $(SYMLINK) ../../$(PLATFORM)/lib/$(MODULE) $@
-INS.slink64 = $(RM) -r $@; \
- $(SYMLINK) ../../../$(PLATFORM)/lib/$(MACH64)/$(MODULE) $@
-
-$(SOFT_PSR_DIRS) \
-$(SOFT_PSR64_DIRS):
- -$(INS.dir)
-
-$(SOFT_PSR_LINKS): $(SOFT_PSR_DIRS)
- -$(INS.slink6)
-
-$(SOFT_PSR64_LINKS): $(SOFT_PSR64_DIRS)
- -$(INS.slink64)
-
-
-include $(SRC)/lib/Makefile.targ
+AES_SRC = $(AES_COMMON_SRC) $(AES_PSM_SRC)
+ARCFOUR_SRC = $(ARCFOUR_COMMON_SRC) $(ARCFOUR_PSM_SRC)
+BLOWFISH_SRC = $(BLOWFISH_COMMON_SRC) $(BLOWFISH_PSM_SRC)
+DES_SRC = $(DES_COMMON_SRC) $(DES_PSM_SRC)
+BIGNUM_SRC = $(BIGNUM_COMMON_SRC) $(BIGNUM_PSM_SRC)
+MODES_SRC = $(MODES_COMMON_SRC) $(MODES_PSM_SRC)
+DH_SRC = $(DH_COMMON_SRC) $(DH_PSM_SRC)
+DSA_SRC = $(DSA_COMMON_SRC) $(DSA_PSM_SRC)
+RSA_SRC = $(RSA_COMMON_SRC) $(RSA_PSM_SRC)
+PAD_SRC = $(PAD_COMMON_SRC) $(PAD_PSM_SRC)
+
+# Header include directories
+CRYPTODIR = $(SRC)/common/crypto
+UTSDIR = $(SRC)/uts/common/
+
+# Lint
+EXTRA_LINT_FLAGS = $(AES_FLAGS) $(BLOWFISH_FLAGS) $(ARCFOUR_FLAGS) \
+ $(DES_FLAGS) $(BIGNUM_FLAGS) $(MODES_FLAGS) \
+ $(DH_FLAGS) $(DSA_FLAGS) $(RSA_FLAGS) $(PAD_FLAGS)
diff --git a/usr/src/lib/pkcs11/libsoftcrypto/Makefile.targ b/usr/src/lib/pkcs11/libsoftcrypto/Makefile.targ
new file mode 100644
index 0000000000..21de491517
--- /dev/null
+++ b/usr/src/lib/pkcs11/libsoftcrypto/Makefile.targ
@@ -0,0 +1,73 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+AES_DIR = $(SRC)/common/crypto/aes
+ARCFOUR_DIR = $(SRC)/common/crypto/arcfour
+BIGNUM_DIR = $(SRC)/common/bignum
+BLOWFISH_DIR = $(SRC)/common/crypto/blowfish
+DES_DIR = $(SRC)/common/crypto/des
+MODES_DIR = $(SRC)/common/crypto/modes
+
+pics/%.o: $(AES_DIR)/%.c
+ $(COMPILE.c) $(AES_FLAGS) -o $@ $<
+ $(POST_PROCESS_O)
+
+pics/%.o: $(ARCFOUR_DIR)/%.c
+ $(COMPILE.c) $(ARCFOUR_FLAGS) -o $@ $<
+ $(POST_PROCESS_O)
+
+pics/%.o: $(BIGNUM_DIR)/%.c
+ $(COMPILE.c) $(BIGNUM_FLAGS) -o $@ $<
+ $(POST_PROCESS_O)
+
+pics/%.o: $(BLOWFISH_DIR)/%.c
+ $(COMPILE.c) $(BLOWFISH_FLAGS) -o $@ $<
+ $(POST_PROCESS_O)
+
+pics/%.o: $(DES_DIR)/%.c
+ $(COMPILE.c) $(DES_FLAGS) -o $@ $<
+ $(POST_PROCESS_O)
+
+pics/%.o: $(MODES_DIR)/%.c
+ $(COMPILE.c) -o $@ $<
+ $(POST_PROCESS_O)
+
+pics/%.o: $(DH_DIR)/%.c
+ $(COMPILE.c) $(DH_FLAGS) -o $@ $<
+ $(POST_PROCESS_O)
+
+pics/%.o: $(DSA_DIR)/%.c
+ $(COMPILE.c) $(DSA_FLAGS) -o $@ $<
+ $(POST_PROCESS_O)
+
+pics/%.o: $(RSA_DIR)/%.c
+ $(COMPILE.c) $(RSA_FLAGS) -o $@ $<
+ $(POST_PROCESS_O)
+
+pics/%.o: $(PAD_DIR)/%.c
+ $(COMPILE.c) $(PAD_FLAGS) -o $@ $<
+ $(POST_PROCESS_O)
+
+include $(SRC)/lib/Makefile.targ
diff --git a/usr/src/lib/pkcs11/libsoftcrypto/amd64/Makefile b/usr/src/lib/pkcs11/libsoftcrypto/amd64/Makefile
index fdfc885a93..b2e7d90ee7 100644
--- a/usr/src/lib/pkcs11/libsoftcrypto/amd64/Makefile
+++ b/usr/src/lib/pkcs11/libsoftcrypto/amd64/Makefile
@@ -23,56 +23,72 @@
# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
#
-#
-# lib/pkcs11/libsoftcrypto/amd64/Makefile
-#
+LIBRARY = libsoftcrypto.a
+VERS = .1
-LIBRARY= libsoftcrypto.a
-VERS= .1
+include ../Makefile.com
-AES_PSM_OBJS= aes_amd64.o aes_intel.o aeskey.o
-AES_PSM_SRC= $(AES_DIR)/$(MACH64)/aes_amd64.s $(AES_DIR)/$(MACH64)/aes_intel.s \
- $(AES_DIR)/$(MACH64)/aeskey.c
+AES_PSM_OBJS = aes_amd64.o aes_intel.o aeskey.o
+ARCFOUR_PSM_OBJS = arcfour-x86_64.o
+BIGNUM_PSM_OBJS = bignum_amd64.o bignum_amd64_asm.o
-ARCFOUR_PSM_OBJS= arcfour-x86_64.o
-ARCFOUR_PSM_SRC= arcfour-x86_64.s
+include $(SRC)/lib/Makefile.lib
+include $(SRC)/lib/Makefile.lib.64
-BIGNUM_PSM_OBJS= bignum_amd64.o bignum_amd64_asm.o
-BIGNUM_PSM_SRC= $(BIGNUM_DIR)/$(MACH64)/bignum_amd64.c \
+AES_PSM_SRC = $(AES_DIR)/$(MACH64)/aes_amd64.s \
+ $(AES_DIR)/$(MACH64)/aes_intel.s \
+ $(AES_DIR)/$(MACH64)/aeskey.c
+ARCFOUR_PSM_SRC = arcfour-x86_64.s
+BIGNUM_PSM_SRC = $(BIGNUM_DIR)/$(MACH64)/bignum_amd64.c \
$(BIGNUM_DIR)/$(MACH64)/bignum_amd64_asm.s
-include ../Makefile.com
-include $(SRC)/lib/Makefile.lib.64
+# Sources need to be redefined after Makefile.lib inclusion.
+SRCS = $(AES_SRC) $(ARCFOUR_SRC) $(BIGNUM_SRC) $(BLOWFISH_SRC) \
+ $(DES_SRC) $(MODES_SRC) $(DH_SRC) $(DSA_SRC) $(RSA_SRC) \
+ $(PAD_SRC)
+
+SRCDIR = $(SRC)/lib/pkcs11/libsoftcrypto/common
+
+LIBS = $(DYNLIB) $(LINTLIB)
+MAPFILEDIR = ../common
+
+CFLAGS += -xO4 -xcrossfile
+CPPFLAGS += -I$(CRYPTODIR) -I$(UTSDIR) -D_POSIX_PTHREAD_SEMANTICS
+ASFLAGS += $(AS_PICFLAGS) -P -D__STDC__ -D_ASM
+BIGNUM_FLAGS += -DPSR_MUL
+CLEANFILES += arcfour-x86_64.s
+LDLIBS += -lcryptoutil -lc
+LINTFLAGS64 += $(EXTRA_LINT_FLAGS)
+
+.KEEP_STATE:
+
+all: $(LIBS)
-CFLAGS += -xO4 -xcrossfile
-BIGNUM_FLAGS += -DPSR_MUL
-LINTFLAGS64 += $(BIGNUM_FLAGS) $(AES_FLAGS) $(ARCFOUR_FLAGS)
-CLEANFILES += arcfour-x86_64.s
+lint: $(SRCS)
-LDLIBS += -lcryptoutil
-LIBS += $(LINTLIB)
+install: all $(ROOTLIBS64) $(ROOTLINKS64) $(ROOTLINT64)
-install: all $(ROOTLIBS64) $(ROOTLINKS64) $(ROOTLINT64)
+pics/%.o: $(AES_DIR)/$(MACH64)/%.c
+ $(COMPILE.c) $(AES_FLAGS) -o $@ $<
+ $(POST_PROCESS_O)
-arcfour-x86_64.s: $(ARCFOUR_DIR)/amd64/arcfour-x86_64.pl
- $(PERL) $? $@
+pics/%.o: $(AES_DIR)/$(MACH64)/%.s
+ $(COMPILE.s) $(AES_FLAGS) -o $@ $<
+ $(POST_PROCESS_O)
-pics/%.o: $(AES_DIR)/$(MACH64)/%.c
- $(COMPILE.c) $(AES_FLAGS) -o $@ $<
- $(POST_PROCESS_O)
+pics/%.o: $(BIGNUM_DIR)/$(MACH64)/%.c
+ $(COMPILE.c) $(BIGNUM_FLAGS) -o $@ $<
+ $(POST_PROCESS_O)
-pics/%.o: $(AES_DIR)/$(MACH64)/%.s
- $(COMPILE.s) $(AES_FLAGS) -o $@ $<
- $(POST_PROCESS_O)
+pics/%.o: $(BIGNUM_DIR)/$(MACH64)/%.s
+ $(COMPILE64.s) $(BIGNUM_FLAGS) -o $@ $<
+ $(POST_PROCESS_O)
-pics/%.o: $(BIGNUM_DIR)/$(MACH64)/%.c
- $(COMPILE.c) $(BIGNUM_FLAGS) -o $@ $<
- $(POST_PROCESS_O)
+include ../Makefile.targ
-pics/%.o: $(BIGNUM_DIR)/$(MACH64)/%.s
- $(COMPILE64.s) $(BIGNUM_FLAGS) -o $@ $<
- $(POST_PROCESS_O)
+arcfour-x86_64.s: $(ARCFOUR_DIR)/amd64/arcfour-x86_64.pl
+ $(PERL) $? $@
-pics/%.o: arcfour-x86_64.s
- $(COMPILE64.s) $(ARCFOUR_FLAGS) -o $@ $<
- $(POST_PROCESS_O)
+pics/%.o: arcfour-x86_64.s
+ $(COMPILE64.s) $(ARCFOUR_FLAGS) -o $@ $<
+ $(POST_PROCESS_O)
diff --git a/usr/src/lib/pkcs11/libsoftcrypto/capabilities/Makefile b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/Makefile
new file mode 100644
index 0000000000..bfd264345e
--- /dev/null
+++ b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/Makefile
@@ -0,0 +1,49 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+include $(SRC)/lib/Makefile.lib
+
+# Each target directory is responsible for making a symbol capabilities object.
+$(SPARC_BLD)SUBDIRS = sun4u sun4v
+$(INTEL_BLD)SUBDIRS = intel
+
+all := TARGET= all
+clean := TARGET= clean
+clobber := TARGET= clobber
+install := TARGET= install
+
+.KEEP_STATE:
+
+.PARALLEL: $(SUBDIRS)
+
+all clean clobber install: \
+ $(SUBDIRS)
+
+lint:
+
+$(SUBDIRS): FRC
+ @cd $@; pwd; $(MAKE) $(TARGET)
+
+FRC:
diff --git a/usr/src/lib/pkcs11/libsoftcrypto/capabilities/Makefile.com b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/Makefile.com
new file mode 100644
index 0000000000..7548b023c3
--- /dev/null
+++ b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/Makefile.com
@@ -0,0 +1,34 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+include ../../../Makefile.com
+
+MAPFILE-CAP = ../common/mapfile-cap
+MAPOPT-CAP = $(MAPFILE-CAP:%=-M%)
+
+OBJCAP = pics/objcap.o
+SYMCAP = pics/symcap.o
+
+CLOBBERFILES += $(OBJCAP) $(SYMCAP)
diff --git a/usr/src/lib/pkcs11/libsoftcrypto/capabilities/Makefile.targ b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/Makefile.targ
new file mode 100644
index 0000000000..dfd9b10aea
--- /dev/null
+++ b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/Makefile.targ
@@ -0,0 +1,71 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+#
+# libsoftcrypto provides two families of optimized functions for SPARC
+# platforms, one for sun4u, and one for sun4v. Previous implementations
+# provided these families as libsoftcrypto_psr.so.1 libraries, triggered
+# by tagging libsoftcrypto.so.1 as an auxiliary filter. These psr filtees
+# were installed under /usr/platform/sun4u/lib, and numerous symlinks were
+# established to provide the necessary $PLATFORM names, ie:
+#
+# /usr/platform/SUNW,Ultra-2/lib/libsoftcrypto_psr.so.1 -> ../../../sun4u
+# /usr/platform/SUNW,Ultra-4/lib/libsoftcrypto_psr.so.1 -> ../../../sun4u
+# ....
+#
+# and:
+#
+# /usr/platform/SUNW,Netra-CP3060/lib/libsoftcrypto_psr.so.1 -> ../../sun4v
+# /usr/platform/SUNW,Netra-CP3260/lib/libsoftcrypto_psr.so.1 -> ../../sun4v/
+# ....
+#
+# The objects that made up these filtees are now combined into one relocatable
+# object, pics/objcap.o, using ../common/mapfile-cap. This mapfile identifies
+# the machine hardware name, together with establishing the global symbols that
+# should be exported to define each family.
+#
+# This object capabilities relocatable object is then translated into a symbol
+# capabilities relocatable object, pics/symcap.o.
+#
+# The sun4u and sun4v families of symbol capabilities object are eventually
+# included in the final build of libsoftcrypto.so.1.
+
+$(SYMCAP): $(OBJCAP)
+$(OBJCAP): $(PICS)
+$(PICS): pics
+
+# Combine all pic objects into one relocatable object. Assign any capabilities
+# to this object, and define the interface.
+
+pics/objcap.o: $(PICS) $(MAPFILE-CAP)
+ $(LD) -r -o $@ $(MAPOPT-CAP) -Breduce $(PICS)
+
+# Convert the combined object capabilities object into a symbol capabilities
+# object.
+
+pics/symcap.o: $(OBJCAP)
+ $(LD) -r -o $@ -z symbolcap $(OBJCAP)
+
+include ../../../Makefile.targ
diff --git a/usr/src/lib/pkcs11/libsoftcrypto/capabilities/intel/Makefile b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/intel/Makefile
new file mode 100644
index 0000000000..aa11eb6fde
--- /dev/null
+++ b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/intel/Makefile
@@ -0,0 +1,47 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+include $(SRC)/lib/Makefile.lib
+
+SUBDIRS = $(MACH)
+
+all := TARGET= all
+clean := TARGET= clean
+clobber := TARGET= clobber
+install := TARGET= install
+
+.KEEP_STATE:
+
+.PARALLEL: $(SUBDIRS)
+
+all clean clobber install: \
+ $(SUBDIRS)
+
+lint:
+
+$(SUBDIRS): FRC
+ @cd $@; pwd; $(MAKE) $(TARGET)
+
+FRC:
diff --git a/usr/src/lib/libc/sparc_hwcap1/sparcv9/mapfile-vers-aux b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/intel/common/mapfile-cap
index 10a8c864be..ec14158241 100644
--- a/usr/src/lib/libc/sparc_hwcap1/sparcv9/mapfile-vers-aux
+++ b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/intel/common/mapfile-cap
@@ -19,37 +19,38 @@
# CDDL HEADER END
#
#
-# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
#
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
+# The only file that contains capabilities symbols is bignum_i386_asm.o,
+# however this is a dependency of bignum_i386.o, which in turn is a dependency
+# of pics/bignumimpl.o. Only the last object exports any interfaces, hence
+# we compile, and combine all three. The resulting object is identified as a
+# whole with the bignum_i386_asm.o capabilities flags.
$mapfile_version 2
-SYMBOL_VERSION SUNW_0.7 { # SunOS 5.3 (Solaris 2.3)
- global:
- memcmp;
- memcpy;
- memmove;
- memset;
-};
+CAPABILITY i386_hwcap1;
-SYMBOL_VERSION SUNWprivate_1.1 {
- global:
- _memcmp;
- _memcpy { FLAGS = NODYNSORT };
- _memmove;
- _memset;
+SYMBOL_SCOPE {
+ global:
+ big_add;
+ big_bitlength;
+ big_cmp_abs;
+ big_copy;
+ big_div_pos;
+ big_ext_gcd_pos;
+ big_extend;
+ big_finish;
+ big_init1;
+ big_init;
+ big_modexp;
+ big_modexp_crt;
+ big_mul;
+ big_nextprime_pos;
+ big_sub;
+ big_sub_pos;
+ bignum2bytestring;
+ local:
+ *;
};
diff --git a/usr/src/lib/pkcs11/libsoftcrypto/capabilities/intel/i386/Makefile b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/intel/i386/Makefile
new file mode 100644
index 0000000000..3d80d13627
--- /dev/null
+++ b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/intel/i386/Makefile
@@ -0,0 +1,54 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+BIGNUM_PSM_OBJS = bignum_i386.o bignum_i386_asm.o
+
+include ../../Makefile.com
+
+# Redefine the objects required for this capabilities group.
+OBJECTS = $(BIGNUM_OBJS)
+
+include $(SRC)/lib/Makefile.lib
+
+AS_CPPFLAGS += -D__STDC__ -D_ASM -DPIC -D_REENTRANT -D$(MACH)
+ASFLAGS += $(AS_PICFLAGS) -P
+CFLAGS += $(CCVERBOSE)
+CPPFLAGS += -I$(CRYPTODIR) -I$(UTSDIR) -D_POSIX_PTHREAD_SEMANTICS
+BIGNUM_FLAGS += -DMMX_MANAGE -DHWCAP -DPSR_MUL -DNO_BIG_ONE -DNO_BIG_TWO
+
+.KEEP_STATE:
+
+all install: $(SYMCAP)
+
+include ../../Makefile.targ
+
+pics/bignum_i386.o: $(BIGNUM_DIR)/i386/bignum_i386.c
+ $(COMPILE.c) $(BIGNUM_FLAGS) -o $@ \
+ $(BIGNUM_DIR)/i386/bignum_i386.c
+ $(POST_PROCESS_O)
+
+pics/bignum_i386_asm.o: $(BIGNUM_DIR)/i386/bignum_i386_asm.s
+ $(COMPILE.s) -o $@ $(BIGNUM_DIR)/i386/bignum_i386_asm.s
+ $(POST_PROCESS_O)
diff --git a/usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4u/Makefile b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4u/Makefile
new file mode 100644
index 0000000000..77aed04fa7
--- /dev/null
+++ b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4u/Makefile
@@ -0,0 +1,47 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+include $(SRC)/lib/Makefile.lib
+
+SUBDIRS = $(MACH) $(BUILD64) $(MACH64)
+
+all := TARGET= all
+clean := TARGET= clean
+clobber := TARGET= clobber
+install := TARGET= install
+
+.KEEP_STATE:
+
+.PARALLEL: $(SUBDIRS)
+
+all clean clobber install: \
+ $(SUBDIRS)
+
+lint:
+
+$(SUBDIRS): FRC
+ @cd $@; pwd; $(MAKE) $(TARGET)
+
+FRC:
diff --git a/usr/src/lib/libc/sparc_hwcap1/sparcv9/Makefile b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4u/Makefile.com
index 451d682145..6027025c55 100644
--- a/usr/src/lib/libc/sparc_hwcap1/sparcv9/Makefile
+++ b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4u/Makefile.com
@@ -18,31 +18,29 @@
#
# CDDL HEADER END
#
+
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
#
-LIBCBASE= $(SRC)/lib/libc/sparcv9
-
-LIBRARY= libc_hwcap1.a
+PLATFORM = sun4u
-EXTN_CPPFLAGS= -I$(SRC)/uts/sun4v -I$(ROOT)/usr/platform/sun4v/include
-EXTN_ASFLAGS= -xarch=v9d
-EXTN_DYNFLAGS= -M mapfile
+AES_PSM_OBJS = aes_crypt_asm.o
+ARCFOUR_PSM_OBJS = arcfour_crypt_asm.o
+DES_PSM_OBJS = des_crypt_asm.o
+BIGNUM_PSM_OBJS = mont_mulf_asm.o
-# Defining this means build targets will first try to use source from this
-# directory before falling back to unoptimized sun4v source.
-#
-OPTIMIZED_LIBCBASE=../common
+include ../../Makefile.com
-PRFOBJS= \
- memcpy.o \
- memmove.o \
- memset.o \
- strlen.o \
- strcpy.o \
+# Redefine the objects required for this capabilities group.
+OBJECTS = $(AES_OBJS) $(ARCFOUR_OBJS) $(DES_OBJS) $(BIGNUM_OBJS) \
+ $(MODES_OBJS)
-MAPFILE_AUX = mapfile-vers-aux
+include $(SRC)/lib/Makefile.lib
-include $(SRC)/lib/libc/sparcv9/Makefile.com
+AS_CPPFLAGS += -D__STDC__ -D_ASM -DPIC -D_REENTRANT -D$(MACH)
+ASFLAGS += $(AS_PICFLAGS) -P
+CFLAGS += $(CCVERBOSE)
+CPPFLAGS += -D$(PLATFORM) -I$(CRYPTODIR) -I$(UTSDIR) \
+ -D_POSIX_PTHREAD_SEMANTICS
+BIGNUM_FLAGS += -DUSE_FLOATING_POINT -DNO_BIG_ONE -DNO_BIG_TWO
diff --git a/usr/src/lib/libmd/sun4v/Makefile.com b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4u/Makefile.targ
index 6cef14c4ed..422f5f8c17 100644
--- a/usr/src/lib/libmd/sun4v/Makefile.com
+++ b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4u/Makefile.targ
@@ -18,24 +18,21 @@
#
# CDDL HEADER END
#
+
#
-# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
#
-LIBRARY= libmd_psr.a
-
-include $(SRC)/Makefile.psm
-include ../Makefile.links
-include ../../Makefile.com
-
-LIBS= $(DYNLIB)
+include ../../Makefile.targ
-CFLAGS += -m32 -xarch=sparcvis
-CPPFLAGS += -D$(PLATFORM)
-ASFLAGS = -P $(ASDEFS)
+pics/aes_crypt_asm.o: $(AES_DIR)/sun4u/aes_crypt_asm.s
+ $(COMPILE.s) -o $@ $(AES_DIR)/sun4u/aes_crypt_asm.s
+ $(POST_PROCESS_O)
-INLINES= $(COMDIR)/md5/$(MACH)/$(PLATFORM)/byteswap.il
+pics/arcfour_crypt_asm.o: $(ARCFOUR_DIR)/sun4u/arcfour_crypt_asm.s
+ $(COMPILE.s) -o $@ $(ARCFOUR_DIR)/sun4u/arcfour_crypt_asm.s
+ $(POST_PROCESS_O)
-# XXX This seems wrong since we explicitly set LIBS to be DYNLIB only
-$(LINTLIB):= SRCS= ../../common/llib-lmd
+pics/des_crypt_asm.o: $(DES_DIR)/sun4u/des_crypt_asm.s
+ $(COMPILE.s) -o $@ $(DES_DIR)/sun4u/des_crypt_asm.s
+ $(POST_PROCESS_O)
diff --git a/usr/src/lib/libc/sparc_hwcap1/sparc/mapfile-vers-aux b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4u/common/mapfile-cap
index cfb7d2f4c3..0d9e354aea 100644
--- a/usr/src/lib/libc/sparc_hwcap1/sparc/mapfile-vers-aux
+++ b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4u/common/mapfile-cap
@@ -18,38 +18,50 @@
#
# CDDL HEADER END
#
-#
-# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
-#
#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
#
$mapfile_version 2
-SYMBOL_VERSION SYSVABI_1.3 {
- global:
- memcmp;
- memcpy;
- memmove;
- memset;
+CAPABILITY sun4u {
+ MACHINE = sun4u;
};
-SYMBOL_VERSION SUNWprivate_1.1 {
- global:
- _memcmp;
- _memcpy { FLAGS = NODYNSORT };
- _memmove;
- _memset;
+SYMBOL_SCOPE {
+ global:
+ aes_alloc_keysched;
+ aes_decrypt_contiguous_blocks;
+ aes_decrypt_block;
+ aes_encrypt_contiguous_blocks;
+ aes_encrypt_block;
+ aes_init_keysched;
+ arcfour_crypt;
+ arcfour_key_init;
+ big_add;
+ big_bitlength;
+ big_cmp_abs;
+ big_copy;
+ big_div_pos;
+ big_ext_gcd_pos;
+ big_extend;
+ big_finish;
+ big_init1;
+ big_init;
+ big_modexp;
+ big_modexp_crt;
+ big_mul;
+ big_nextprime_pos;
+ big_random;
+ big_sub;
+ big_sub_pos;
+ bignum2bytestring;
+ des3_crunch_block;
+ des_alloc_keysched;
+ des_crunch_block;
+ des_init_keysched;
+ des_keycheck;
+ local:
+ *;
};
diff --git a/usr/src/lib/pkcs11/libsoftcrypto/sun4v/sparc/Makefile b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4u/sparc/Makefile
index 35a083de83..2bc570c2ef 100644
--- a/usr/src/lib/pkcs11/libsoftcrypto/sun4v/sparc/Makefile
+++ b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4u/sparc/Makefile
@@ -20,20 +20,20 @@
#
#
-# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
#
-#
-# lib/pkcs11/libsoftcrypto/sun4v/sparc/Makefile
-#
+include ../Makefile.com
-CLASS = 32
+ASFLAGS += -xarch=v8plus
-include ../Makefile.com
+.KEEP_STATE:
-LINTFLAGS += -D$(PLATFORM) -erroff=E_NAME_MULTIPLY_DEF2
+all install: $(SYMCAP)
-install: all $(SOFT_PSR_LINKS) $(USR_PSM_LIBS)
+include ../Makefile.targ
-include $(SRC)/Makefile.psm.targ
+pics/mont_mulf_asm.o: \
+ $(BIGNUM_DIR)/sun4u/mont_mulf_v8plus.s
+ $(COMPILE.s) -o $@ $(BIGNUM_DIR)/sun4u/mont_mulf_v8plus.s
diff --git a/usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4u/sparcv9/Makefile b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4u/sparcv9/Makefile
new file mode 100644
index 0000000000..a582d20f9e
--- /dev/null
+++ b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4u/sparcv9/Makefile
@@ -0,0 +1,38 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+include ../Makefile.com
+include $(SRC)/lib/Makefile.lib.64
+
+.KEEP_STATE:
+
+all install: $(SYMCAP)
+
+include ../Makefile.targ
+
+pics/mont_mulf_asm.o: \
+ $(BIGNUM_DIR)/sun4u/mont_mulf_v9.s
+ $(COMPILE.s) -o $@ $(BIGNUM_DIR)/sun4u/mont_mulf_v9.s
+
diff --git a/usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4v/Makefile b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4v/Makefile
new file mode 100644
index 0000000000..77aed04fa7
--- /dev/null
+++ b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4v/Makefile
@@ -0,0 +1,47 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+include $(SRC)/lib/Makefile.lib
+
+SUBDIRS = $(MACH) $(BUILD64) $(MACH64)
+
+all := TARGET= all
+clean := TARGET= clean
+clobber := TARGET= clobber
+install := TARGET= install
+
+.KEEP_STATE:
+
+.PARALLEL: $(SUBDIRS)
+
+all clean clobber install: \
+ $(SUBDIRS)
+
+lint:
+
+$(SUBDIRS): FRC
+ @cd $@; pwd; $(MAKE) $(TARGET)
+
+FRC:
diff --git a/usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4v/Makefile.com b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4v/Makefile.com
new file mode 100644
index 0000000000..48a72842a7
--- /dev/null
+++ b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4v/Makefile.com
@@ -0,0 +1,40 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+PLATFORM = sun4v
+
+include ../../Makefile.com
+
+# Redefine the objects required for this capabilities group.
+OBJECTS = $(ARCFOUR_OBJS) $(BIGNUM_OBJS)
+
+include $(SRC)/lib/Makefile.lib
+
+AS_CPPFLAGS += -D__STDC__ -D_ASM -DPIC -D_REENTRANT -D$(MACH)
+ASFLAGS += $(AS_PICFLAGS) -P
+CFLAGS += $(CCVERBOSE) -xO5 -xbuiltin=%all -dalign
+CPPFLAGS += -D$(PLATFORM) -I$(CRYPTODIR) -I$(UTSDIR) \
+ -D_POSIX_PTHREAD_SEMANTICS
+BIGNUM_FLAGS += -DUMUL64 -DNO_BIG_ONE -DNO_BIG_TWO
diff --git a/usr/src/lib/libc_psr/sun4u_hwcap2/mapfile b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4v/Makefile.targ
index 428106b752..529351fa2e 100644
--- a/usr/src/lib/libc_psr/sun4u_hwcap2/mapfile
+++ b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4v/Makefile.targ
@@ -1,6 +1,4 @@
#
-# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
-#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
@@ -21,8 +19,8 @@
# CDDL HEADER END
#
-$mapfile_version 2
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
-CAPABILITY {
- hw += popc;
-};
+include ../../Makefile.targ
diff --git a/usr/src/lib/libmd/sun4u/Makefile.com b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4v/common/mapfile-cap
index 9fe1ae7d35..c10d8f4639 100644
--- a/usr/src/lib/libmd/sun4u/Makefile.com
+++ b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4v/common/mapfile-cap
@@ -18,24 +18,39 @@
#
# CDDL HEADER END
#
+
#
-# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
#
-LIBRARY= libmd_psr.a
-
-include $(SRC)/Makefile.psm
-include ../Makefile.links
-include ../../Makefile.com
-
-LIBS= $(DYNLIB)
-
-CFLAGS += -m32 -xarch=sparcvis
-CPPFLAGS += -D$(PLATFORM) -DVIS_SHA1
-ASFLAGS = -P $(ASDEFS)
+$mapfile_version 2
-INLINES= $(COMDIR)/md5/$(MACH)/$(PLATFORM)/byteswap.il
+CAPABILITY sun4v {
+ MACHINE = sun4v;
+};
-# XXX This seems wrong since we explicitly set LIBS to be DYNLIB only
-$(LINTLIB):= SRCS= ../../common/llib-lmd
+SYMBOL_SCOPE {
+ global:
+ arcfour_crypt;
+ arcfour_key_init;
+ big_add;
+ big_bitlength;
+ big_cmp_abs;
+ big_copy;
+ big_div_pos;
+ big_ext_gcd_pos;
+ big_extend;
+ big_finish;
+ big_init1;
+ big_init;
+ big_modexp;
+ big_modexp_crt;
+ big_mul;
+ big_nextprime_pos;
+ big_random;
+ big_sub;
+ big_sub_pos;
+ bignum2bytestring;
+ local:
+ *;
+};
diff --git a/usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4v/sparc/Makefile b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4v/sparc/Makefile
new file mode 100644
index 0000000000..96eebadc90
--- /dev/null
+++ b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4v/sparc/Makefile
@@ -0,0 +1,32 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+include ../Makefile.com
+
+.KEEP_STATE:
+
+all install: $(SYMCAP)
+
+include ../Makefile.targ
diff --git a/usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4v/sparcv9/Makefile b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4v/sparcv9/Makefile
new file mode 100644
index 0000000000..02c81e7510
--- /dev/null
+++ b/usr/src/lib/pkcs11/libsoftcrypto/capabilities/sun4v/sparcv9/Makefile
@@ -0,0 +1,33 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+#
+
+include ../Makefile.com
+include $(SRC)/lib/Makefile.lib.64
+
+.KEEP_STATE:
+
+all install: $(SYMCAP)
+
+include ../Makefile.targ
diff --git a/usr/src/lib/pkcs11/libsoftcrypto/i386/Makefile b/usr/src/lib/pkcs11/libsoftcrypto/i386/Makefile
index dcd7241c09..750bb15482 100644
--- a/usr/src/lib/pkcs11/libsoftcrypto/i386/Makefile
+++ b/usr/src/lib/pkcs11/libsoftcrypto/i386/Makefile
@@ -23,18 +23,37 @@
# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
#
-#
-# lib/pkcs11/libsoftcrypto/i386/Makefile
-#
+LIBRARY = libsoftcrypto.a
+VERS = .1
+
+include ../Makefile.com
+
+include $(SRC)/lib/Makefile.lib
+
+# Sources need to be redefined after Makefile.lib inclusion.
+SRCS = $(AES_SRC) $(ARCFOUR_SRC) $(BIGNUM_SRC) $(BLOWFISH_SRC) \
+ $(DES_SRC) $(MODES_SRC) $(DH_SRC) $(DSA_SRC) $(RSA_SRC) \
+ $(PAD_SRC)
+
+SRCDIR = $(SRC)/lib/pkcs11/libsoftcrypto/common
+
+LIBS = $(DYNLIB) $(LINTLIB)
+MAPFILEDIR = ../common
+
+CFLAGS += $(CCVERBOSE)
+CPPFLAGS += -I$(CRYPTODIR) -I$(UTSDIR) -D_POSIX_PTHREAD_SEMANTICS
+LDLIBS += -lcryptoutil -lc
+LINTFLAGS += $(EXTRA_LINT_FLAGS)
+
+# Symbol capabilities objects are i386.
+EXTPICS = ../capabilities/intel/i386/pics/symcap.o
-LIBRARY= libsoftcrypto.a
-VERS= .1
+.KEEP_STATE:
-include ../Makefile.com
+all: $(LIBS)
-LDLIBS += -lcryptoutil
-LIBS += $(LINTLIB)
+lint: $(SRCS)
-DYNFLAGS += -Wl,-f/usr/lib/libsoftcrypto/\$$HWCAP
+install: all $(ROOTLIBS) $(ROOTLINKS) $(ROOTLINT)
-install: all $(ROOTLIBS) $(ROOTLINKS) $(ROOTLINT)
+include ../Makefile.targ
diff --git a/usr/src/lib/pkcs11/libsoftcrypto/i386_hwcap1/Makefile b/usr/src/lib/pkcs11/libsoftcrypto/i386_hwcap1/Makefile
deleted file mode 100644
index 4f2eaa539b..0000000000
--- a/usr/src/lib/pkcs11/libsoftcrypto/i386_hwcap1/Makefile
+++ /dev/null
@@ -1,61 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
-#
-
-#
-# lib/pkcs11/libsoftcrypto/i386_hwcap1/Makefile
-#
-LIBRARY= libsoftcrypto_hwcap1.a
-VERS= .1
-
-MODULE= libsoftcrypto_hwcap1.so.1
-
-BIGNUM_PSM_OBJS= bignum_i386.o bignum_i386_asm.o
-BIGNUM_PSM_SRC= $(BIGNUM_DIR)/i386/bignum_i386_asm.s \
- $(BIGNUM_DIR)/i386/bignum_i386.c
-
-include ../Makefile.com
-
-BIGNUM_FLAGS += -DMMX_MANAGE -DHWCAP -DPSR_MUL
-LINTFLAGS += $(BIGNUM_FLAGS)
-
-LDLIBS += -lcryptoutil
-
-$(ROOTHWCAPDIR)/% := FILEMODE= 755
-
-install: all $(ROOTHWCAPDIR)/$(MODULE)
-
-pics/bignum_i386.o: $(BIGNUM_DIR)/i386/bignum_i386.c
- $(COMPILE.c) $(BIGNUM_FLAGS) -o $@ $(BIGNUM_DIR)/i386/bignum_i386.c
- $(POST_PROCESS_O)
-
-pics/bignum_i386_asm.o: $(BIGNUM_DIR)/i386/bignum_i386_asm.s
- $(COMPILE.s) -o $@ $(BIGNUM_DIR)/i386/bignum_i386_asm.s
- $(POST_PROCESS_O)
-
-$(ROOTHWCAPDIR): $(ROOTLIBDIR)
- $(INS.dir)
-
-$(ROOTHWCAPDIR)/%: $(ROOTHWCAPDIR) %
- $(INS.file)
diff --git a/usr/src/lib/pkcs11/libsoftcrypto/sparc/Makefile b/usr/src/lib/pkcs11/libsoftcrypto/sparc/Makefile
index 56ad2c2205..a5442e51ab 100644
--- a/usr/src/lib/pkcs11/libsoftcrypto/sparc/Makefile
+++ b/usr/src/lib/pkcs11/libsoftcrypto/sparc/Makefile
@@ -23,18 +23,38 @@
# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
#
-#
-# lib/pkcs11/libsoftcrypto/sparc/Makefile
-#
+LIBRARY = libsoftcrypto.a
+VERS = .1
+
+include ../Makefile.com
+
+include $(SRC)/lib/Makefile.lib
+
+# Sources need to be redefined after Makefile.lib inclusion.
+SRCS = $(AES_SRC) $(ARCFOUR_SRC) $(BIGNUM_SRC) $(BLOWFISH_SRC) \
+ $(DES_SRC) $(MODES_SRC) $(DH_SRC) $(DSA_SRC) $(RSA_SRC) \
+ $(PAD_SRC)
+
+SRCDIR = $(SRC)/lib/pkcs11/libsoftcrypto/common
+
+LIBS = $(DYNLIB) $(LINTLIB)
+MAPFILEDIR = ../common
+
+CFLAGS += $(CCVERBOSE)
+CPPFLAGS += -I$(CRYPTODIR) -I$(UTSDIR) -D_POSIX_PTHREAD_SEMANTICS
+LDLIBS += -lcryptoutil -lc
+LINTFLAGS += $(EXTRA_LINT_FLAGS)
+
+# Symbol capabilities objects are added for sun4u and sun4v.
+EXTPICS = ../capabilities/sun4u/sparc/pics/symcap.o \
+ ../capabilities/sun4v/sparc/pics/symcap.o
-LIBRARY= libsoftcrypto.a
-VERS= .1
+.KEEP_STATE:
-include ../Makefile.com
+all: $(LIBS)
-LDLIBS += -lcryptoutil
-LIBS += $(LINTLIB)
+lint: $(SRCS)
-DYNFLAGS += -Wl,-f/usr/platform/\$$PLATFORM/lib/$(DYNLIBPSR)
+install: all $(ROOTLIBS) $(ROOTLINKS) $(ROOTLINT)
-install: all $(ROOTLIBS) $(ROOTLINKS) $(ROOTLINT)
+include ../Makefile.targ
diff --git a/usr/src/lib/pkcs11/libsoftcrypto/sparcv9/Makefile b/usr/src/lib/pkcs11/libsoftcrypto/sparcv9/Makefile
index 037a1e36ef..0dc3a48308 100644
--- a/usr/src/lib/pkcs11/libsoftcrypto/sparcv9/Makefile
+++ b/usr/src/lib/pkcs11/libsoftcrypto/sparcv9/Makefile
@@ -23,19 +23,39 @@
# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
#
-#
-# lib/pkcs11/libsoftcrypto/sparcv9/Makefile
-#
+LIBRARY = libsoftcrypto.a
+VERS = .1
+
+include ../Makefile.com
+
+include $(SRC)/lib/Makefile.lib
+include $(SRC)/lib/Makefile.lib.64
+
+# Sources need to be redefined after Makefile.lib inclusion.
+SRCS = $(AES_SRC) $(ARCFOUR_SRC) $(BIGNUM_SRC) $(BLOWFISH_SRC) \
+ $(DES_SRC) $(MODES_SRC) $(DH_SRC) $(DSA_SRC) $(RSA_SRC) \
+ $(PAD_SRC)
+
+SRCDIR = $(SRC)/lib/pkcs11/libsoftcrypto/common
+
+LIBS = $(DYNLIB) $(LINTLIB)
+MAPFILEDIR = ../common
+
+CFLAGS += $(CCVERBOSE)
+CPPFLAGS += -I$(CRYPTODIR) -I$(UTSDIR) -D_POSIX_PTHREAD_SEMANTICS
+LDLIBS += -lcryptoutil -lc
+LINTFLAGS64 += $(EXTRA_LINT_FLAGS)
+
+# Symbol capabilities objects are added for sun4u and sun4v.
+EXTPICS = ../capabilities/sun4u/sparcv9/pics/symcap.o \
+ ../capabilities/sun4v/sparcv9/pics/symcap.o
-LIBRARY= libsoftcrypto.a
-VERS= .1
+.KEEP_STATE:
-include ../Makefile.com
-include $(SRC)/lib/Makefile.lib.64
+all: $(LIBS)
-LDLIBS += -lcryptoutil
-LIBS += $(LINTLIB)
+lint: $(SRCS)
-DYNFLAGS += -Wl,-f/usr/platform/\$$PLATFORM/lib/$(MACH64)/$(DYNLIBPSR)
+install: all $(ROOTLIBS64) $(ROOTLINKS64) $(ROOTLINT64)
-install: all $(ROOTLIBS64) $(ROOTLINKS64) $(ROOTLINT64)
+include ../Makefile.targ
diff --git a/usr/src/lib/pkcs11/libsoftcrypto/sun4u/Makefile.com b/usr/src/lib/pkcs11/libsoftcrypto/sun4u/Makefile.com
deleted file mode 100644
index 331bc8d77f..0000000000
--- a/usr/src/lib/pkcs11/libsoftcrypto/sun4u/Makefile.com
+++ /dev/null
@@ -1,137 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
-#
-
-#
-# lib/pkcs11/libsoftcrypto/sun4u/Makefile.com
-#
-
-LIBRARY = libsoftcrypto_psr.a
-VERS= .1
-PLATFORM = sun4u
-MODULE = libsoftcrypto_psr.so.1
-
-include $(SRC)/Makefile.psm
-include ../Makefile.links
-include ../../Makefile.com
-
-# Platform-specific settings
-#
-# Specifying *_OBJS here brings in both *_COMMON_OBJS and *_PSM_OBJS to this
-# platform-specific implementation, and *supercedes* (replaces) the common
-# version. Specifying only *_PSM_OBJS is used when the PSM version is
-# intended to *augment* (add onto) the common version.
-#
-# COMMON and PSM source/object setup is done in libsoftcrypto/Makefile.com,
-# and does not need to be repeated here. Only list *_SRCS/*_PSM_SRCS and
-# *_OBJS/*_PSM_OBJS that are platform-specific here. Keep SRCS= and
-# OBJECTS= in sync with each other. Update mapfile-vers to list only
-# the functions that are actually compiled into this platform-specific
-# library; do not duplicate what is already in common/mapfile-vers unless
-# this library is providing a superceded version of that function here.
-#
-# Note: This Makefile.com is set up to compile the PSM objects for AES,
-# ARCFOUR, and DES to augment the corresponding COMMON objects already
-# included in the base libsoftcrypto library. It does not compile anything
-# for sun4u sparc/sparcv9 to supercede a COMMON object from libsoftcrypto.
-# See the sun4v platform-specific implementation for an alternate example.
-#
-# NOTE: BIGNUM is different. There is actually no COMMON object in
-# libsoftcrypto for currently-supported platforms (sun4u, sun4v, i386/amd64).
-# The COMMON objects for BIGNUM are a starting point if a new platform is
-# ever added. Thus, BIGNUM_OBJS is listed in every currently-supported
-# platform-specific Makefile.com, in effect always overriding what it is
-# in the COMMON implementation. BIGNUM_PSM_OBJS is then used to further
-# augment BIGNUM_COMMON_OBJS on a platform-by-platform basis.
-#
-# Example:
-# 1. common/Makefile.com:
-# FOO_COMMON_OBJS = foo.o
-# FOO_PSM_OBJS = <blank>
-# FOO_OBJS = $(FOO_COMMON_OBJS) $(FOO_PSM_OBJS)
-#
-# BAR_COMMON_OBJS = bar.o
-# BAR_PSM_OBJS = <blank>
-# BAR_OBJS = $(BAR_COMMON_OBJS) $(BAR_PSM_OBJS)
-#
-# OBJECTS = $(FOO_OBJS) $(BAR_OBJS)
-# LIB = libsoftcrypto
-#
-# Compiling here will make a library libsoftcrypto.so containing:
-# foo.o bar.o
-#
-# Run time sees, unless it is a sun4u or sun4v platform (see below):
-# foo.o bar.o
-#
-# 2. sun4u/Makefile.com:
-# FOO_PSM_OBJS = foo-plus.o
-# OBJECTS = $(FOO_OBJS) /* defined in common */
-# LIB = libsoftcrypto_psr
-#
-# Compiling here will make a library libsoftcrypto_psr.so containing:
-# foo-plus.o
-#
-# Run time sees, on a sun4u platform only:
-# foo.o bar.o foo-plus.o /* note the difference */
-#
-# 3. sun4v/Makefile.com:
-# BAR_PSM_OBJS = bar'.o
-# OBJECTS = $(BAR_PSM_OBJS) /* not $(BAR_OBJS) */
-# LIB - libsoftcrypto_psr
-#
-# Compiling here will make a library libsoftcrypto_psr.so containing:
-# bar'.o
-#
-# Run time sees, on a sun4v platform only:
-# foo.o bar'.o /* note the difference */
-#
-AES_PSM_OBJS= aes_crypt_asm.o
-ARCFOUR_PSM_OBJS= arcfour_crypt_asm.o
-DES_PSM_OBJS= des_crypt_asm.o
-BIGNUM_PSM_OBJS= mont_mulf_asm.o
-BIGNUM_FLAGS += -DUSE_FLOATING_POINT
-
-MAPFILES = ../mapfile-vers
-OBJECTS = $(AES_OBJS) $(ARCFOUR_OBJS) $(DES_OBJS) $(BIGNUM_OBJS) \
- $(MODES_OBJS)
-
-# Compiler settings
-CFLAGS += -D$(PLATFORM)
-CFLAGS64 += -D$(PLATFORM)
-ASFLAGS += -DPIC
-
-$(USR_PSM_LIB_DIR)/% := FILEMODE = 755
-
-pics/aes_crypt_asm.o: $(AES_DIR)/sun4u/aes_crypt_asm.s
- $(COMPILE.s) $(AS_BIGPICFLAGS) -o $@ $(AES_DIR)/sun4u/aes_crypt_asm.s
- $(POST_PROCESS_O)
-
-pics/arcfour_crypt_asm.o: $(ARCFOUR_DIR)/sun4u/arcfour_crypt_asm.s
- $(COMPILE.s) $(AS_BIGPICFLAGS) -o $@ \
- $(ARCFOUR_DIR)/sun4u/arcfour_crypt_asm.s
- $(POST_PROCESS_O)
-
-pics/des_crypt_asm.o: $(DES_DIR)/sun4u/des_crypt_asm.s
- $(COMPILE.s) $(AS_BIGPICFLAGS) -o $@ $(DES_DIR)/sun4u/des_crypt_asm.s
- $(POST_PROCESS_O)
diff --git a/usr/src/lib/pkcs11/libsoftcrypto/sun4u/Makefile.links b/usr/src/lib/pkcs11/libsoftcrypto/sun4u/Makefile.links
deleted file mode 100644
index 96eafa633f..0000000000
--- a/usr/src/lib/pkcs11/libsoftcrypto/sun4u/Makefile.links
+++ /dev/null
@@ -1,61 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# lib/pkcs11/libsoftcrypto/sun4u/Makefile.links
-#
-# Used when building links in /usr/platform/sun4u/lib/ and
-# /usr/platform/sun4u/lib/sparcv9/
-#
-
-LINKED_PLATFORMS = \
- SUNW,Ultra-2 \
- SUNW,Ultra-4 \
- SUNW,Ultra-250 \
- SUNW,Ultra-Enterprise \
- SUNW,Ultra-Enterprise-10000 \
- SUNW,UltraSPARC-IIi-Netract \
- SUNW,UltraSPARC-IIe-NetraCT-40 \
- SUNW,UltraSPARC-IIe-NetraCT-60 \
- SUNW,Sun-Blade-100 \
- SUNW,Sun-Blade-1000 \
- SUNW,Sun-Blade-1500 \
- SUNW,Sun-Blade-2500 \
- SUNW,A70 \
- SUNW,Sun-Fire \
- SUNW,Sun-Fire-V215 \
- SUNW,Sun-Fire-V240 \
- SUNW,Sun-Fire-V250 \
- SUNW,Sun-Fire-V440 \
- SUNW,Sun-Fire-V445 \
- SUNW,Sun-Fire-280R \
- SUNW,Sun-Fire-15000 \
- SUNW,Sun-Fire-880 \
- SUNW,Sun-Fire-480R \
- SUNW,Sun-Fire-V890 \
- SUNW,Sun-Fire-V490 \
- SUNW,Serverblade1 \
- SUNW,Netra-T12 \
- SUNW,Netra-T4 \
- SUNW,Netra-CP2300 \
- SUNW,Netra-CP3010
diff --git a/usr/src/lib/pkcs11/libsoftcrypto/sun4u/mapfile-vers b/usr/src/lib/pkcs11/libsoftcrypto/sun4u/mapfile-vers
deleted file mode 100644
index 086993a110..0000000000
--- a/usr/src/lib/pkcs11/libsoftcrypto/sun4u/mapfile-vers
+++ /dev/null
@@ -1,85 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
-#
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-$mapfile_version 2
-
-SYMBOL_VERSION SUNWprivate {
- global:
- aes_alloc_keysched;
- aes_decrypt_contiguous_blocks;
- aes_decrypt_block;
- aes_encrypt_contiguous_blocks;
- aes_encrypt_block;
- aes_init_keysched;
- arcfour_crypt;
- arcfour_key_init;
- big_One;
- big_Two;
- big_add;
- big_bitlength;
- big_cmp_abs;
- big_copy;
- big_div_pos;
- big_ext_gcd_pos;
- big_extend;
- big_finish;
- big_init1;
- big_init;
- big_modexp;
- big_modexp_crt;
- big_mul;
- big_nextprime_pos;
- big_random;
- big_sub;
- big_sub_pos;
- bignum2bytestring;
- conv_d16_to_i32;
- conv_i32_to_d32;
- conv_i32_to_d16;
- conv_i32_to_d32_and_d16;
- mont_mulf_noconv;
- des3_crunch_block;
- des_alloc_keysched;
- des_crunch_block;
- des_init_keysched;
- des_keycheck;
- local:
- *;
-};
-
diff --git a/usr/src/lib/pkcs11/libsoftcrypto/sun4u/sparcv9/Makefile b/usr/src/lib/pkcs11/libsoftcrypto/sun4u/sparcv9/Makefile
deleted file mode 100644
index 49c32e620d..0000000000
--- a/usr/src/lib/pkcs11/libsoftcrypto/sun4u/sparcv9/Makefile
+++ /dev/null
@@ -1,44 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
-#
-
-#
-# lib/pkcs11/libsoftcrypto/sun4u/sparcv9/Makefile
-#
-
-CLASS = 64
-
-include ../Makefile.com
-include $(SRC)/lib/Makefile.lib.64
-
-# E_STATIC_UNUSED is for bignumimpl.c, big_modexp_ncp_int/big_modexp_ncp_float
-LINTFLAGS64 += -D$(PLATFORM) -erroff=E_STATIC_UNUSED
-
-install: all $(SOFT_PSR64_LINKS) $(USR_PSM_LIBS64)
-
-include $(SRC)/Makefile.psm.targ
-
-pics/mont_mulf_asm.o: $(BIGNUM_DIR)/sun4u/mont_mulf_v9.s
- $(COMPILE.s) -o $@ $(BIGNUM_DIR)/sun4u/mont_mulf_v9.s
- $(POST_PROCESS_O)
diff --git a/usr/src/lib/pkcs11/libsoftcrypto/sun4v/Makefile b/usr/src/lib/pkcs11/libsoftcrypto/sun4v/Makefile
deleted file mode 100644
index 4f0e552192..0000000000
--- a/usr/src/lib/pkcs11/libsoftcrypto/sun4v/Makefile
+++ /dev/null
@@ -1,47 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# lib/pkcs11/libsoftcrypto/sun4v/Makefile
-#
-
-include $(SRC)/lib/Makefile.lib
-
-SUBDIRS = $(MACH) $(PLATFORMS)
-$(BUILD64)SUBDIRS += $(MACH64)
-
-all := TARGET= all
-check := TARGET= check
-clean := TARGET= clean
-clobber := TARGET= clobber
-install := TARGET= install
-lint := TARGET= lint
-
-.PARALLEL: $(SUBDIRS)
-
-all check clean clobber install lint: $(SUBDIRS)
-
-$(SUBDIRS): FRC
- @cd $@; pwd; $(MAKE) $(TARGET)
-
-FRC:
diff --git a/usr/src/lib/pkcs11/libsoftcrypto/sun4v/Makefile.com b/usr/src/lib/pkcs11/libsoftcrypto/sun4v/Makefile.com
deleted file mode 100644
index 3bc7dc8048..0000000000
--- a/usr/src/lib/pkcs11/libsoftcrypto/sun4v/Makefile.com
+++ /dev/null
@@ -1,68 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
-#
-
-#
-# lib/pkcs11/libsoftcrypto/sun4v/Makefile.com
-#
-
-LIBRARY = libsoftcrypto_psr.a
-VERS= .1
-PLATFORM = sun4v
-MODULE = libsoftcrypto_psr.so.1
-
-include $(SRC)/Makefile.psm
-include ../Makefile.links
-include ../../Makefile.com
-
-# Platform-specific settings
-#
-# See the sun4u platform-specific Makefile.com for important information
-# that also relates to this file.
-#
-# Note: This file is set up to compile the PSM objects for ARCFOUR to
-# *augment* (add onto) its common objects from libsoftcrypto, and to compile
-# BIGNUM to *supercede* (replaced) its common objects from libsoftcrypto.
-#
-ARCFOUR_PSM_OBJS= arcfour_crypt.o
-ARCFOUR_PSM_SRC= $(ARCFOUR_DIR)/sun4v/arcfour_crypt.c
-BIGNUM_FLAGS += -DUMUL64
-
-MAPFILES= ../mapfile-vers
-OBJECTS= $(ARCFOUR_PSM_OBJS) $(BIGNUM_OBJS)
-
-# Compiler settings
-sparc_XARCH = -m32 -xarch=sparc
-sparcv9_XARCH = -m64 -xarch=sparcvis
-
-# Niagara perf options as per $SRC/uts/sun4v/arcfour
-CFLAGS += -xO5 -xbuiltin=%all -dalign -D$(PLATFORM)
-CFLAGS64 += -D$(PLATFORM)
-ASFLAGS += -DPIC
-
-$(USR_PSM_LIB_DIR)/% := FILEMODE = 755
-
-pics/arcfour_crypt.o: $(ARCFOUR_DIR)/sun4v/arcfour_crypt.c
- $(COMPILE.c) -o $@ $(ARCFOUR_DIR)/sun4v/arcfour_crypt.c
- $(POST_PROCESS_O)
diff --git a/usr/src/lib/pkcs11/libsoftcrypto/sun4v/Makefile.links b/usr/src/lib/pkcs11/libsoftcrypto/sun4v/Makefile.links
deleted file mode 100644
index c450d67c2e..0000000000
--- a/usr/src/lib/pkcs11/libsoftcrypto/sun4v/Makefile.links
+++ /dev/null
@@ -1,41 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-#
-# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# lib/libsoftcrypto/sun4v/Makefile.links
-#
-# Used when building links in /usr/platform/sun4v/lib and
-# /usr/platform/sun4v/lib/sparcv9/
-#
-
-LINKED_PLATFORMS = \
- SUNW,Netra-CP3060 \
- SUNW,Netra-CP3260 \
- SUNW,Netra-T5220 \
- SUNW,Netra-T5440 \
- SUNW,SPARC-Enterprise-T5120 \
- SUNW,Sun-Blade-T6300 \
- SUNW,Sun-Blade-T6320 \
- SUNW,Sun-Fire-T200 \
- SUNW,T5140 \
- SUNW,USBRDT-5240
diff --git a/usr/src/lib/pkcs11/libsoftcrypto/sun4v/mapfile-vers b/usr/src/lib/pkcs11/libsoftcrypto/sun4v/mapfile-vers
deleted file mode 100644
index a831fd420a..0000000000
--- a/usr/src/lib/pkcs11/libsoftcrypto/sun4v/mapfile-vers
+++ /dev/null
@@ -1,69 +0,0 @@
-#
-# CDDL HEADER START
-#
-# The contents of this file are subject to the terms of the
-# Common Development and Distribution License (the "License").
-# You may not use this file except in compliance with the License.
-#
-# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
-# See the License for the specific language governing permissions
-# and limitations under the License.
-#
-# When distributing Covered Code, include this CDDL HEADER in each
-# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
-# If applicable, add the following below this CDDL HEADER, with the
-# fields enclosed by brackets "[]" replaced with your own identifying
-# information: Portions Copyright [yyyy] [name of copyright owner]
-#
-# CDDL HEADER END
-#
-
-#
-# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
-#
-
-#
-# MAPFILE HEADER START
-#
-# WARNING: STOP NOW. DO NOT MODIFY THIS FILE.
-# Object versioning must comply with the rules detailed in
-#
-# usr/src/lib/README.mapfiles
-#
-# You should not be making modifications here until you've read the most current
-# copy of that file. If you need help, contact a gatekeeper for guidance.
-#
-# MAPFILE HEADER END
-#
-
-
-$mapfile_version 2
-
-SYMBOL_VERSION SUNWprivate {
- global:
- arcfour_crypt;
- arcfour_key_init;
- big_One;
- big_Two;
- big_add;
- big_bitlength;
- big_cmp_abs;
- big_copy;
- big_div_pos;
- big_ext_gcd_pos;
- big_extend;
- big_finish;
- big_init1;
- big_init;
- big_modexp;
- big_modexp_crt;
- big_mul;
- big_nextprime_pos;
- big_random;
- big_sub;
- big_sub_pos;
- bignum2bytestring;
- local:
- *;
-};
diff --git a/usr/src/pkg/manifests/SUNWcs.mf b/usr/src/pkg/manifests/SUNWcs.mf
index 44794a6a0e..cf62dc6b84 100644
--- a/usr/src/pkg/manifests/SUNWcs.mf
+++ b/usr/src/pkg/manifests/SUNWcs.mf
@@ -1435,6 +1435,7 @@ file path=usr/sbin/syncstat mode=0555
file path=usr/sbin/syseventadm group=sys mode=0555
file path=usr/sbin/syslogd group=sys mode=0555
file path=usr/sbin/tar mode=0555
+file path=usr/sbin/trapstat mode=0555
file path=usr/sbin/traceroute mode=4555
file path=usr/sbin/ttyadm group=sys mode=0755
$(i386_ONLY)file path=usr/sbin/ucodeadm mode=0555
@@ -2208,7 +2209,6 @@ hardlink path=usr/sbin/share target=../../usr/sbin/sharemgr
hardlink path=usr/sbin/swap target=../../usr/lib/isaexec
hardlink path=usr/sbin/sysdef target=../../usr/lib/isaexec
hardlink path=usr/sbin/tapes target=./devfsadm
-hardlink path=usr/sbin/trapstat target=../../usr/lib/platexec
hardlink path=usr/sbin/unshare target=../../usr/sbin/sharemgr
hardlink path=usr/sbin/update_drv target=../../usr/lib/isaexec
hardlink path=usr/sbin/whodo target=../../usr/lib/isaexec
diff --git a/usr/src/pkg/manifests/system-library-platform.mf b/usr/src/pkg/manifests/system-library-platform.mf
index 4fce3c0acf..8150922c50 100644
--- a/usr/src/pkg/manifests/system-library-platform.mf
+++ b/usr/src/pkg/manifests/system-library-platform.mf
@@ -33,141 +33,98 @@ dir path=usr group=sys
dir path=usr/platform group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,A70 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,A70/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,A70/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,Netra-CP2300 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,Netra-CP2300/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,Netra-CP2300/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,Netra-CP2300/sbin
$(sparc_ONLY)dir path=usr/platform/SUNW,Netra-CP3010 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,Netra-CP3010/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,Netra-CP3010/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,Netra-CP3010/sbin
$(sparc_ONLY)dir path=usr/platform/SUNW,Netra-CP3060 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,Netra-CP3060/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,Netra-CP3060/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,Netra-CP3060/sbin
$(sparc_ONLY)dir path=usr/platform/SUNW,Netra-CP3260 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,Netra-CP3260/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,Netra-CP3260/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,Netra-CP3260/sbin
$(sparc_ONLY)dir path=usr/platform/SUNW,Netra-T12 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,Netra-T12/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,Netra-T12/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,Netra-T4 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,Netra-T4/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,Netra-T4/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,Netra-T5220 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,Netra-T5220/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,Netra-T5220/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,Netra-T5440 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,Netra-T5440/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,Netra-T5440/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,SPARC-Enterprise group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,SPARC-Enterprise-T5120 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,SPARC-Enterprise-T5120/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,SPARC-Enterprise-T5120/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,SPARC-Enterprise/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,SPARC-Enterprise/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,SPARC-Enterprise/lib/cfgadm group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,SPARC-Enterprise/lib/cfgadm/$(ARCH64) \
group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,SPARC-Enterprise/sbin
$(sparc_ONLY)dir path=usr/platform/SUNW,Serverblade1 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,Serverblade1/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,Serverblade1/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Blade-100 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Blade-100/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Blade-100/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Blade-1000 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Blade-1000/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Blade-1000/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Blade-1500 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Blade-1500/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Blade-1500/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Blade-2500 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Blade-2500/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Blade-2500/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Blade-T6300 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Blade-T6300/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Blade-T6300/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Blade-T6320 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Blade-T6320/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Blade-T6320/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-15000 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-15000/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-15000/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-280R group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-280R/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-280R/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-480R group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-480R/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-480R/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-880 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-880/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-880/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-T200 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-T200/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-T200/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-V215 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-V215/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-V215/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-V215/sbin
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-V240 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-V240/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-V240/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-V240/sbin
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-V250 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-V250/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-V250/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-V250/sbin
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-V440 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-V440/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-V440/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-V445 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-V445/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-V445/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-V445/sbin
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-V490 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-V490/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-V490/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-V890 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-V890/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire-V890/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,Sun-Fire/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,T5140 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,T5140/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,T5140/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,USBRDT-5240 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,USBRDT-5240/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,USBRDT-5240/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,Ultra-2 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,Ultra-2/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,Ultra-2/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,Ultra-250 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,Ultra-250/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,Ultra-250/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,Ultra-4 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,Ultra-4/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,Ultra-4/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,Ultra-Enterprise group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,Ultra-Enterprise-10000 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,Ultra-Enterprise-10000/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,Ultra-Enterprise-10000/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,Ultra-Enterprise/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,Ultra-Enterprise/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,UltraSPARC-IIe-NetraCT-40 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,UltraSPARC-IIe-NetraCT-40/lib
-$(sparc_ONLY)dir \
- path=usr/platform/SUNW,UltraSPARC-IIe-NetraCT-40/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,UltraSPARC-IIe-NetraCT-60 group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,UltraSPARC-IIe-NetraCT-60/lib
-$(sparc_ONLY)dir \
- path=usr/platform/SUNW,UltraSPARC-IIe-NetraCT-60/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/SUNW,UltraSPARC-IIi-Netract group=sys
$(sparc_ONLY)dir path=usr/platform/SUNW,UltraSPARC-IIi-Netract/lib
-$(sparc_ONLY)dir path=usr/platform/SUNW,UltraSPARC-IIi-Netract/lib/$(ARCH64)
$(i386_ONLY)dir path=usr/platform/i86pc group=sys
$(i386_ONLY)dir path=usr/platform/i86pc/lib
$(sparc_ONLY)dir path=usr/platform/sun4u group=sys
@@ -176,7 +133,6 @@ $(sparc_ONLY)dir path=usr/platform/sun4u-opl/lib
$(sparc_ONLY)dir path=usr/platform/sun4u-us3 group=sys
$(sparc_ONLY)dir path=usr/platform/sun4u-us3/lib
$(sparc_ONLY)dir path=usr/platform/sun4u/lib
-$(sparc_ONLY)dir path=usr/platform/sun4u/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/sun4u/lib/cfgadm
$(sparc_ONLY)dir path=usr/platform/sun4u/lib/cfgadm/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/sun4u/lib/fs
@@ -188,7 +144,6 @@ $(sparc_ONLY)dir path=usr/platform/sun4u/sbin
$(sparc_ONLY)dir path=usr/platform/sun4v group=sys
$(sparc_ONLY)dir path=usr/platform/sun4v/include
$(sparc_ONLY)dir path=usr/platform/sun4v/lib
-$(sparc_ONLY)dir path=usr/platform/sun4v/lib/$(ARCH64)
$(sparc_ONLY)dir path=usr/platform/sun4v/lib/fs
$(sparc_ONLY)dir path=usr/platform/sun4v/lib/fs/hsfs
$(sparc_ONLY)dir path=usr/platform/sun4v/lib/fs/nfs
@@ -223,7 +178,6 @@ $(sparc_ONLY)file \
path=usr/platform/SUNW,Ultra-Enterprise/lib/libprtdiag_psr.so.1
$(sparc_ONLY)file \
path=usr/platform/SUNW,UltraSPARC-IIi-Netract/lib/libprtdiag_psr.so.1
-$(sparc_ONLY)file path=usr/platform/sun4u/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)file path=usr/platform/sun4u/lib/cfgadm/$(ARCH64)/ac.so.1
$(sparc_ONLY)file path=usr/platform/sun4u/lib/cfgadm/$(ARCH64)/sbd.so.1
$(sparc_ONLY)file path=usr/platform/sun4u/lib/cfgadm/$(ARCH64)/sysctrl.so.1
@@ -232,19 +186,14 @@ $(sparc_ONLY)file path=usr/platform/sun4u/lib/cfgadm/sbd.so.1
$(sparc_ONLY)file path=usr/platform/sun4u/lib/cfgadm/sysctrl.so.1
$(sparc_ONLY)file path=usr/platform/sun4u/lib/fs/nfs/inetboot group=sys
$(sparc_ONLY)file path=usr/platform/sun4u/lib/libprtdiag.so.1
-$(sparc_ONLY)file path=usr/platform/sun4u/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)file path=usr/platform/sun4u/sbin/prtdiag group=sys mode=2755
-$(sparc_ONLY)file path=usr/platform/sun4u/sbin/trapstat mode=0555
$(sparc_ONLY)file path=usr/platform/sun4v/include/tsalarm.h
-$(sparc_ONLY)file path=usr/platform/sun4v/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)file path=usr/platform/sun4v/lib/fs/nfs/inetboot group=sys
$(sparc_ONLY)file path=usr/platform/sun4v/lib/libpcp.so.1
$(sparc_ONLY)file path=usr/platform/sun4v/lib/libprtdiag.so.1
-$(sparc_ONLY)file path=usr/platform/sun4v/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)file path=usr/platform/sun4v/lib/libtsalarm.so.1
$(sparc_ONLY)file path=usr/platform/sun4v/sbin/device_remap mode=0544
$(sparc_ONLY)file path=usr/platform/sun4v/sbin/prtdiag group=sys mode=2755
-$(sparc_ONLY)file path=usr/platform/sun4v/sbin/trapstat mode=0555
$(i386_ONLY)legacy pkg=SUNWkvm.i arch=$(ARCH).i86pc category=system \
desc="core software for a specific hardware platform group" \
hotline="Please contact your local service provider" \
@@ -267,113 +216,60 @@ $(sparc_ONLY)legacy pkg=SUNWkvmt200.v arch=$(ARCH).sun4v category=system \
vendor="Sun Microsystems, Inc." version=11.11,REV=2009.11.11
license cr_Sun license=cr_Sun
license lic_CDDL license=lic_CDDL
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,A70/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,A70/lib/cfgadm \
target=../../sun4u/lib/cfgadm
$(sparc_ONLY)link path=usr/platform/SUNW,A70/lib/fs target=../../sun4u/lib/fs
-$(sparc_ONLY)link path=usr/platform/SUNW,A70/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4u/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,A70/sbin target=../sun4u/sbin
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-210 target=SUNW,Sun-Fire-V240
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-240 target=SUNW,Sun-Fire-V240
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-440 target=SUNW,Sun-Fire-V440
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Netra-CP2300/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-CP2300/lib/cfgadm \
target=../../sun4u/lib/cfgadm
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-CP2300/lib/fs \
target=../../sun4u/lib/fs
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Netra-CP2300/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4u/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-CP2300/sbin/prtdiag \
target=../../sun4u/sbin/prtdiag
-$(sparc_ONLY)link path=usr/platform/SUNW,Netra-CP2300/sbin/trapstat \
- target=../../sun4u/sbin/trapstat
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Netra-CP3010/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-CP3010/lib/cfgadm \
target=../../sun4u/lib/cfgadm
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-CP3010/lib/fs \
target=../../sun4u/lib/fs
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Netra-CP3010/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4u/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-CP3010/sbin/prtdiag \
target=../../sun4u/sbin/prtdiag
-$(sparc_ONLY)link path=usr/platform/SUNW,Netra-CP3010/sbin/trapstat \
- target=../../sun4u/sbin/trapstat
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Netra-CP3060/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4v/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-CP3060/lib/fs \
target=../../sun4v/lib/fs
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-CP3060/lib/libpcp.so \
target=../../sun4v/lib/libpcp.so
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-CP3060/lib/libpcp.so.1 \
target=../../sun4v/lib/libpcp.so.1
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Netra-CP3060/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4v/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-CP3060/sbin/prtdiag \
target=../../sun4v/sbin/prtdiag
-$(sparc_ONLY)link path=usr/platform/SUNW,Netra-CP3060/sbin/trapstat \
- target=../../sun4v/sbin/trapstat
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Netra-CP3260/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4v/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-CP3260/lib/fs \
target=../../sun4v/lib/fs
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-CP3260/lib/libpcp.so \
target=../../sun4v/lib/libpcp.so
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-CP3260/lib/libpcp.so.1 \
target=../../sun4v/lib/libpcp.so.1
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Netra-CP3260/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4v/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-CP3260/sbin/prtdiag \
target=../../sun4v/sbin/prtdiag
-$(sparc_ONLY)link path=usr/platform/SUNW,Netra-CP3260/sbin/trapstat \
- target=../../sun4v/sbin/trapstat
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Netra-T12/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-T12/lib/cfgadm \
target=../../sun4u/lib/cfgadm
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-T12/lib/fs \
target=../../sun4u/lib/fs
-$(sparc_ONLY)link path=usr/platform/SUNW,Netra-T12/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4u/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-T12/sbin target=../sun4u/sbin
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-T2000 target=SUNW,Sun-Fire-T200
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Netra-T4/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-T4/lib/cfgadm \
target=../../sun4u/lib/cfgadm
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-T4/lib/fs \
target=../../sun4u/lib/fs
-$(sparc_ONLY)link path=usr/platform/SUNW,Netra-T4/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4u/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-T4/sbin target=../sun4u/sbin
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-T5220/include \
target=../sun4v/include
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Netra-T5220/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4v/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-T5220/lib/fs \
target=../../sun4v/lib/fs
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-T5220/lib/libpcp.so \
target=../../sun4v/lib/libpcp.so
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-T5220/lib/libpcp.so.1 \
target=../../sun4v/lib/libpcp.so.1
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Netra-T5220/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4v/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-T5220/lib/libtsalarm.so \
target=../../sun4v/lib/libtsalarm.so
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-T5220/lib/libtsalarm.so.1 \
@@ -381,18 +277,12 @@ $(sparc_ONLY)link path=usr/platform/SUNW,Netra-T5220/lib/libtsalarm.so.1 \
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-T5220/sbin target=../sun4v/sbin
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-T5440/include \
target=../sun4v/include
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Netra-T5440/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4v/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-T5440/lib/fs \
target=../../sun4v/lib/fs
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-T5440/lib/libpcp.so \
target=../../sun4v/lib/libpcp.so
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-T5440/lib/libpcp.so.1 \
target=../../sun4v/lib/libpcp.so.1
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Netra-T5440/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4v/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-T5440/lib/libtsalarm.so \
target=../../sun4v/lib/libtsalarm.so
$(sparc_ONLY)link path=usr/platform/SUNW,Netra-T5440/lib/libtsalarm.so.1 \
@@ -402,9 +292,6 @@ $(sparc_ONLY)link path=usr/platform/SUNW,SPARC-Enterprise-T1000 \
target=SUNW,Sun-Fire-T200
$(sparc_ONLY)link path=usr/platform/SUNW,SPARC-Enterprise-T2000 \
target=SUNW,Sun-Fire-T200
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,SPARC-Enterprise-T5120/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4v/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,SPARC-Enterprise-T5120/lib/fs \
target=../../sun4v/lib/fs
$(sparc_ONLY)link path=usr/platform/SUNW,SPARC-Enterprise-T5120/lib/libpcp.so \
@@ -412,9 +299,6 @@ $(sparc_ONLY)link path=usr/platform/SUNW,SPARC-Enterprise-T5120/lib/libpcp.so \
$(sparc_ONLY)link \
path=usr/platform/SUNW,SPARC-Enterprise-T5120/lib/libpcp.so.1 \
target=../../sun4v/lib/libpcp.so.1
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,SPARC-Enterprise-T5120/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4v/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,SPARC-Enterprise-T5120/sbin \
target=../sun4v/sbin
$(sparc_ONLY)link path=usr/platform/SUNW,SPARC-Enterprise-T5220 \
@@ -428,71 +312,36 @@ $(sparc_ONLY)link path=usr/platform/SUNW,SPARC-Enterprise/lib/fs \
target=../../sun4u/lib/fs
$(sparc_ONLY)link path=usr/platform/SUNW,SPARC-Enterprise/sbin/prtdiag \
target=../../sun4u/sbin/prtdiag
-$(sparc_ONLY)link path=usr/platform/SUNW,SPARC-Enterprise/sbin/trapstat \
- target=../../sun4u/sbin/trapstat
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Serverblade1/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Serverblade1/lib/cfgadm \
target=../../sun4u/lib/cfgadm
$(sparc_ONLY)link path=usr/platform/SUNW,Serverblade1/lib/fs \
target=../../sun4u/lib/fs
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Serverblade1/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4u/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Serverblade1/sbin \
target=../sun4u/sbin
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Blade-100/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Blade-100/lib/cfgadm \
target=../../sun4u/lib/cfgadm
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Blade-100/lib/fs \
target=../../sun4u/lib/fs
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Blade-100/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4u/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Blade-100/sbin \
target=../sun4u/sbin
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Blade-1000/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Blade-1000/lib/cfgadm \
target=../../sun4u/lib/cfgadm
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Blade-1000/lib/fs \
target=../../sun4u/lib/fs
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Blade-1000/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4u/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Blade-1000/sbin \
target=../sun4u/sbin
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Blade-1500/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Blade-1500/lib/cfgadm \
target=../../sun4u/lib/cfgadm
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Blade-1500/lib/fs \
target=../../sun4u/lib/fs
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Blade-1500/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4u/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Blade-1500/sbin \
target=../sun4u/sbin
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Blade-2500/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Blade-2500/lib/cfgadm \
target=../../sun4u/lib/cfgadm
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Blade-2500/lib/fs \
target=../../sun4u/lib/fs
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Blade-2500/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4u/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Blade-2500/sbin \
target=../sun4u/sbin
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Blade-T6300/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4v/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Blade-T6300/lib/fs \
target=../../sun4v/lib/fs
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Blade-T6300/lib/libpcp.so \
@@ -502,95 +351,53 @@ $(sparc_ONLY)link path=usr/platform/SUNW,Sun-Blade-T6300/lib/libpcp.so.1 \
$(sparc_ONLY)link \
path=usr/platform/SUNW,Sun-Blade-T6300/lib/libprtdiag_psr.so.1 \
target=../../SUNW,Sun-Fire-T200/lib/libprtdiag_psr.so.1
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Blade-T6300/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4v/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Blade-T6300/sbin \
target=../sun4v/sbin
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Blade-T6320/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4v/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Blade-T6320/lib/fs \
target=../../sun4v/lib/fs
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Blade-T6320/lib/libpcp.so \
target=../../sun4v/lib/libpcp.so
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Blade-T6320/lib/libpcp.so.1 \
target=../../sun4v/lib/libpcp.so.1
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Blade-T6320/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4v/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Blade-T6320/sbin \
target=../sun4v/sbin
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Blade-T6340 target=SUNW,T5140
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Fire-15000/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-15000/lib/cfgadm \
target=../../sun4u/lib/cfgadm
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-15000/lib/fs \
target=../../sun4u/lib/fs
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Fire-15000/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4u/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-15000/sbin \
target=../sun4u/sbin
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Fire-280R/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-280R/lib/cfgadm \
target=../../sun4u/lib/cfgadm
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-280R/lib/fs \
target=../../sun4u/lib/fs
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Fire-280R/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4u/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-280R/sbin \
target=../sun4u/sbin
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Fire-480R/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-480R/lib/cfgadm \
target=../../sun4u/lib/cfgadm
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-480R/lib/fs \
target=../../sun4u/lib/fs
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Fire-480R/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4u/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-480R/sbin \
target=../sun4u/sbin
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Fire-880/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-880/lib/cfgadm \
target=../../sun4u/lib/cfgadm
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-880/lib/fs \
target=../../sun4u/lib/fs
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Fire-880/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4u/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-880/sbin \
target=../sun4u/sbin
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-T1000 \
target=SUNW,Sun-Fire-T200
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Fire-T200/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4v/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-T200/lib/fs \
target=../../sun4v/lib/fs
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-T200/lib/libpcp.so \
target=../../sun4v/lib/libpcp.so
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-T200/lib/libpcp.so.1 \
target=../../sun4v/lib/libpcp.so.1
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Fire-T200/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4v/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-T200/sbin \
target=../sun4v/sbin
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V210 \
target=SUNW,Sun-Fire-V240
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Fire-V215/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V215/lib/cfgadm \
target=../../sun4u/lib/cfgadm
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V215/lib/fs \
@@ -599,38 +406,22 @@ $(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V215/lib/librsc.so \
target=../../SUNW,Sun-Fire-V240/lib/librsc.so
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V215/lib/librsc.so.1 \
target=../../SUNW,Sun-Fire-V240/lib/librsc.so.1
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Fire-V215/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4u/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V215/lib/llib-lrsc.ln \
target=../../SUNW,Sun-Fire-V240/lib/llib-lrsc.ln
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V215/sbin/prtdiag \
target=../../sun4u/sbin/prtdiag
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V215/sbin/scadm \
target=../../SUNW,Sun-Fire-V240/sbin/scadm
-$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V215/sbin/trapstat \
- target=../../sun4u/sbin/trapstat
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Fire-V240/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V240/lib/cfgadm \
target=../../sun4u/lib/cfgadm
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V240/lib/fs \
target=../../sun4u/lib/fs
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V240/lib/librsc.so \
target=./librsc.so.1
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Fire-V240/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4u/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V240/sbin/prtdiag \
target=../../sun4u/sbin/prtdiag
-$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V240/sbin/trapstat \
- target=../../sun4u/sbin/trapstat
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V245 \
target=SUNW,Sun-Fire-V215
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Fire-V250/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V250/lib/cfgadm \
target=../../sun4u/lib/cfgadm
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V250/lib/fs \
@@ -639,20 +430,12 @@ $(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V250/lib/librsc.so \
target=../../SUNW,Sun-Fire-V240/lib/librsc.so
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V250/lib/librsc.so.1 \
target=../../SUNW,Sun-Fire-V240/lib/librsc.so.1
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Fire-V250/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4u/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V250/lib/llib-lrsc.ln \
target=../../SUNW,Sun-Fire-V240/lib/llib-lrsc.ln
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V250/sbin/prtdiag \
target=../../sun4u/sbin/prtdiag
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V250/sbin/scadm \
target=../../SUNW,Sun-Fire-V240/sbin/scadm
-$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V250/sbin/trapstat \
- target=../../sun4u/sbin/trapstat
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Fire-V440/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V440/lib/cfgadm \
target=../../sun4u/lib/cfgadm
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V440/lib/fs \
@@ -661,16 +444,10 @@ $(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V440/lib/librsc.so \
target=../../SUNW,Sun-Fire-V240/lib/librsc.so
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V440/lib/librsc.so.1 \
target=../../SUNW,Sun-Fire-V240/lib/librsc.so.1
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Fire-V440/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4u/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V440/lib/llib-lrsc.ln \
target=../../SUNW,Sun-Fire-V240/lib/llib-lrsc.ln
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V440/sbin \
target=../SUNW,Sun-Fire-V240/sbin
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Fire-V445/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V445/lib/cfgadm \
target=../../sun4u/lib/cfgadm
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V445/lib/fs \
@@ -679,144 +456,84 @@ $(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V445/lib/librsc.so \
target=../../SUNW,Sun-Fire-V240/lib/librsc.so
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V445/lib/librsc.so.1 \
target=../../SUNW,Sun-Fire-V240/lib/librsc.so.1
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Fire-V445/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4u/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V445/lib/llib-lrsc.ln \
target=../../SUNW,Sun-Fire-V240/lib/llib-lrsc.ln
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V445/sbin/prtdiag \
target=../../sun4u/sbin/prtdiag
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V445/sbin/scadm \
target=../../SUNW,Sun-Fire-V240/sbin/scadm
-$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V445/sbin/trapstat \
- target=../../sun4u/sbin/trapstat
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Fire-V490/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V490/lib/cfgadm \
target=../../sun4u/lib/cfgadm
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V490/lib/fs \
target=../../sun4u/lib/fs
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V490/lib/libprtdiag_psr.so.1 \
target=../../SUNW,Sun-Fire-480R/lib/libprtdiag_psr.so.1
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Fire-V490/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4u/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V490/sbin \
target=../sun4u/sbin
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Fire-V890/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V890/lib/cfgadm \
target=../../sun4u/lib/cfgadm
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V890/lib/fs \
target=../../sun4u/lib/fs
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V890/lib/libprtdiag_psr.so.1 \
target=../../SUNW,Sun-Fire-880/lib/libprtdiag_psr.so.1
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Fire-V890/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4u/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire-V890/sbin \
target=../sun4u/sbin
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Sun-Fire/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire/lib/cfgadm \
target=../../sun4u/lib/cfgadm
$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire/lib/fs \
target=../../sun4u/lib/fs
-$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4u/lib/libsoftcrypto_psr.so.1
-$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire/sbin target=../sun4u/sbin
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,T5140/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4v/lib/$(ARCH64)/libsoftcrypto_psr.so.1
+$(sparc_ONLY)link path=usr/platform/SUNW,Sun-Fire/sbin \
+ target=../sun4u/sbin
$(sparc_ONLY)link path=usr/platform/SUNW,T5140/lib/fs \
target=../../sun4v/lib/fs
$(sparc_ONLY)link path=usr/platform/SUNW,T5140/lib/libpcp.so \
target=../../sun4v/lib/libpcp.so
$(sparc_ONLY)link path=usr/platform/SUNW,T5140/lib/libpcp.so.1 \
target=../../sun4v/lib/libpcp.so.1
-$(sparc_ONLY)link path=usr/platform/SUNW,T5140/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4v/lib/libsoftcrypto_psr.so.1
-$(sparc_ONLY)link path=usr/platform/SUNW,T5140/sbin target=../sun4v/sbin
+$(sparc_ONLY)link path=usr/platform/SUNW,T5140/sbin \
+ target=../sun4v/sbin
$(sparc_ONLY)link path=usr/platform/SUNW,T5240 target=SUNW,T5140
$(sparc_ONLY)link path=usr/platform/SUNW,T5440 target=SUNW,T5140
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,USBRDT-5240/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4v/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,USBRDT-5240/lib/fs \
target=../../sun4v/lib/fs
$(sparc_ONLY)link path=usr/platform/SUNW,USBRDT-5240/lib/libpcp.so \
target=../../sun4v/lib/libpcp.so
$(sparc_ONLY)link path=usr/platform/SUNW,USBRDT-5240/lib/libpcp.so.1 \
target=../../sun4v/lib/libpcp.so.1
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,USBRDT-5240/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4v/lib/libsoftcrypto_psr.so.1
-$(sparc_ONLY)link path=usr/platform/SUNW,USBRDT-5240/sbin target=../sun4v/sbin
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Ultra-2/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libsoftcrypto_psr.so.1
+$(sparc_ONLY)link path=usr/platform/SUNW,USBRDT-5240/sbin \
+ target=../sun4v/sbin
$(sparc_ONLY)link path=usr/platform/SUNW,Ultra-2/lib/cfgadm \
target=../../sun4u/lib/cfgadm
$(sparc_ONLY)link path=usr/platform/SUNW,Ultra-2/lib/fs \
target=../../sun4u/lib/fs
-$(sparc_ONLY)link path=usr/platform/SUNW,Ultra-2/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4u/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Ultra-2/sbin target=../sun4u/sbin
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Ultra-250/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Ultra-250/lib/cfgadm \
target=../../sun4u/lib/cfgadm
$(sparc_ONLY)link path=usr/platform/SUNW,Ultra-250/lib/fs \
target=../../sun4u/lib/fs
-$(sparc_ONLY)link path=usr/platform/SUNW,Ultra-250/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4u/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Ultra-250/sbin target=../sun4u/sbin
$(sparc_ONLY)link path=usr/platform/SUNW,Ultra-30 target=SUNW,Ultra-2
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Ultra-4/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Ultra-4/lib/cfgadm \
target=../../sun4u/lib/cfgadm
$(sparc_ONLY)link path=usr/platform/SUNW,Ultra-4/lib/fs \
target=../../sun4u/lib/fs
-$(sparc_ONLY)link path=usr/platform/SUNW,Ultra-4/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4u/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Ultra-4/sbin target=../sun4u/sbin
$(sparc_ONLY)link path=usr/platform/SUNW,Ultra-5_10 target=SUNW,Ultra-2
$(sparc_ONLY)link path=usr/platform/SUNW,Ultra-60 target=SUNW,Ultra-2
$(sparc_ONLY)link path=usr/platform/SUNW,Ultra-80 target=SUNW,Ultra-2
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Ultra-Enterprise-10000/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Ultra-Enterprise-10000/lib/cfgadm \
target=../../sun4u/lib/cfgadm
$(sparc_ONLY)link path=usr/platform/SUNW,Ultra-Enterprise-10000/lib/fs \
target=../../sun4u/lib/fs
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Ultra-Enterprise-10000/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4u/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Ultra-Enterprise-10000/sbin \
target=../sun4u/sbin
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Ultra-Enterprise/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Ultra-Enterprise/lib/cfgadm \
target=../../sun4u/lib/cfgadm
$(sparc_ONLY)link path=usr/platform/SUNW,Ultra-Enterprise/lib/fs \
target=../../sun4u/lib/fs
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,Ultra-Enterprise/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4u/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,Ultra-Enterprise/sbin \
target=../sun4u/sbin
$(sparc_ONLY)link path=usr/platform/SUNW,UltraAX-i2 target=sun4u
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,UltraSPARC-IIe-NetraCT-40/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,UltraSPARC-IIe-NetraCT-40/lib/cfgadm \
target=../../sun4u/lib/cfgadm
$(sparc_ONLY)link path=usr/platform/SUNW,UltraSPARC-IIe-NetraCT-40/lib/fs \
@@ -824,33 +541,18 @@ $(sparc_ONLY)link path=usr/platform/SUNW,UltraSPARC-IIe-NetraCT-40/lib/fs \
$(sparc_ONLY)link \
path=usr/platform/SUNW,UltraSPARC-IIe-NetraCT-40/lib/libprtdiag_psr.so.1 \
target=../../SUNW,UltraSPARC-IIi-Netract/lib/libprtdiag_psr.so.1
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,UltraSPARC-IIe-NetraCT-40/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4u/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,UltraSPARC-IIe-NetraCT-40/sbin \
target=../sun4u/sbin
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,UltraSPARC-IIe-NetraCT-60/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,UltraSPARC-IIe-NetraCT-60/lib/cfgadm \
target=../../sun4u/lib/cfgadm
$(sparc_ONLY)link path=usr/platform/SUNW,UltraSPARC-IIe-NetraCT-60/lib/fs \
target=../../sun4u/lib/fs
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,UltraSPARC-IIe-NetraCT-60/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4u/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,UltraSPARC-IIe-NetraCT-60/sbin \
target=../sun4u/sbin
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,UltraSPARC-IIi-Netract/lib/$(ARCH64)/libsoftcrypto_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,UltraSPARC-IIi-Netract/lib/cfgadm \
target=../../sun4u/lib/cfgadm
$(sparc_ONLY)link path=usr/platform/SUNW,UltraSPARC-IIi-Netract/lib/fs \
target=../../sun4u/lib/fs
-$(sparc_ONLY)link \
- path=usr/platform/SUNW,UltraSPARC-IIi-Netract/lib/libsoftcrypto_psr.so.1 \
- target=../../sun4u/lib/libsoftcrypto_psr.so.1
$(sparc_ONLY)link path=usr/platform/SUNW,UltraSPARC-IIi-Netract/sbin \
target=../sun4u/sbin
$(sparc_ONLY)link path=usr/platform/sun4u/lib/cfgadm/$(ARCH64)/ac.so \
diff --git a/usr/src/pkg/manifests/system-library-processor.mf b/usr/src/pkg/manifests/system-library-processor.mf
index a00a050fcd..08dfaff2f0 100644
--- a/usr/src/pkg/manifests/system-library-processor.mf
+++ b/usr/src/pkg/manifests/system-library-processor.mf
@@ -31,134 +31,31 @@ set name=info.classification value=org.opensolaris.category.2008:System/Core
set name=variant.arch value=$(ARCH)
$(sparc_ONLY)dir path=etc group=sys
$(sparc_ONLY)dir path=etc/flash group=sys
-$(sparc_ONLY)dir path=etc/flash/postcreation group=sys mode=0700
$(sparc_ONLY)dir path=etc/flash/postdeployment group=sys
-$(sparc_ONLY)dir path=etc/flash/precreation group=sys mode=0700
-$(sparc_ONLY)dir path=etc/flash/preexit group=sys mode=0700
dir path=platform group=sys
-$(sparc_ONLY)dir path=platform/SUNW,A70 group=sys
-$(sparc_ONLY)dir path=platform/SUNW,A70/lib
-$(sparc_ONLY)dir path=platform/SUNW,A70/lib/$(ARCH64)
-$(sparc_ONLY)dir path=platform/SUNW,Netra-CP2300 group=sys
-$(sparc_ONLY)dir path=platform/SUNW,Netra-CP2300/lib
-$(sparc_ONLY)dir path=platform/SUNW,Netra-CP2300/lib/$(ARCH64)
-$(sparc_ONLY)dir path=platform/SUNW,Netra-CP3010 group=sys
-$(sparc_ONLY)dir path=platform/SUNW,Netra-CP3010/lib
-$(sparc_ONLY)dir path=platform/SUNW,Netra-CP3010/lib/$(ARCH64)
$(sparc_ONLY)dir path=platform/SUNW,Netra-CP3060 group=sys
$(sparc_ONLY)dir path=platform/SUNW,Netra-CP3060/kernel group=sys
$(sparc_ONLY)dir path=platform/SUNW,Netra-CP3060/kernel/misc group=sys
$(sparc_ONLY)dir path=platform/SUNW,Netra-CP3060/kernel/misc/$(ARCH64) \
group=sys
-$(sparc_ONLY)dir path=platform/SUNW,Netra-T12 group=sys
-$(sparc_ONLY)dir path=platform/SUNW,Netra-T12/lib
-$(sparc_ONLY)dir path=platform/SUNW,Netra-T12/lib/$(ARCH64)
-$(sparc_ONLY)dir path=platform/SUNW,Netra-T4 group=sys
-$(sparc_ONLY)dir path=platform/SUNW,Netra-T4/lib
-$(sparc_ONLY)dir path=platform/SUNW,Netra-T4/lib/$(ARCH64)
-$(sparc_ONLY)dir path=platform/SUNW,SPARC-Enterprise group=sys
-$(sparc_ONLY)dir path=platform/SUNW,SPARC-Enterprise/lib
-$(sparc_ONLY)dir path=platform/SUNW,SPARC-Enterprise/lib/$(ARCH64)
-$(sparc_ONLY)dir path=platform/SUNW,Serverblade1 group=sys
-$(sparc_ONLY)dir path=platform/SUNW,Serverblade1/lib
-$(sparc_ONLY)dir path=platform/SUNW,Serverblade1/lib/$(ARCH64)
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Blade-100 group=sys
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Blade-100/lib
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Blade-100/lib/$(ARCH64)
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Blade-1000 group=sys
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Blade-1000/lib
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Blade-1000/lib/$(ARCH64)
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Blade-1500 group=sys
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Blade-1500/lib
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Blade-1500/lib/$(ARCH64)
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Blade-2500 group=sys
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Blade-2500/lib
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Blade-2500/lib/$(ARCH64)
$(sparc_ONLY)dir path=platform/SUNW,Sun-Fire group=sys
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Fire-15000 group=sys
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Fire-15000/lib
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Fire-15000/lib/$(ARCH64)
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Fire-280R group=sys
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Fire-280R/lib
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Fire-280R/lib/$(ARCH64)
$(sparc_ONLY)dir path=platform/SUNW,Sun-Fire-480R group=sys
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Fire-480R/lib
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Fire-480R/lib/$(ARCH64)
$(sparc_ONLY)dir path=platform/SUNW,Sun-Fire-880 group=sys
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Fire-880/lib
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Fire-880/lib/$(ARCH64)
$(sparc_ONLY)dir path=platform/SUNW,Sun-Fire-T200 group=sys
$(sparc_ONLY)dir path=platform/SUNW,Sun-Fire-T200/kernel group=sys
$(sparc_ONLY)dir path=platform/SUNW,Sun-Fire-T200/kernel/misc group=sys
$(sparc_ONLY)dir path=platform/SUNW,Sun-Fire-T200/kernel/misc/$(ARCH64) \
group=sys
$(sparc_ONLY)dir path=platform/SUNW,Sun-Fire-V215 group=sys
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Fire-V215/lib
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Fire-V215/lib/$(ARCH64)
$(sparc_ONLY)dir path=platform/SUNW,Sun-Fire-V240 group=sys
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Fire-V240/lib
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Fire-V240/lib/$(ARCH64)
$(sparc_ONLY)dir path=platform/SUNW,Sun-Fire-V250 group=sys
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Fire-V250/lib
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Fire-V250/lib/$(ARCH64)
$(sparc_ONLY)dir path=platform/SUNW,Sun-Fire-V440 group=sys
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Fire-V440/lib
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Fire-V440/lib/$(ARCH64)
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Fire-V445 group=sys
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Fire-V445/lib
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Fire-V445/lib/$(ARCH64)
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Fire/lib
-$(sparc_ONLY)dir path=platform/SUNW,Sun-Fire/lib/$(ARCH64)
$(sparc_ONLY)dir path=platform/SUNW,Ultra-2 group=sys
-$(sparc_ONLY)dir path=platform/SUNW,Ultra-2/lib
-$(sparc_ONLY)dir path=platform/SUNW,Ultra-2/lib/$(ARCH64)
-$(sparc_ONLY)dir path=platform/SUNW,Ultra-250 group=sys
-$(sparc_ONLY)dir path=platform/SUNW,Ultra-250/lib
-$(sparc_ONLY)dir path=platform/SUNW,Ultra-250/lib/$(ARCH64)
$(sparc_ONLY)dir path=platform/SUNW,Ultra-30 group=sys
-$(sparc_ONLY)dir path=platform/SUNW,Ultra-30/lib
-$(sparc_ONLY)dir path=platform/SUNW,Ultra-30/lib/$(ARCH64)
-$(sparc_ONLY)dir path=platform/SUNW,Ultra-4 group=sys
-$(sparc_ONLY)dir path=platform/SUNW,Ultra-4/lib
-$(sparc_ONLY)dir path=platform/SUNW,Ultra-4/lib/$(ARCH64)
-$(sparc_ONLY)dir path=platform/SUNW,Ultra-5_10 group=sys
-$(sparc_ONLY)dir path=platform/SUNW,Ultra-5_10/lib
-$(sparc_ONLY)dir path=platform/SUNW,Ultra-5_10/lib/$(ARCH64)
$(sparc_ONLY)dir path=platform/SUNW,Ultra-60 group=sys
-$(sparc_ONLY)dir path=platform/SUNW,Ultra-60/lib
-$(sparc_ONLY)dir path=platform/SUNW,Ultra-60/lib/$(ARCH64)
-$(sparc_ONLY)dir path=platform/SUNW,Ultra-80 group=sys
-$(sparc_ONLY)dir path=platform/SUNW,Ultra-80/lib
-$(sparc_ONLY)dir path=platform/SUNW,Ultra-80/lib/$(ARCH64)
-$(sparc_ONLY)dir path=platform/SUNW,Ultra-Enterprise group=sys
-$(sparc_ONLY)dir path=platform/SUNW,Ultra-Enterprise-10000 group=sys
-$(sparc_ONLY)dir path=platform/SUNW,Ultra-Enterprise-10000/lib
-$(sparc_ONLY)dir path=platform/SUNW,Ultra-Enterprise-10000/lib/$(ARCH64)
-$(sparc_ONLY)dir path=platform/SUNW,Ultra-Enterprise/lib
-$(sparc_ONLY)dir path=platform/SUNW,Ultra-Enterprise/lib/$(ARCH64)
-$(sparc_ONLY)dir path=platform/SUNW,UltraAX-i2 group=sys
-$(sparc_ONLY)dir path=platform/SUNW,UltraAX-i2/lib
-$(sparc_ONLY)dir path=platform/SUNW,UltraAX-i2/lib/$(ARCH64)
-$(sparc_ONLY)dir path=platform/SUNW,UltraSPARC-IIe-NetraCT-40 group=sys
-$(sparc_ONLY)dir path=platform/SUNW,UltraSPARC-IIe-NetraCT-40/lib
-$(sparc_ONLY)dir path=platform/SUNW,UltraSPARC-IIe-NetraCT-40/lib/$(ARCH64)
-$(sparc_ONLY)dir path=platform/SUNW,UltraSPARC-IIe-NetraCT-60 group=sys
-$(sparc_ONLY)dir path=platform/SUNW,UltraSPARC-IIe-NetraCT-60/lib
-$(sparc_ONLY)dir path=platform/SUNW,UltraSPARC-IIe-NetraCT-60/lib/$(ARCH64)
-$(sparc_ONLY)dir path=platform/SUNW,UltraSPARC-IIi-Netract group=sys
-$(sparc_ONLY)dir path=platform/SUNW,UltraSPARC-IIi-Netract/lib
-$(sparc_ONLY)dir path=platform/SUNW,UltraSPARC-IIi-Netract/lib/$(ARCH64)
$(i386_ONLY)dir path=platform/i86pc group=sys
$(i386_ONLY)dir path=platform/i86xpv group=sys
$(sparc_ONLY)dir path=platform/sun4u group=sys
-$(sparc_ONLY)dir path=platform/sun4u-opl group=sys
-$(sparc_ONLY)dir path=platform/sun4u-opl/lib group=sys
-$(sparc_ONLY)dir path=platform/sun4u-opl/lib/$(ARCH64)
-$(sparc_ONLY)dir path=platform/sun4u-us3 group=sys
-$(sparc_ONLY)dir path=platform/sun4u-us3/lib group=sys
-$(sparc_ONLY)dir path=platform/sun4u-us3/lib/$(ARCH64)
-$(sparc_ONLY)dir path=platform/sun4u-us3/lib/$(ARCH64)/libc_psr
-$(sparc_ONLY)dir path=platform/sun4u-us3/lib/libc_psr group=sys
$(sparc_ONLY)dir path=platform/sun4u/lib
$(sparc_ONLY)dir path=platform/sun4u/lib/$(ARCH64)
$(sparc_ONLY)dir path=platform/sun4u/lib/fs
@@ -168,40 +65,18 @@ $(sparc_ONLY)dir path=platform/sun4u/lib/fs/zfs
$(sparc_ONLY)dir path=platform/sun4v group=sys
$(sparc_ONLY)dir path=platform/sun4v/lib
$(sparc_ONLY)dir path=platform/sun4v/lib/$(ARCH64)
-$(sparc_ONLY)dir path=platform/sun4v/lib/$(ARCH64)/libc_psr
$(sparc_ONLY)dir path=platform/sun4v/lib/fs
$(sparc_ONLY)dir path=platform/sun4v/lib/fs/hsfs
$(sparc_ONLY)dir path=platform/sun4v/lib/fs/ufs
$(sparc_ONLY)dir path=platform/sun4v/lib/fs/zfs
-$(sparc_ONLY)dir path=platform/sun4v/lib/libc_psr
$(sparc_ONLY)file path=etc/flash/postdeployment/ttydefs.cleanup group=sys \
mode=0744
-$(sparc_ONLY)file path=etc/flash/precreation/caplib group=sys mode=0500
$(sparc_ONLY)file \
path=platform/SUNW,Netra-CP3060/kernel/misc/$(ARCH64)/platmod group=sys \
mode=0755
$(sparc_ONLY)file \
path=platform/SUNW,Sun-Fire-T200/kernel/misc/$(ARCH64)/platmod group=sys \
mode=0755
-$(sparc_ONLY)file path=platform/sun4u-opl/lib/$(ARCH64)/libc_psr.so.1 \
- reboot-needed=true
-$(sparc_ONLY)file path=platform/sun4u-opl/lib/libc_psr.so.1 reboot-needed=true
-$(sparc_ONLY)file path=platform/sun4u-us3/lib/$(ARCH64)/libc_psr.so.1 \
- reboot-needed=true
-$(sparc_ONLY)file \
- path=platform/sun4u-us3/lib/$(ARCH64)/libc_psr/libc_psr_hwcap1.so.1 \
- reboot-needed=true
-$(sparc_ONLY)file \
- path=platform/sun4u-us3/lib/$(ARCH64)/libc_psr/libc_psr_hwcap2.so.1 \
- reboot-needed=true
-$(sparc_ONLY)file path=platform/sun4u-us3/lib/libc_psr.so.1 reboot-needed=true
-$(sparc_ONLY)file path=platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap1.so.1 \
- reboot-needed=true
-$(sparc_ONLY)file path=platform/sun4u-us3/lib/libc_psr/libc_psr_hwcap2.so.1 \
- reboot-needed=true
-$(sparc_ONLY)file path=platform/sun4u/lib/$(ARCH64)/libc_psr.so.1 \
- reboot-needed=true
-$(sparc_ONLY)file path=platform/sun4u/lib/$(ARCH64)/libmd_psr.so.1
# We force bootblks into a new BE because we want to make sure
# the user can recover from a pre-existing copy of the bootblk
# in the event that something goes horribly wrong.
@@ -211,17 +86,6 @@ $(sparc_ONLY)file path=platform/sun4u/lib/fs/ufs/bootblk group=sys mode=0444 \
reboot-needed=true
$(sparc_ONLY)file path=platform/sun4u/lib/fs/zfs/bootblk group=sys mode=0444 \
reboot-needed=true
-$(sparc_ONLY)file path=platform/sun4u/lib/libc_psr.so.1 reboot-needed=true
-$(sparc_ONLY)file path=platform/sun4u/lib/libmd_psr.so.1
-$(sparc_ONLY)file path=platform/sun4v/lib/$(ARCH64)/libc_psr.so.1 mode=0644 \
- reboot-needed=true
-$(sparc_ONLY)file \
- path=platform/sun4v/lib/$(ARCH64)/libc_psr/libc_psr_hwcap1.so.1 \
- reboot-needed=true
-$(sparc_ONLY)file \
- path=platform/sun4v/lib/$(ARCH64)/libc_psr/libc_psr_hwcap2.so.1 \
- reboot-needed=true
-$(sparc_ONLY)file path=platform/sun4v/lib/$(ARCH64)/libmd_psr.so.1
# We force bootblks into a new BE because we want to make sure
# the user can recover from a pre-existing copy of the bootblk
# in the event that something goes horribly wrong.
@@ -231,13 +95,6 @@ $(sparc_ONLY)file path=platform/sun4v/lib/fs/ufs/bootblk group=sys mode=0444 \
reboot-needed=true
$(sparc_ONLY)file path=platform/sun4v/lib/fs/zfs/bootblk group=sys mode=0444 \
reboot-needed=true
-$(sparc_ONLY)file path=platform/sun4v/lib/libc_psr.so.1 mode=0644 \
- reboot-needed=true
-$(sparc_ONLY)file path=platform/sun4v/lib/libc_psr/libc_psr_hwcap1.so.1 \
- reboot-needed=true
-$(sparc_ONLY)file path=platform/sun4v/lib/libc_psr/libc_psr_hwcap2.so.1 \
- reboot-needed=true
-$(sparc_ONLY)file path=platform/sun4v/lib/libmd_psr.so.1
$(i386_ONLY)legacy pkg=SUNWcar.i arch=$(ARCH).i86pc category=system \
desc="core software for a specific hardware platform group" \
hotline="Please contact your local service provider" \
@@ -265,52 +122,12 @@ $(i386_ONLY)legacy pkg=SUNWcarx.i arch=$(ARCH).i86pc category=system \
version=11.11,REV=2009.11.11
license cr_Sun license=cr_Sun
license lic_CDDL license=lic_CDDL
-$(sparc_ONLY)link path=platform/SUNW,A70/lib/$(ARCH64)/libc_psr.so.1 \
- target=../../../sun4u-us3/lib/$(ARCH64)/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,A70/lib/$(ARCH64)/libmd_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,A70/lib/libc_psr.so.1 \
- target=../../sun4u-us3/lib/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,A70/lib/libmd_psr.so.1 \
- target=../../sun4u/lib/libmd_psr.so.1
$(sparc_ONLY)link path=platform/SUNW,Netra-210 target=SUNW,Sun-Fire-V240
$(sparc_ONLY)link path=platform/SUNW,Netra-240 target=SUNW,Sun-Fire-V240
$(sparc_ONLY)link path=platform/SUNW,Netra-440 target=SUNW,Sun-Fire-V440
-$(sparc_ONLY)link path=platform/SUNW,Netra-CP2300/lib/$(ARCH64)/libc_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Netra-CP2300/lib/$(ARCH64)/libmd_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Netra-CP2300/lib/libc_psr.so.1 \
- target=../../sun4u/lib/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Netra-CP2300/lib/libmd_psr.so.1 \
- target=../../sun4u/lib/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Netra-CP3010/lib/$(ARCH64)/libc_psr.so.1 \
- target=../../../sun4u-us3/lib/$(ARCH64)/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Netra-CP3010/lib/$(ARCH64)/libmd_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Netra-CP3010/lib/libc_psr.so.1 \
- target=../../sun4u-us3/lib/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Netra-CP3010/lib/libmd_psr.so.1 \
- target=../../sun4u/lib/libmd_psr.so.1
$(sparc_ONLY)link path=platform/SUNW,Netra-CP3060/lib target=../sun4v/lib
$(sparc_ONLY)link path=platform/SUNW,Netra-CP3260 target=sun4v
-$(sparc_ONLY)link path=platform/SUNW,Netra-T12/lib/$(ARCH64)/libc_psr.so.1 \
- target=../../../sun4u-us3/lib/$(ARCH64)/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Netra-T12/lib/$(ARCH64)/libmd_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Netra-T12/lib/libc_psr.so.1 \
- target=../../sun4u-us3/lib/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Netra-T12/lib/libmd_psr.so.1 \
- target=../../sun4u/lib/libmd_psr.so.1
$(sparc_ONLY)link path=platform/SUNW,Netra-T2000 target=SUNW,Sun-Fire-T200
-$(sparc_ONLY)link path=platform/SUNW,Netra-T4/lib/$(ARCH64)/libc_psr.so.1 \
- target=../../../sun4u-us3/lib/$(ARCH64)/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Netra-T4/lib/$(ARCH64)/libmd_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Netra-T4/lib/libc_psr.so.1 \
- target=../../sun4u-us3/lib/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Netra-T4/lib/libmd_psr.so.1 \
- target=../../sun4u/lib/libmd_psr.so.1
$(sparc_ONLY)link path=platform/SUNW,Netra-T5220 target=sun4v
$(sparc_ONLY)link path=platform/SUNW,Netra-T5440 target=sun4v
$(sparc_ONLY)link path=platform/SUNW,SPARC-Enterprise-T1000 target=sun4v
@@ -318,275 +135,16 @@ $(sparc_ONLY)link path=platform/SUNW,SPARC-Enterprise-T2000 \
target=SUNW,Sun-Fire-T200
$(sparc_ONLY)link path=platform/SUNW,SPARC-Enterprise-T5120 target=sun4v
$(sparc_ONLY)link path=platform/SUNW,SPARC-Enterprise-T5220 target=sun4v
-$(sparc_ONLY)link \
- path=platform/SUNW,SPARC-Enterprise/lib/$(ARCH64)/libc_psr.so.1 \
- target=../../../sun4u-opl/lib/$(ARCH64)/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,SPARC-Enterprise/lib/libc_psr.so.1 \
- target=../../sun4u-opl/lib/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Serverblade1/lib/$(ARCH64)/libc_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Serverblade1/lib/$(ARCH64)/libmd_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Serverblade1/lib/libc_psr.so.1 \
- target=../../sun4u/lib/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Serverblade1/lib/libmd_psr.so.1 \
- target=../../sun4u/lib/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Blade-100/lib/$(ARCH64)/libc_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libc_psr.so.1
-$(sparc_ONLY)link \
- path=platform/SUNW,Sun-Blade-100/lib/$(ARCH64)/libmd_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Blade-100/lib/libc_psr.so.1 \
- target=../../sun4u/lib/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Blade-100/lib/libmd_psr.so.1 \
- target=../../sun4u/lib/libmd_psr.so.1
-$(sparc_ONLY)link \
- path=platform/SUNW,Sun-Blade-1000/lib/$(ARCH64)/libc_psr.so.1 \
- target=../../../sun4u-us3/lib/$(ARCH64)/libc_psr.so.1
-$(sparc_ONLY)link \
- path=platform/SUNW,Sun-Blade-1000/lib/$(ARCH64)/libmd_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Blade-1000/lib/libc_psr.so.1 \
- target=../../sun4u-us3/lib/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Blade-1000/lib/libmd_psr.so.1 \
- target=../../sun4u/lib/libmd_psr.so.1
-$(sparc_ONLY)link \
- path=platform/SUNW,Sun-Blade-1500/lib/$(ARCH64)/libc_psr.so.1 \
- target=../../../sun4u-us3/lib/$(ARCH64)/libc_psr.so.1
-$(sparc_ONLY)link \
- path=platform/SUNW,Sun-Blade-1500/lib/$(ARCH64)/libmd_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Blade-1500/lib/libc_psr.so.1 \
- target=../../sun4u-us3/lib/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Blade-1500/lib/libmd_psr.so.1 \
- target=../../sun4u/lib/libmd_psr.so.1
-$(sparc_ONLY)link \
- path=platform/SUNW,Sun-Blade-2500/lib/$(ARCH64)/libc_psr.so.1 \
- target=../../../sun4u-us3/lib/$(ARCH64)/libc_psr.so.1
-$(sparc_ONLY)link \
- path=platform/SUNW,Sun-Blade-2500/lib/$(ARCH64)/libmd_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Blade-2500/lib/libc_psr.so.1 \
- target=../../sun4u-us3/lib/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Blade-2500/lib/libmd_psr.so.1 \
- target=../../sun4u/lib/libmd_psr.so.1
$(sparc_ONLY)link path=platform/SUNW,Sun-Blade-T6300 target=sun4v
$(sparc_ONLY)link path=platform/SUNW,Sun-Blade-T6320 target=sun4v
$(sparc_ONLY)link path=platform/SUNW,Sun-Blade-T6340 target=sun4v
-$(sparc_ONLY)link \
- path=platform/SUNW,Sun-Fire-15000/lib/$(ARCH64)/libc_psr.so.1 \
- target=../../../sun4u-us3/lib/$(ARCH64)/libc_psr.so.1
-$(sparc_ONLY)link \
- path=platform/SUNW,Sun-Fire-15000/lib/$(ARCH64)/libmd_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Fire-15000/lib/libc_psr.so.1 \
- target=../../sun4u-us3/lib/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Fire-15000/lib/libmd_psr.so.1 \
- target=../../sun4u/lib/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Fire-280R/lib/$(ARCH64)/libc_psr.so.1 \
- target=../../../sun4u-us3/lib/$(ARCH64)/libc_psr.so.1
-$(sparc_ONLY)link \
- path=platform/SUNW,Sun-Fire-280R/lib/$(ARCH64)/libmd_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1 \
- target=../../sun4u-us3/lib/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Fire-280R/lib/libmd_psr.so.1 \
- target=../../sun4u/lib/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Fire-480R/lib/$(ARCH64)/libc_psr.so.1 \
- target=../../../sun4u-us3/lib/$(ARCH64)/libc_psr.so.1
-$(sparc_ONLY)link \
- path=platform/SUNW,Sun-Fire-480R/lib/$(ARCH64)/libmd_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Fire-480R/lib/libc_psr.so.1 \
- target=../../sun4u-us3/lib/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Fire-480R/lib/libmd_psr.so.1 \
- target=../../sun4u/lib/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Fire-880/lib/$(ARCH64)/libc_psr.so.1 \
- target=../../../sun4u-us3/lib/$(ARCH64)/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Fire-880/lib/$(ARCH64)/libmd_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Fire-880/lib/libc_psr.so.1 \
- target=../../sun4u-us3/lib/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Fire-880/lib/libmd_psr.so.1 \
- target=../../sun4u/lib/libmd_psr.so.1
$(sparc_ONLY)link path=platform/SUNW,Sun-Fire-T1000 target=sun4v
$(sparc_ONLY)link path=platform/SUNW,Sun-Fire-T200/lib target=../sun4v/lib
$(sparc_ONLY)link path=platform/SUNW,Sun-Fire-V210 target=SUNW,Sun-Fire-V240
-$(sparc_ONLY)link path=platform/SUNW,Sun-Fire-V215/lib/$(ARCH64)/libc_psr.so.1 \
- target=../../../sun4u-us3/lib/$(ARCH64)/libc_psr.so.1
-$(sparc_ONLY)link \
- path=platform/SUNW,Sun-Fire-V215/lib/$(ARCH64)/libmd_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Fire-V215/lib/libc_psr.so.1 \
- target=../../sun4u-us3/lib/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Fire-V215/lib/libmd_psr.so.1 \
- target=../../sun4u/lib/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Fire-V240/lib/$(ARCH64)/libc_psr.so.1 \
- target=../../../sun4u-us3/lib/$(ARCH64)/libc_psr.so.1
-$(sparc_ONLY)link \
- path=platform/SUNW,Sun-Fire-V240/lib/$(ARCH64)/libmd_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Fire-V240/lib/libc_psr.so.1 \
- target=../../sun4u-us3/lib/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Fire-V240/lib/libmd_psr.so.1 \
- target=../../sun4u/lib/libmd_psr.so.1
$(sparc_ONLY)link path=platform/SUNW,Sun-Fire-V245 target=SUNW,Sun-Fire-V215
-$(sparc_ONLY)link path=platform/SUNW,Sun-Fire-V250/lib/$(ARCH64)/libc_psr.so.1 \
- target=../../../sun4u-us3/lib/$(ARCH64)/libc_psr.so.1
-$(sparc_ONLY)link \
- path=platform/SUNW,Sun-Fire-V250/lib/$(ARCH64)/libmd_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Fire-V250/lib/libc_psr.so.1 \
- target=../../sun4u-us3/lib/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Fire-V250/lib/libmd_psr.so.1 \
- target=../../sun4u/lib/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Fire-V440/lib/$(ARCH64)/libc_psr.so.1 \
- target=../../../sun4u-us3/lib/$(ARCH64)/libc_psr.so.1
-$(sparc_ONLY)link \
- path=platform/SUNW,Sun-Fire-V440/lib/$(ARCH64)/libmd_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Fire-V440/lib/libc_psr.so.1 \
- target=../../sun4u-us3/lib/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Fire-V440/lib/libmd_psr.so.1 \
- target=../../sun4u/lib/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Fire-V445/lib/$(ARCH64)/libc_psr.so.1 \
- target=../../../sun4u-us3/lib/$(ARCH64)/libc_psr.so.1
-$(sparc_ONLY)link \
- path=platform/SUNW,Sun-Fire-V445/lib/$(ARCH64)/libmd_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Fire-V445/lib/libc_psr.so.1 \
- target=../../sun4u-us3/lib/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Fire-V445/lib/libmd_psr.so.1 \
- target=../../sun4u/lib/libmd_psr.so.1
$(sparc_ONLY)link path=platform/SUNW,Sun-Fire-V490 target=SUNW,Sun-Fire-480R
$(sparc_ONLY)link path=platform/SUNW,Sun-Fire-V890 target=SUNW,Sun-Fire-880
-$(sparc_ONLY)link path=platform/SUNW,Sun-Fire/lib/$(ARCH64)/libc_psr.so.1 \
- target=../../../sun4u-us3/lib/$(ARCH64)/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Fire/lib/$(ARCH64)/libmd_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Fire/lib/libc_psr.so.1 \
- target=../../sun4u-us3/lib/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Sun-Fire/lib/libmd_psr.so.1 \
- target=../../sun4u/lib/libmd_psr.so.1
$(sparc_ONLY)link path=platform/SUNW,T5140 target=sun4v
$(sparc_ONLY)link path=platform/SUNW,T5240 target=sun4v
$(sparc_ONLY)link path=platform/SUNW,T5440 target=sun4v
$(sparc_ONLY)link path=platform/SUNW,USBRDT-5240 target=sun4v
-$(sparc_ONLY)link path=platform/SUNW,Ultra-2/lib/$(ARCH64)/libc_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Ultra-2/lib/$(ARCH64)/libmd_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Ultra-2/lib/libc_psr.so.1 \
- target=../../sun4u/lib/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Ultra-2/lib/libmd_psr.so.1 \
- target=../../sun4u/lib/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Ultra-250/lib/$(ARCH64)/libc_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Ultra-250/lib/$(ARCH64)/libmd_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Ultra-250/lib/libc_psr.so.1 \
- target=../../sun4u/lib/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Ultra-250/lib/libmd_psr.so.1 \
- target=../../sun4u/lib/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Ultra-30/lib/$(ARCH64)/libc_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Ultra-30/lib/$(ARCH64)/libmd_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Ultra-30/lib/libc_psr.so.1 \
- target=../../sun4u/lib/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Ultra-30/lib/libmd_psr.so.1 \
- target=../../sun4u/lib/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Ultra-4/lib/$(ARCH64)/libc_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Ultra-4/lib/$(ARCH64)/libmd_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Ultra-4/lib/libc_psr.so.1 \
- target=../../sun4u/lib/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Ultra-4/lib/libmd_psr.so.1 \
- target=../../sun4u/lib/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Ultra-5_10/lib/$(ARCH64)/libc_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Ultra-5_10/lib/$(ARCH64)/libmd_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Ultra-5_10/lib/libc_psr.so.1 \
- target=../../sun4u/lib/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Ultra-5_10/lib/libmd_psr.so.1 \
- target=../../sun4u/lib/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Ultra-60/lib/$(ARCH64)/libc_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Ultra-60/lib/$(ARCH64)/libmd_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Ultra-60/lib/libc_psr.so.1 \
- target=../../sun4u/lib/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Ultra-60/lib/libmd_psr.so.1 \
- target=../../sun4u/lib/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Ultra-80/lib/$(ARCH64)/libc_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Ultra-80/lib/$(ARCH64)/libmd_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Ultra-80/lib/libc_psr.so.1 \
- target=../../sun4u/lib/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Ultra-80/lib/libmd_psr.so.1 \
- target=../../sun4u/lib/libmd_psr.so.1
-$(sparc_ONLY)link \
- path=platform/SUNW,Ultra-Enterprise-10000/lib/$(ARCH64)/libc_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libc_psr.so.1
-$(sparc_ONLY)link \
- path=platform/SUNW,Ultra-Enterprise-10000/lib/$(ARCH64)/libmd_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Ultra-Enterprise-10000/lib/libc_psr.so.1 \
- target=../../sun4u/lib/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Ultra-Enterprise-10000/lib/libmd_psr.so.1 \
- target=../../sun4u/lib/libmd_psr.so.1
-$(sparc_ONLY)link \
- path=platform/SUNW,Ultra-Enterprise/lib/$(ARCH64)/libc_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libc_psr.so.1
-$(sparc_ONLY)link \
- path=platform/SUNW,Ultra-Enterprise/lib/$(ARCH64)/libmd_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Ultra-Enterprise/lib/libc_psr.so.1 \
- target=../../sun4u/lib/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,Ultra-Enterprise/lib/libmd_psr.so.1 \
- target=../../sun4u/lib/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,UltraAX-i2/lib/$(ARCH64)/libc_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,UltraAX-i2/lib/$(ARCH64)/libmd_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,UltraAX-i2/lib/libc_psr.so.1 \
- target=../../sun4u/lib/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,UltraAX-i2/lib/libmd_psr.so.1 \
- target=../../sun4u/lib/libmd_psr.so.1
-$(sparc_ONLY)link \
- path=platform/SUNW,UltraSPARC-IIe-NetraCT-40/lib/$(ARCH64)/libc_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libc_psr.so.1
-$(sparc_ONLY)link \
- path=platform/SUNW,UltraSPARC-IIe-NetraCT-40/lib/$(ARCH64)/libmd_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libmd_psr.so.1
-$(sparc_ONLY)link \
- path=platform/SUNW,UltraSPARC-IIe-NetraCT-40/lib/libc_psr.so.1 \
- target=../../sun4u/lib/libc_psr.so.1
-$(sparc_ONLY)link \
- path=platform/SUNW,UltraSPARC-IIe-NetraCT-40/lib/libmd_psr.so.1 \
- target=../../sun4u/lib/libmd_psr.so.1
-$(sparc_ONLY)link \
- path=platform/SUNW,UltraSPARC-IIe-NetraCT-60/lib/$(ARCH64)/libc_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libc_psr.so.1
-$(sparc_ONLY)link \
- path=platform/SUNW,UltraSPARC-IIe-NetraCT-60/lib/$(ARCH64)/libmd_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libmd_psr.so.1
-$(sparc_ONLY)link \
- path=platform/SUNW,UltraSPARC-IIe-NetraCT-60/lib/libc_psr.so.1 \
- target=../../sun4u/lib/libc_psr.so.1
-$(sparc_ONLY)link \
- path=platform/SUNW,UltraSPARC-IIe-NetraCT-60/lib/libmd_psr.so.1 \
- target=../../sun4u/lib/libmd_psr.so.1
-$(sparc_ONLY)link \
- path=platform/SUNW,UltraSPARC-IIi-Netract/lib/$(ARCH64)/libc_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libc_psr.so.1
-$(sparc_ONLY)link \
- path=platform/SUNW,UltraSPARC-IIi-Netract/lib/$(ARCH64)/libmd_psr.so.1 \
- target=../../../sun4u/lib/$(ARCH64)/libmd_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,UltraSPARC-IIi-Netract/lib/libc_psr.so.1 \
- target=../../sun4u/lib/libc_psr.so.1
-$(sparc_ONLY)link path=platform/SUNW,UltraSPARC-IIi-Netract/lib/libmd_psr.so.1 \
- target=../../sun4u/lib/libmd_psr.so.1
diff --git a/usr/src/pkg/manifests/system-library.mf b/usr/src/pkg/manifests/system-library.mf
index eab0c4e053..dba34bfe6f 100644
--- a/usr/src/pkg/manifests/system-library.mf
+++ b/usr/src/pkg/manifests/system-library.mf
@@ -48,12 +48,10 @@ dir path=usr/ccs/lib
dir path=usr/ccs/lib/$(ARCH64)
dir path=usr/lib
dir path=usr/lib/$(ARCH64)
-$(sparc_ONLY)dir path=usr/lib/$(ARCH64)/libc
dir path=usr/lib/cfgadm
dir path=usr/lib/cfgadm/$(ARCH64)
dir path=usr/lib/iconv/$(ARCH64)
-dir path=usr/lib/libc
-$(i386_ONLY)dir path=usr/lib/libsoftcrypto
+$(i386_ONLY)dir path=usr/lib/libc
dir path=usr/lib/lwp
dir path=usr/lib/lwp/$(ARCH64)
dir path=usr/lib/python2.4
@@ -239,7 +237,6 @@ file path=usr/lib/$(ARCH64)/lib450.so.1
file path=usr/lib/$(ARCH64)/libadutils.so.1
file path=usr/lib/$(ARCH64)/libast.so.1
file path=usr/lib/$(ARCH64)/libbsdmalloc.so.1
-$(sparc_ONLY)file path=usr/lib/$(ARCH64)/libc/libc_hwcap1.so.1
file path=usr/lib/$(ARCH64)/libcfgadm.so.1
file path=usr/lib/$(ARCH64)/libcmd.so.1
file path=usr/lib/$(ARCH64)/libcommputil.so.1
@@ -312,7 +309,6 @@ file path=usr/lib/lib450.so.1
file path=usr/lib/libadutils.so.1
file path=usr/lib/libast.so.1
file path=usr/lib/libbsdmalloc.so.1
-$(sparc_ONLY)file path=usr/lib/libc/libc_hwcap1.so.1
$(i386_ONLY)file path=usr/lib/libc/libc_hwcap1.so.1 reboot-needed=true
$(i386_ONLY)file path=usr/lib/libc/libc_hwcap2.so.1 reboot-needed=true
$(i386_ONLY)file path=usr/lib/libc/libc_hwcap3.so.1 reboot-needed=true
@@ -358,7 +354,6 @@ file path=usr/lib/libsip.so.1
file path=usr/lib/libsldap.so.1
file path=usr/lib/libsmbios.so.1
file path=usr/lib/libsoftcrypto.so.1
-$(i386_ONLY)file path=usr/lib/libsoftcrypto/libsoftcrypto_hwcap1.so.1
file path=usr/lib/libsum.so.1
file path=usr/lib/libsys.so.1
$(sparc_ONLY)file path=usr/lib/libv12n.so.1
diff --git a/usr/src/uts/sun4u/boston/Makefile b/usr/src/uts/sun4u/boston/Makefile
index ccb371db65..77a8dbdc0a 100644
--- a/usr/src/uts/sun4u/boston/Makefile
+++ b/usr/src/uts/sun4u/boston/Makefile
@@ -20,10 +20,7 @@
#
#
-# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
#
# uts/sun4u/boston/Makefile
#
@@ -71,7 +68,6 @@ install: $(ROOT_BOSTON_DIR) \
$(USR_BOSTON_INC_DIR) \
$(USR_BOSTON_SBIN_PRTDIAG) \
$(USR_BOSTON_SBIN_FRUADM) \
- $(USR_BOSTON_SBIN_TRAPSTAT) \
$(USR_BOSTON_LIB_DIR) \
$(BOSTON_CRYPTO_LINKS) \
.WAIT $(BOSTON_KMODS)
diff --git a/usr/src/uts/sun4u/boston/Makefile.boston b/usr/src/uts/sun4u/boston/Makefile.boston
index d43099f1af..ab809b8a13 100644
--- a/usr/src/uts/sun4u/boston/Makefile.boston
+++ b/usr/src/uts/sun4u/boston/Makefile.boston
@@ -20,10 +20,7 @@
#
#
-# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
#
# Global definitions for sun4u implementation specific modules.
#
@@ -55,7 +52,6 @@ USR_BOSTON_ISYS_DIR = $(USR_BOSTON_INC_DIR)/sys
USR_BOSTON_SBIN_DIR = $(USR_BOSTON_DIR)/sbin
USR_BOSTON_SBIN_PRTDIAG = $(USR_BOSTON_SBIN_DIR)/prtdiag
USR_BOSTON_SBIN_FRUADM = $(USR_BOSTON_SBIN_DIR)/fruadm
-USR_BOSTON_SBIN_TRAPSTAT = $(USR_BOSTON_SBIN_DIR)/trapstat
USR_BOSTON_LIB_DIR = $(USR_BOSTON_DIR)/lib
BOSTON_LINT_LIB_DIR= $(UTSBASE)/$(PLATFORM)/boston/lint-libs/$(OBJS_DIR)
diff --git a/usr/src/uts/sun4u/boston/Makefile.targ b/usr/src/uts/sun4u/boston/Makefile.targ
index be70d44a23..57b8032930 100644
--- a/usr/src/uts/sun4u/boston/Makefile.targ
+++ b/usr/src/uts/sun4u/boston/Makefile.targ
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
#
# Common targets for sun4u implementation specific modules.
#
@@ -68,9 +67,6 @@ $(USR_BOSTON_SBIN_DIR): $(USR_BOSTON_DIR)
$(USR_BOSTON_SBIN_PRTDIAG): $(USR_BOSTON_SBIN_DIR)
$(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/sbin/prtdiag $@
-$(USR_BOSTON_SBIN_TRAPSTAT): $(USR_BOSTON_SBIN_DIR)
- $(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/sbin/trapstat $@
-
$(USR_BOSTON_SBIN_FRUADM): $(USR_BOSTON_SBIN_DIR)
$(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/sbin/fruadm $@
diff --git a/usr/src/uts/sun4u/mpxu/Makefile b/usr/src/uts/sun4u/mpxu/Makefile
index d444b48d0f..e7170e8e2d 100644
--- a/usr/src/uts/sun4u/mpxu/Makefile
+++ b/usr/src/uts/sun4u/mpxu/Makefile
@@ -19,11 +19,7 @@
# CDDL HEADER END
#
#
-# uts/sun4u/mpxu/Makefile
-# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -78,7 +74,6 @@ LINKED_PLATFORMS += SUNW,Netra-210
install: $(ROOT_MPXU_DIR) $(USR_MPXU_DIR) \
$(USR_MPXU_INC_DIR) \
$(USR_MPXU_SBIN_PRTDIAG) \
- $(USR_MPXU_SBIN_TRAPSTAT) \
$(USR_MPXU_SBIN_FRUADM) \
$(USR_MPXU_LIB_DIR) \
$(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%) \
diff --git a/usr/src/uts/sun4u/mpxu/Makefile.mpxu.shared b/usr/src/uts/sun4u/mpxu/Makefile.mpxu.shared
index 24c701e48c..4c82d112b3 100644
--- a/usr/src/uts/sun4u/mpxu/Makefile.mpxu.shared
+++ b/usr/src/uts/sun4u/mpxu/Makefile.mpxu.shared
@@ -19,11 +19,7 @@
# CDDL HEADER END
#
#
-# uts/sun4u/mpxu/Makefile.mpxu
-# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -57,7 +53,6 @@ USR_MPXU_INC_DIR = $(USR_MPXU_DIR)/include
USR_MPXU_ISYS_DIR = $(USR_MPXU_INC_DIR)/sys
USR_MPXU_SBIN_DIR = $(USR_MPXU_DIR)/sbin
USR_MPXU_SBIN_PRTDIAG = $(USR_MPXU_SBIN_DIR)/prtdiag
-USR_MPXU_SBIN_TRAPSTAT = $(USR_MPXU_SBIN_DIR)/trapstat
USR_MPXU_SBIN_FRUADM = $(USR_MPXU_SBIN_DIR)/fruadm
USR_MPXU_LIB_DIR = $(USR_MPXU_DIR)/lib
diff --git a/usr/src/uts/sun4u/mpxu/Makefile.targ.shared b/usr/src/uts/sun4u/mpxu/Makefile.targ.shared
index 060100d07f..281480eb08 100644
--- a/usr/src/uts/sun4u/mpxu/Makefile.targ.shared
+++ b/usr/src/uts/sun4u/mpxu/Makefile.targ.shared
@@ -19,8 +19,7 @@
# CDDL HEADER END
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -71,9 +70,6 @@ $(USR_MPXU_SBIN_DIR): $(USR_MPXU_DIR)
$(USR_MPXU_SBIN_PRTDIAG): $(USR_MPXU_SBIN_DIR)
$(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/sbin/prtdiag $@
-$(USR_MPXU_SBIN_TRAPSTAT): $(USR_MPXU_SBIN_DIR)
- $(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/sbin/trapstat $@
-
$(USR_MPXU_SBIN_FRUADM): $(USR_MPXU_SBIN_DIR)
$(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/sbin/fruadm $@
diff --git a/usr/src/uts/sun4u/opl/Makefile b/usr/src/uts/sun4u/opl/Makefile
index 009f820be3..f94c5e984c 100644
--- a/usr/src/uts/sun4u/opl/Makefile
+++ b/usr/src/uts/sun4u/opl/Makefile
@@ -19,10 +19,7 @@
# CDDL HEADER END
#
#
-# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
#
# This makefile drives the production of the sun4u opl platform
# module.
@@ -75,7 +72,6 @@ install: $(ROOT_OPL_DIR) $(USR_OPL_DIR) \
$(USR_OPL_INC_DIR) \
$(USR_OPL_SBIN_DIR) \
$(USR_OPL_SBIN_PRTDIAG) \
- $(USR_OPL_SBIN_TRAPSTAT) \
$(USR_OPL_SBIN_FRUADM) \
$(USR_OPL_LIB_DIR) \
$(OPL_CRYPTO_LINKS) \
diff --git a/usr/src/uts/sun4u/opl/Makefile.opl.shared b/usr/src/uts/sun4u/opl/Makefile.opl.shared
index dd3af85c37..934edae30a 100644
--- a/usr/src/uts/sun4u/opl/Makefile.opl.shared
+++ b/usr/src/uts/sun4u/opl/Makefile.opl.shared
@@ -19,10 +19,7 @@
# CDDL HEADER END
#
#
-# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
#
# Global definitions for sun4u opl implementation specific modules.
#
@@ -60,7 +57,6 @@ USR_OPL_DIR = $(USR_PLAT_DIR)/SUNW,SPARC-Enterprise
USR_OPL_LIB_DIR = $(USR_OPL_DIR)/lib
USR_OPL_SBIN_DIR = $(USR_OPL_DIR)/sbin
USR_OPL_SBIN_PRTDIAG = $(USR_OPL_SBIN_DIR)/prtdiag
-USR_OPL_SBIN_TRAPSTAT = $(USR_OPL_SBIN_DIR)/trapstat
USR_OPL_SBIN_FRUADM = $(USR_OPL_SBIN_DIR)/fruadm
USR_OPL_INC_DIR = $(USR_OPL_DIR)/include
USR_OPL_ISYS_DIR = $(USR_OPL_INC_DIR)/sys
diff --git a/usr/src/uts/sun4u/opl/Makefile.targ.shared b/usr/src/uts/sun4u/opl/Makefile.targ.shared
index e85ddac84b..cb91037c13 100644
--- a/usr/src/uts/sun4u/opl/Makefile.targ.shared
+++ b/usr/src/uts/sun4u/opl/Makefile.targ.shared
@@ -19,8 +19,7 @@
# CDDL HEADER END
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
#
# Common targets for sun4u opl implementation specific modules.
#
@@ -74,9 +73,6 @@ $(USR_OPL_SBIN_DIR): $(USR_OPL_DIR) $(USR_PSM_SBIN_DIR)
$(USR_OPL_SBIN_PRTDIAG): $(USR_OPL_SBIN_DIR)
$(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/sbin/prtdiag $@
-$(USR_OPL_SBIN_TRAPSTAT): $(USR_OPL_SBIN_DIR)
- $(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/sbin/trapstat $@
-
$(USR_OPL_SBIN_FRUADM): $(USR_OPL_SBIN_DIR)
$(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/sbin/fruadm $@
diff --git a/usr/src/uts/sun4u/schumacher/Makefile b/usr/src/uts/sun4u/schumacher/Makefile
index 6b5fcc772e..04df3916b3 100644
--- a/usr/src/uts/sun4u/schumacher/Makefile
+++ b/usr/src/uts/sun4u/schumacher/Makefile
@@ -18,10 +18,7 @@
#
# CDDL HEADER END
#
-# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-#pragma ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
#
# This makefile drives the production of the sun4u schumacher platform
# module.
@@ -67,7 +64,6 @@ install: $(ROOT_SCHUMACHER_DIR) \
$(USR_SCHUMACHER_INC_DIR) \
$(USR_SCHUMACHER_SBIN_DIR) \
$(USR_SCHUMACHER_SBIN_PRTDIAG) \
- $(USR_SCHUMACHER_SBIN_TRAPSTAT) \
$(USR_SCHUMACHER_SBIN_FRUADM) \
$(USR_SCHUMACHER_LIB_DIR) \
$(SCHUMACHER_CRYPTO_LINKS) \
diff --git a/usr/src/uts/sun4u/schumacher/Makefile.schumacher b/usr/src/uts/sun4u/schumacher/Makefile.schumacher
index b250779b6d..5eb26050a1 100644
--- a/usr/src/uts/sun4u/schumacher/Makefile.schumacher
+++ b/usr/src/uts/sun4u/schumacher/Makefile.schumacher
@@ -18,10 +18,7 @@
#
# CDDL HEADER END
#
-# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-#pragma ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
#
# Global definitions for sun4u implementation specific modules.
#
@@ -52,7 +49,6 @@ USR_SCHUMACHER_INC_DIR = $(USR_SCHUMACHER_DIR)/include
USR_SCHUMACHER_ISYS_DIR = $(USR_SCHUMACHER_INC_DIR)/sys
USR_SCHUMACHER_SBIN_DIR = $(USR_SCHUMACHER_DIR)/sbin
USR_SCHUMACHER_SBIN_PRTDIAG = $(USR_SCHUMACHER_SBIN_DIR)/prtdiag
-USR_SCHUMACHER_SBIN_TRAPSTAT = $(USR_SCHUMACHER_SBIN_DIR)/trapstat
USR_SCHUMACHER_SBIN_FRUADM = $(USR_SCHUMACHER_SBIN_DIR)/fruadm
USR_SCHUMACHER_LIB_DIR = $(USR_SCHUMACHER_DIR)/lib
diff --git a/usr/src/uts/sun4u/schumacher/Makefile.targ b/usr/src/uts/sun4u/schumacher/Makefile.targ
index e366b89aeb..e61bc0d213 100644
--- a/usr/src/uts/sun4u/schumacher/Makefile.targ
+++ b/usr/src/uts/sun4u/schumacher/Makefile.targ
@@ -18,8 +18,7 @@
#
# CDDL HEADER END
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
#
# Common targets for sun4u implementation specific modules.
#
@@ -67,9 +66,6 @@ $(USR_SCHUMACHER_SBIN_DIR): $(USR_SCHUMACHER_DIR)
$(USR_SCHUMACHER_SBIN_PRTDIAG): $(USR_SCHUMACHER_SBIN_DIR)
$(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/sbin/prtdiag $@
-$(USR_SCHUMACHER_SBIN_TRAPSTAT): $(USR_SCHUMACHER_SBIN_DIR)
- $(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/sbin/trapstat $@
-
$(USR_SCHUMACHER_SBIN_FRUADM): $(USR_SCHUMACHER_SBIN_DIR)
$(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/sbin/fruadm $@
diff --git a/usr/src/uts/sun4u/seattle/Makefile b/usr/src/uts/sun4u/seattle/Makefile
index 4d8d97c7b1..5cb4516a06 100644
--- a/usr/src/uts/sun4u/seattle/Makefile
+++ b/usr/src/uts/sun4u/seattle/Makefile
@@ -20,10 +20,7 @@
#
#
-# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
#
# uts/sun4u/seattle/Makefile
#
@@ -72,7 +69,6 @@ install: $(ROOT_SEATTLE_DIR) \
$(USR_SEATTLE_DIR) \
$(USR_SEATTLE_INC_DIR) \
$(USR_SEATTLE_SBIN_PRTDIAG) \
- $(USR_SEATTLE_SBIN_TRAPSTAT) \
$(USR_SEATTLE_SBIN_FRUADM) \
$(USR_SEATTLE_LIB_DIR) \
$(LINKED_PLATFORMS:%=$(USR_PLAT_DIR)/%) \
diff --git a/usr/src/uts/sun4u/seattle/Makefile.seattle b/usr/src/uts/sun4u/seattle/Makefile.seattle
index b88d6b4647..e483525286 100644
--- a/usr/src/uts/sun4u/seattle/Makefile.seattle
+++ b/usr/src/uts/sun4u/seattle/Makefile.seattle
@@ -20,10 +20,7 @@
#
#
-# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
#
# Global definitions for sun4u implementation specific modules.
#
@@ -54,7 +51,6 @@ USR_SEATTLE_INC_DIR = $(USR_SEATTLE_DIR)/include
USR_SEATTLE_ISYS_DIR = $(USR_SEATTLE_INC_DIR)/sys
USR_SEATTLE_SBIN_DIR = $(USR_SEATTLE_DIR)/sbin
USR_SEATTLE_SBIN_PRTDIAG = $(USR_SEATTLE_SBIN_DIR)/prtdiag
-USR_SEATTLE_SBIN_TRAPSTAT = $(USR_SEATTLE_SBIN_DIR)/trapstat
USR_SEATTLE_SBIN_FRUADM = $(USR_SEATTLE_SBIN_DIR)/fruadm
USR_SEATTLE_LIB_DIR = $(USR_SEATTLE_DIR)/lib
diff --git a/usr/src/uts/sun4u/seattle/Makefile.targ b/usr/src/uts/sun4u/seattle/Makefile.targ
index 1ba83a8c68..9a200e1f53 100644
--- a/usr/src/uts/sun4u/seattle/Makefile.targ
+++ b/usr/src/uts/sun4u/seattle/Makefile.targ
@@ -20,8 +20,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
#
# Common targets for sun4u implementation specific modules.
#
@@ -68,9 +67,6 @@ $(USR_SEATTLE_SBIN_DIR): $(USR_SEATTLE_DIR)
$(USR_SEATTLE_SBIN_PRTDIAG): $(USR_SEATTLE_SBIN_DIR)
$(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/sbin/prtdiag $@
-$(USR_SEATTLE_SBIN_TRAPSTAT): $(USR_SEATTLE_SBIN_DIR)
- $(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/sbin/trapstat $@
-
$(USR_SEATTLE_SBIN_FRUADM): $(USR_SEATTLE_SBIN_DIR)
$(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/sbin/fruadm $@
diff --git a/usr/src/uts/sun4u/snowbird/Makefile b/usr/src/uts/sun4u/snowbird/Makefile
index fe7b03ed64..48f236f240 100644
--- a/usr/src/uts/sun4u/snowbird/Makefile
+++ b/usr/src/uts/sun4u/snowbird/Makefile
@@ -19,11 +19,7 @@
# CDDL HEADER END
#
#
-# uts/sun4u/snowbird/Makefile
-# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
#
# This makefile drives the production of the sun4u snowbird platform
# module.
@@ -71,7 +67,6 @@ install: $(ROOT_SNOWBIRD_DIR) $(USR_SNOWBIRD_DIR) \
$(USR_SNOWBIRD_INC_DIR) \
$(USR_SNOWBIRD_SBIN_DIR) \
$(USR_SNOWBIRD_SBIN_PRTDIAG) \
- $(USR_SNOWBIRD_SBIN_TRAPSTAT) \
$(USR_SNOWBIRD_SBIN_FRUADM) \
$(USR_SNOWBIRD_LIB_DIR) \
.WAIT $(SNOWBIRD_KMODS) \
diff --git a/usr/src/uts/sun4u/snowbird/Makefile.snowbird b/usr/src/uts/sun4u/snowbird/Makefile.snowbird
index 830837e44e..961962c57f 100644
--- a/usr/src/uts/sun4u/snowbird/Makefile.snowbird
+++ b/usr/src/uts/sun4u/snowbird/Makefile.snowbird
@@ -19,10 +19,8 @@
# CDDL HEADER END
#
#
-# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
#
-#ident "%Z%%M% %I% %E% SMI"
#
# Global definitions for sun4u snowbird implementation specific modules.
# uts/sun4u/snowbird/Makefile.snowbird
@@ -67,7 +65,6 @@ USR_SNOWBIRD_DIR = $(USR_PLAT_DIR)/SUNW,Netra-CP2300
USR_SNOWBIRD_INC_DIR = $(USR_SNOWBIRD_DIR)/include
USR_SNOWBIRD_SBIN_DIR = $(USR_SNOWBIRD_DIR)/sbin
USR_SNOWBIRD_SBIN_PRTDIAG = $(USR_SNOWBIRD_SBIN_DIR)/prtdiag
-USR_SNOWBIRD_SBIN_TRAPSTAT = $(USR_SNOWBIRD_SBIN_DIR)/trapstat
USR_SNOWBIRD_SBIN_FRUADM = $(USR_SNOWBIRD_SBIN_DIR)/fruadm
USR_SNOWBIRD_LIB_DIR = $(USR_SNOWBIRD_DIR)/lib
USR_SNOWBIRD_ISYS_DIR = $(USR_SNOWBIRD_INC_DIR)/sys
diff --git a/usr/src/uts/sun4u/snowbird/Makefile.targ b/usr/src/uts/sun4u/snowbird/Makefile.targ
index ec86663e3b..3eff14b011 100644
--- a/usr/src/uts/sun4u/snowbird/Makefile.targ
+++ b/usr/src/uts/sun4u/snowbird/Makefile.targ
@@ -19,8 +19,7 @@
# CDDL HEADER END
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
#
# uts/sun4u/snowbird/Makefile.targ
# Common targets for sun4u snowbird implementation specific modules.
@@ -89,9 +88,6 @@ $(USR_SNOWBIRD_SBIN_DIR): $(USR_SNOWBIRD_DIR)
$(USR_SNOWBIRD_SBIN_PRTDIAG): $(USR_SNOWBIRD_SBIN_DIR)
$(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/sbin/prtdiag $@
-$(USR_SNOWBIRD_SBIN_TRAPSTAT): $(USR_SNOWBIRD_SBIN_DIR)
- $(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/sbin/trapstat $@
-
$(USR_SNOWBIRD_SBIN_FRUADM): $(USR_SNOWBIRD_SBIN_DIR)
$(RM) -r $@; $(SYMLINK) ../../$(PLATFORM)/sbin/fruadm $@
diff --git a/usr/src/uts/sun4v/Makefile.monza b/usr/src/uts/sun4v/Makefile.monza
index 8b51e1806d..2ec5abb5d6 100644
--- a/usr/src/uts/sun4v/Makefile.monza
+++ b/usr/src/uts/sun4v/Makefile.monza
@@ -20,10 +20,7 @@
#
#
#
-# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-# ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
#
# Global definitions for sun4v Monza implementation specific modules.
#
@@ -36,4 +33,3 @@ USR_SUN4V_PLAT_DIR = $(USR_PLAT_DIR)/$(PLATFORM)
USR_MONZA_DIR = $(USR_PLAT_DIR)/SUNW,Netra-CP3260
USR_MONZA_SBIN_DIR = $(USR_MONZA_DIR)/sbin
USR_MONZA_SBIN_LINKS = $(USR_MONZA_SBIN_DIR)/prtdiag
-USR_MONZA_SBIN_LINKS += $(USR_MONZA_SBIN_DIR)/trapstat
diff --git a/usr/src/uts/sun4v/montoya/Makefile.montoya b/usr/src/uts/sun4v/montoya/Makefile.montoya
index 3d31c73f65..8ecc44532e 100644
--- a/usr/src/uts/sun4v/montoya/Makefile.montoya
+++ b/usr/src/uts/sun4v/montoya/Makefile.montoya
@@ -19,11 +19,7 @@
# CDDL HEADER END
#
#
-# uts/sun4v/montoya/Makefile
-# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
-#
-#ident "%Z%%M% %I% %E% SMI"
+# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
#
# Global definitions for sun4v montoya implementation specific modules.
#
@@ -57,7 +53,6 @@ USR_MONTOYA_LIB_DIR = $(USR_MONTOYA_DIR)/lib
USR_MONTOYA_ISYS_DIR = $(USR_MONTOYA_INC_DIR)/sys
USR_MONTOYA_SBIN_LINKS = $(USR_MONTOYA_SBIN_DIR)/prtdiag
-USR_MONTOYA_SBIN_LINKS += $(USR_MONTOYA_SBIN_DIR)/trapstat
MONTOYA_LINT_LIB_DIR= $(UTSBASE)/$(PLATFORM)/montoya/lint-libs/$(OBJS_DIR)