aboutsummaryrefslogtreecommitdiff
path: root/libc/inc/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/inc/cpu.h')
-rw-r--r--libc/inc/cpu.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libc/inc/cpu.h b/libc/inc/cpu.h
index c25dc60..e742390 100644
--- a/libc/inc/cpu.h
+++ b/libc/inc/cpu.h
@@ -5,6 +5,8 @@
#include <def.h>
+enum cpuid_requests { CPUID_VENDOR_STRING, CPUID_FEATURES, CPUID_TLB, CPUID_SERIAL };
+
u8 inb(u16 port);
u16 inw(u16 port);
u32 inl(u16 port);
@@ -14,6 +16,10 @@ void outb(u16 port, u8 data);
void outw(u16 port, u16 data);
void outl(u16 port, u32 data);
+void cpuid(int code, u32 *a, u32 *b, u32 *c, u32 *d);
+char *cpu_string(char buf[12]);
+void cpu_print();
+
#ifdef kernel
void cli();
void sti();