summary refs log tree commit diff
path: root/x86_64/host_cpuid.c
diff options
context:
space:
mode:
Diffstat (limited to 'x86_64/host_cpuid.c')
-rw-r--r--x86_64/host_cpuid.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/x86_64/host_cpuid.c b/x86_64/host_cpuid.c
deleted file mode 100644
index 3230c90..0000000
--- a/x86_64/host_cpuid.c
+++ /dev/null
@@ -1,11 +0,0 @@
-// Copyright 2018 The Chromium OS Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include <stdint.h>
-
-void host_cpuid(uint32_t func, uint32_t func2, uint32_t *pEax,
-                uint32_t *pEbx, uint32_t *pEcx, uint32_t *pEdx) {
-    asm volatile("cpuid" : "=a"(*pEax), "=b"(*pEbx), "=c"(*pEcx), "=d"(*pEdx) :
-                 "0"(func), "2"(func2) : "cc");
-}