Print this page
11844 add rdmsr utility
Reviewed by: Dan McDonald <danmcd@joyent.com>

@@ -21,11 +21,11 @@
 
 /*
  * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  * Copyright (c) 2011, 2017 by Delphix. All rights reserved.
  * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
- * Copyright 2019, Joyent, Inc.
+ * Copyright 2019 Joyent, Inc.
  * Copyright (c) 2014, OmniTI Computer Consulting, Inc. All rights reserved.
  */
 
 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
 /*        All Rights Reserved   */

@@ -101,10 +101,11 @@
 #include <inet/iptun.h>
 #include <sys/zcons.h>
 #include <sys/usb/clients/hid/hid.h>
 #include <sys/pm.h>
 #include <sys/soundcard.h>
+#include <sys/cpuid_drv.h>
 
 #include "ramdata.h"
 #include "proto.h"
 
 #define FCNTLMIN        F_DUPFD

@@ -1668,10 +1669,16 @@
                 "pm_req_t" },
         { (uint_t)PM_SEARCH_LIST,       "PM_SEARCH_LIST",
                 "pm_searchargs_t" },
 #endif /* _SYSCALL */
 
+        /* cpuid ioctls */
+        { (uint_t)CPUID_GET_HWCAP,              "CPUID_GET_HWCAP", NULL },
+#if defined(__i386) || defined(__amd64)
+        { (uint_t)CPUID_RDMSR,                  "CPUID_RDMSR", NULL },
+#endif
+
         { (uint_t)0, NULL, NULL }
 };
 
 void
 ioctl_ioccom(char *buf, size_t size, uint_t code, int nbytes, int x, int y)