]> err.no Git - linux-2.6/commitdiff
[PATCH] Add proper alignment to ENTRY
authorAndi Kleen <ak@suse.de>
Tue, 26 Sep 2006 08:52:29 +0000 (10:52 +0200)
committerAndi Kleen <andi@basil.nowhere.org>
Tue, 26 Sep 2006 08:52:29 +0000 (10:52 +0200)
Previously it didn't align. Use the same one as the C compiler
in blended mode, which is good for K8 and Core2 and doesn't hurt
on P4.

Signed-off-by: Andi Kleen <ak@suse.de>
arch/x86_64/kernel/entry.S
include/asm-x86_64/linkage.h

index 7eb1678e098d5eaad7977068353b22aabdbbb525..2dc5c01f754d76e33dc727a414d3cfe097975b53 100644 (file)
@@ -617,8 +617,7 @@ retint_signal:
 #ifdef CONFIG_PREEMPT
        /* Returning to kernel space. Check if we need preemption */
        /* rcx:  threadinfo. interrupts off. */
-       .p2align
-retint_kernel: 
+ENTRY(retint_kernel)
        cmpl $0,threadinfo_preempt_count(%rcx)
        jnz  retint_restore_args
        bt  $TIF_NEED_RESCHED,threadinfo_flags(%rcx)
index 291c2d01c44f29dad20f7623783b8bad362eaddf..b5f39d0189ce0d01191ac14809a3caeae2bcf85d 100644 (file)
@@ -1,6 +1,6 @@
 #ifndef __ASM_LINKAGE_H
 #define __ASM_LINKAGE_H
 
-/* Nothing to see here... */
+#define __ALIGN .p2align 4,,15
 
 #endif