Add functionality to identify the CPU vendor and features using the CPUID instruction. The CPU vendor information is stored in the Processor Control Block (PRCB), including the vendor name and a corresponding enumeration. CPU features are also retrieved and stored in the PRCB. Previously, the CPU vendor was not properly stored in the PRCB, caused by a missing type cast. Using Rtl functions to copy the CPU vendor name to the PRCB. Details: - Introduced functions `ArpSetCpuVendor` and `ArpSetCpuFeatures` to set CPU vendor and features, respectively. - Modified `ArpIdentifyProcessor` to call the new functions for vendor and features identification. - Added `CPU_FEATURES` structure to `KPROCESSOR_CONTROL_BLOCK` structure to store CPU features. Tests: - Tested x86_64 on QEMU. Verified that the CPU vendor and features are correctly identified and stored in the PRCB. |
||
---|---|---|
.. | ||
amd64 | ||
i686 | ||
exfuncs.h | ||
extypes.h | ||
hlfuncs.h | ||
hltypes.h | ||
iotypes.h | ||
kefuncs.h | ||
ketypes.h | ||
ldrtypes.h | ||
potypes.h | ||
pstypes.h | ||
README.md | ||
rtlfuncs.h | ||
rtltypes.h | ||
xtbase.h | ||
xtdebug.h | ||
xtdefs.h | ||
xtfw.h | ||
xtglyph.h | ||
xtimage.h | ||
xtkmapi.h | ||
xtstatus.h | ||
xtstruct.h | ||
xttarget.h | ||
xttypes.h | ||
xtuefi.h |
XT Development Kit (XTDK)
The XTDK, or XT Development Kit is a comprehensive set of headers designed to facilitate the development of both kernel mode drivers and native XT applications. It includes two main headers: xtkmapi.h and xtumapi.h.
The xtkmapi.h header is primarily used for kernel mode development, specifically for building drivers. It provides developers with the necessary definitions and functions required to interact with the kernel and access system resources. With this header, developers can write efficient and secure kernel mode drivers for the XT operating system.
The xtumapi.h header is tailored for user mode development. It encompasses all the essential components needed for creating user mode applications on the XT platform. This header exposes the definitions and public functions exported by XTOS, allowing developers to leverage the capabilities of the operating system and build powerful user mode applications.
By utilizing XTDK, developers can harness the full potential of the XT operating system and seamlessly write both kernel mode drivers and user mode applications. The provided headers streamline the development process by offering a standardized set of functions and definitions, reducing the complexity and effort required to create software for the XT platform.