mirror of
https://github.com/gbowne1/ClassicOS.git
synced 2026-01-15 10:35:20 -08:00
Remove types.c/.h, use klibc headers, amend stdbool.h, reimplement cpuid()
This commit is contained in:
@@ -3,6 +3,14 @@
|
||||
#include "terminal.h"
|
||||
#include "utils.h"
|
||||
|
||||
void cpuid(uint32_t leaf, uint32_t *eax, uint32_t *ebx, uint32_t *ecx, uint32_t *edx) {
|
||||
__asm__(
|
||||
"cpuid"
|
||||
: "=a"(*eax), "=b"(*ebx), "=c"(*ecx), "=d"(*edx)
|
||||
: "a"(leaf)
|
||||
);
|
||||
}
|
||||
|
||||
// Helper to print a labeled decimal value
|
||||
void print_val(const char* label, uint32_t val) {
|
||||
char buf[12];
|
||||
|
||||
Reference in New Issue
Block a user