Commit 5f120ae0 authored by Andi Kleen's avatar Andi Kleen Committed by Linus Torvalds

[PATCH] x86_64: Remove duplicated FAKE_STACK_FRAME macro.

Remove duplicated FAKE_STACK_FRAME macro.

FAKE_STACK_FRAME macro is defined twice.  The one that gets used is in
arch/x86_64/kernel/entry.S, and is slightly different codewise, although
should have the same end result (uses pushq rather than addq %rsp + movq and
has the extra dwarf annotations).
Signed-off-by: default avatarChris Wright <chrisw@osdl.org>
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent f9569609
......@@ -143,22 +143,6 @@
RESTORE_ARGS 0,\addskip
.endm
/* push in order ss, rsp, eflags, cs, rip */
.macro FAKE_STACK_FRAME child_rip
xorl %eax,%eax
subq $6*8,%rsp
movq %rax,5*8(%rsp) /* ss */
movq %rax,4*8(%rsp) /* rsp */
movq $(1<<9),3*8(%rsp) /* eflags */
movq $__KERNEL_CS,2*8(%rsp) /* cs */
movq \child_rip,1*8(%rsp) /* rip */
movq %rax,(%rsp) /* orig_rax */
.endm
.macro UNFAKE_STACK_FRAME
addq $8*6, %rsp
.endm
.macro icebp
.byte 0xf1
.endm
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment