summaryrefslogtreecommitdiff
path: root/src/hypervisor_check.ads
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2015-03-05 14:00:51 +0600
committerDaniil Baturin <daniil@baturin.org>2015-03-05 14:00:51 +0600
commit257335197da3d6bb49d97515c82a5bb4a8fe1831 (patch)
tree2c4a6475cbaa32188d766f03e8db6c5a6d3f1ff7 /src/hypervisor_check.ads
parent4e6920f5a2b7b830e56a2b89c82a9e0c214f1d1a (diff)
downloadhvinfo-257335197da3d6bb49d97515c82a5bb4a8fe1831.tar.gz
hvinfo-257335197da3d6bb49d97515c82a5bb4a8fe1831.zip
Initial import of barely working stuff.
Diffstat (limited to 'src/hypervisor_check.ads')
-rw-r--r--src/hypervisor_check.ads16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/hypervisor_check.ads b/src/hypervisor_check.ads
new file mode 100644
index 0000000..35a22cd
--- /dev/null
+++ b/src/hypervisor_check.ads
@@ -0,0 +1,16 @@
+with Interfaces; use Interfaces;
+with System.Machine_Code; use System.Machine_Code;
+with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
+
+package Hypervisor_Check is
+
+ Hypervisor_Leaf : constant := 16#40000000#;
+ type CPUID_Registers is array (1 .. 4) of Unsigned_32;
+
+ function CPUID (Arg : Unsigned_32) return CPUID_Registers;
+
+ function String_of_U32 (Arg : Unsigned_32) return Unbounded_String;
+
+ function Get_Vendor_String return Unbounded_String;
+
+end Hypervisor_Check;