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 */
|
/* 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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue