How can I detect the number of cores in x86 assembly?

前端 未结 1 859
后悔当初
后悔当初 2020-12-16 02:19

I am writing a very simple operating system as a learning tool for myself. My current task is detecting as much about the hardware as possible.

I have so far been a

相关标签:
1条回答
  • 2020-12-16 02:59

    In order to find all of the processors in a system, you must parse either the ACPI tables or Intel's MP configuration table. See Bringing SMP to your UP Operating System for a tutorial on using the MP configuration table to find and start other processors. Find more information on ACPI at http://www.acpi.info/spec.htm. You may also want to check out Detecting CPU Topology, which can tell you which processors and cores are on which physical chip within a system.

    When working on your OS, http://wiki.osdev.org will be your best friend. It is full of information on all of the different parts of operating system development, including common hardware and tools.

    0 讨论(0)
提交回复
热议问题