diff options
author | Marvin Borner | 2020-09-08 15:29:38 +0200 |
---|---|---|
committer | Marvin Borner | 2020-09-08 15:29:38 +0200 |
commit | 36d7c86a1e9e72d689d672a0e8576adbc740d541 (patch) | |
tree | b4556b37b0f82d8e41b0ff43ec444c71fca0ccbd /libc/inc/cpu.h | |
parent | 9c2f40441e0cc909ebefe432ddc10e2de29b82ac (diff) |
Some work on CPU stuff (soon: SMP)
Diffstat (limited to 'libc/inc/cpu.h')
-rw-r--r-- | libc/inc/cpu.h | 6 |
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(); |