vbos/init/msr.S
Michael Shaw 957e56e959 init: remove stack frames from msr asm functions
Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
2023-03-11 20:49:44 -05:00

19 lines
229 B
ArmAsm

/* SPDX-License-Identifier: GPL-2.0-only */
.global rdmsr
rdmsr:
movl %edi, %ecx
rdmsr
shlq $20, %rdx
orq %rdx, %rax
ret
.global wrmsr
wrmsr:
movq %rsi, %rdx
shrq $20, %rdx
movl %esi, %eax
movl %edi, %ecx
wrmsr
ret