Identifying CPU

From AMC-OS Developers
Revision as of 23:57, 14 August 2012 by Kindman (talk | contribs) (Created page with "==Introduction== Identifying an Intel-compatible x86 CPU is done in several steps : * Check that we have a 32-bits 80386 minimum CPU. * Check the presence of the CPUID instru...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

Identifying an Intel-compatible x86 CPU is done in several steps :

  • Check that we have a 32-bits 80386 minimum CPU.
  • Check the presence of the CPUID instruction.
    • If CPUID is supported, use the instruction to get CPU information and supported instructions.
    • If CPUID is not supported, reset the CPU to get its signature.
  • Calculate the operating frequency of the CPU by timing the execution of a sequence of instructions.

Additional information

Intel describes the complete process of CPU identification in Application Note 485.