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 */ /* SPDX-License-Identifier: GPL-2.0-only */
.global rdmsr .global rdmsr
rdmsr: rdmsr:
pushq %rbp
movq %rsp, %rbp
movl %edi, %ecx movl %edi, %ecx
rdmsr rdmsr
shlq $20, %rdx shlq $20, %rdx
orq %rdx, %rax orq %rdx, %rax
popq %rbp
ret ret
.global wrmsr .global wrmsr
wrmsr: wrmsr:
pushq %rbp
movq %rsp, %rbp
movq %rsi, %rdx movq %rsi, %rdx
shrq $20, %rdx shrq $20, %rdx
movl %esi, %eax movl %esi, %eax
movl %edi, %ecx movl %edi, %ecx
wrmsr wrmsr
popq %rbp
ret ret