# Linux Kernel Module Cheat
The perfect emulation setup to study and develop the <<linux-kernel>> v5.9.2, kernel modules, <<qemu-buildroot-setup,QEMU>>, <<gem5-buildroot-setup,gem5>> and x86_64, ARMv7 and ARMv8 <<userland-assembly,userland>> and <<baremetal-setup,baremetal>> assembly, <<c,ANSI C>>, <<cpp,C++>> and <<posix,POSIX>>. <<gdb>> and <<kgdb>> just work. Powered by <<about-the-qemu-buildroot-setup,Buildroot>> and <<about-the-baremetal-setup,crosstool-NG>>. Highly automated. Thoroughly documented. Automated <<test-this-repo,tests>>.

### 28.1. Assembly registers

After seeing an ADD hello world, you need to learn the general registers:

- x86, see: Section 29.1, “x86 registers”

- arm

  - userland/arch/arm/registers.S

- aarch64

  - userland/arch/aarch64/registers.S

  - userland/arch/aarch64/pc.S

Bibliography: ARMv7 architecture reference manual A2.3 "ARM core registers".

- ARMv8 aarch64 x31 register