Remove types.c/.h, use klibc headers, amend stdbool.h, reimplement cpuid()

This commit is contained in:
vmttmv
2026-01-12 02:42:02 +02:00
parent 86608ef48c
commit 841892398a
9 changed files with 20 additions and 69 deletions

View File

@@ -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];