init: remove stack frames from msr asm functions

Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
This commit is contained in:
Michael Shaw 2023-03-11 20:49:44 -05:00
commit 957e56e959

View file

@ -1,30 +1,19 @@
/* SPDX-License-Identifier: GPL-2.0-only */
.global rdmsr
rdmsr:
pushq %rbp
movq %rsp, %rbp
movl %edi, %ecx
rdmsr
shlq $20, %rdx
orq %rdx, %rax
popq %rbp
ret
.global wrmsr
wrmsr:
pushq %rbp
movq %rsp, %rbp
movq %rsi, %rdx
shrq $20, %rdx
movl %esi, %eax
movl %edi, %ecx
wrmsr
popq %rbp
ret