1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2025-06-07 00:51:40 +00:00
libcpuid/drivers/arm/linux
The Tumultuous Unicorn Of Darkness ae5b2a24c9
Add support for ARMv9.5-A CPUs
New AArch64 registers:
- ID_AA64DFR2_EL1
- ID_AA64FPFR0_EL1
- ID_AA64ISAR3_EL1
2025-05-01 15:21:39 +02:00
..
CMakeLists.txt [CMake] force 'make' usage to build kernel module 2024-10-07 11:07:45 +02:00
cpuid.c Add support for ARMv9.5-A CPUs 2025-05-01 15:21:39 +02:00
dkms.conf.in Add cpuid Linux kernel module for ARM CPUs 2024-07-10 20:16:19 +02:00
Makefile.in Add cpuid Linux kernel module for ARM CPUs 2024-07-10 20:16:19 +02:00
README.md Add README for CPUID kernel modules for ARM 2024-07-10 22:28:50 +02:00

CPUID Linux kernel module for ARM

This kernel module allows to:

  • access AArch32 registers in AArch32 state by using the MRC instruction
  • access both AArch32 and AArch64 registers in AArch64 state by using the MRS instruction

Build

Without DKMS

Building the kernel module by using CMake is useful for libcpuid developers. This method is discouraged for end-users, because you will need to rebuild this module on every kernel updates.

To build the kernel module in the build directory, use CMake with the -DLIBCPUID_DRIVER_ARM_LINUX_DKMS=OFF option.
Then, you can load the module by using:

# insmod build/drivers/arm/linux/cpuid.ko

With DKMS

Once the project is installed (cmake --install build), DKMS files will be present under /usr/src.
Use the dkms command to build the module, and replace X.Y.Z with libcpuid version:

# dkms install -m cpuid -v X.Y.Z
# modprobe cpuid