From 957e56e9594212011fdacf9241f61e5cd5a19fab Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Sat, 11 Mar 2023 20:49:44 -0500 Subject: [PATCH] init: remove stack frames from msr asm functions Signed-off-by: Michael Shaw --- init/msr.S | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/init/msr.S b/init/msr.S index 81b5ba7..40d86fe 100644 --- a/init/msr.S +++ b/init/msr.S @@ -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 -