Newer
Older
tree-os / src / kernel / drivers / cpu / cpuid.asm
@lukas lukas on 1 Jan 2022 182 bytes code cleanup: lists
section .text
global getVendorId

getVendorId:
    mov eax, 0x00
    cpuid
    mov eax, esp
    mov eax, [eax+4]
    mov [eax], ebx
    mov [eax+8], ecx
    mov [eax+4], edx
    ret