Newer
Older
tree-os / src / kernel / drivers / cpu / cpuid.asm
@lukas lukas on 1 Jan 2022 182 bytes code cleanup: lists
  1. section .text
  2. global getVendorId
  3.  
  4. getVendorId:
  5. mov eax, 0x00
  6. cpuid
  7. mov eax, esp
  8. mov eax, [eax+4]
  9. mov [eax], ebx
  10. mov [eax+8], ecx
  11. mov [eax+4], edx
  12. ret