v2 initial commit

This commit is contained in:
Michael Shaw 2026-04-11 11:35:31 -04:00
commit d2ef885e8d
118 changed files with 2420 additions and 9320 deletions

21
amd64/arch/msr.S Normal file
View file

@ -0,0 +1,21 @@
/* SPDX-License-Identifier: GPL-2.0-only */
.intel_syntax noprefix
.global rdmsr
rdmsr:
mov ecx, edi
rdmsr
shl rdx, 0x20
or rax, rdx
ret
.global wrmsr
wrmsr:
mov rdx, rsi
shr rdx, 0x20
mov eax, esi
mov ecx, edi
wrmsr
ret