init: remove stack frames from msr asm functions
Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
This commit is contained in:
parent
48e24085f6
commit
957e56e959
1 changed files with 0 additions and 11 deletions
11
init/msr.S
11
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue