Newer
Older
tree-os / src / kernel / drivers / cpu / cpuid.c
@lukas lukas on 24 Sep 2021 298 bytes add capital typing
#include <_stdio.h>
#include <alloc.h>
#include <cpuid.h>

extern void getVendorId(char *string);

void printCPUData() {
    char *vendorID = malloc(13 * sizeof(char));
    vendorID[12] = 0x00;
    getVendorId(vendorID);
    printf("vendor id: %s\n", vendorID);
    free(vendorID);
    yields();
}