summaryrefslogtreecommitdiff
path: root/usr/src/cmd/ptools/pargs/pargs.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/ptools/pargs/pargs.c')
-rw-r--r--usr/src/cmd/ptools/pargs/pargs.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/usr/src/cmd/ptools/pargs/pargs.c b/usr/src/cmd/ptools/pargs/pargs.c
index 9f284e0731..a4a2654e30 100644
--- a/usr/src/cmd/ptools/pargs/pargs.c
+++ b/usr/src/cmd/ptools/pargs/pargs.c
@@ -24,6 +24,7 @@
*/
/*
* Copyright (c) 2018, Joyent, Inc.
+ * Copyright 2022 Oxide Computer Company
*/
/*
@@ -754,6 +755,17 @@ at_hwcap2(long val, char *instr, size_t n, char *str)
#endif
}
+/*ARGSUSED*/
+static void
+at_hwcap3(long val, char *instr, size_t n, char *str)
+{
+#if defined(__i386) || defined(__amd64)
+ (void) elfcap_hw3_to_str(ELFCAP_STYLE_UC, val, str, n,
+ ELFCAP_FMT_PIPSPACE, EM_386);
+#else
+#error "port me"
+#endif
+}
/*ARGSUSED*/
static void
@@ -835,6 +847,7 @@ static struct aux_id aux_arr[] = {
{ AT_SUN_EXECNAME, "AT_SUN_EXECNAME", at_str },
{ AT_SUN_HWCAP, "AT_SUN_HWCAP", at_hwcap },
{ AT_SUN_HWCAP2, "AT_SUN_HWCAP2", at_hwcap2 },
+ { AT_SUN_HWCAP3, "AT_SUN_HWCAP3", at_hwcap3 },
{ AT_SUN_IFLUSH, "AT_SUN_IFLUSH", at_null },
{ AT_SUN_CPU, "AT_SUN_CPU", at_null },
{ AT_SUN_MMU, "AT_SUN_MMU", at_null },