Skip to content

Commit b2855d8

Browse files
Dominik Brodowskiingomolnar
authored andcommitted
x86/entry/64: Move ASM_CLAC to interrupt_entry()
Moving ASM_CLAC to interrupt_entry means two instructions (addq / pushq and call interrupt_entry) are not covered by it. However, it offers a noticeable size reduction (-.2k): text data bss dec hex filename 16882 0 0 16882 41f2 entry_64.o-orig 16623 0 0 16623 40ef entry_64.o Suggested-by: Brian Gerst <brgerst@gmail.com> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net> Acked-by: Thomas Gleixner <tglx@linutronix.de> Cc: Andy Lutomirski <luto@kernel.org> Cc: Borislav Petkov <bp@alien8.de> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Denys Vlasenko <dvlasenk@redhat.com> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Josh Poimboeuf <jpoimboe@redhat.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: dan.j.williams@intel.com Link: http://lkml.kernel.org/r/20180220210113.6725-6-linux@dominikbrodowski.net Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 3aa99fc commit b2855d8

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎arch/x86/entry/entry_64.S‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,7 @@ END(irq_entries_start)
572572
/* 8(%rsp): ~(interrupt number) */
573573
ENTRY(interrupt_entry)
574574
UNWIND_HINT_FUNC
575+
ASM_CLAC
575576
cld
576577

577578
testb $3, CS-ORIG_RAX+8(%rsp)
@@ -614,7 +615,6 @@ END(interrupt_entry)
614615
*/
615616
.p2align CONFIG_X86_L1_CACHE_SHIFT
616617
common_interrupt:
617-
ASM_CLAC
618618
addq $-0x80, (%rsp) /* Adjust vector to [-256, -1] range */
619619
call interrupt_entry
620620
UNWIND_HINT_REGS indirect=1
@@ -811,7 +811,6 @@ END(common_interrupt)
811811
.macro apicinterrupt3 num sym do_sym
812812
ENTRY(\sym)
813813
UNWIND_HINT_IRET_REGS
814-
ASM_CLAC
815814
pushq $~(\num)
816815
.Lcommon_\sym:
817816
call interrupt_entry

0 commit comments

Comments
 (0)