Commit:     503595010f2024b236fd2636a7318fe64c794d6c
Parent:     4323838215184f5a2f081e0d17b8d60731b03164
Author:     Ian Campbell <[EMAIL PROTECTED]>
AuthorDate: Wed Jan 30 13:33:27 2008 +0100
Committer:  Ingo Molnar <[EMAIL PROTECTED]>
CommitDate: Wed Jan 30 13:33:27 2008 +0100

    x86_32: remove unnecessary use of %ebx as the boot cpu flag
    Currently in head_32.S there are two ways we test to see if we
    are the boot cpu.  By looking at %ebx and by looking at the
    static variable ready.  When changing things around I have
    found that it gets tricky to preserve %ebx.  So this
    patch just switches head.S over to the more reliable
    test of always using ready.
    Hopefully later we can kill these tests entirely.
    Signed-off-by: Eric W. Biederman <[EMAIL PROTECTED]>
    Signed-off-by: Ian Campbell <[EMAIL PROTECTED]>
    Cc: H. Peter Anvin <[EMAIL PROTECTED]>
    Cc: Andi Kleen <[EMAIL PROTECTED]>
    Cc: Mika Penttilä <[EMAIL PROTECTED]>
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
    Signed-off-by: Thomas Gleixner <[EMAIL PROTECTED]>
 arch/x86/kernel/head_32.S |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/arch/x86/kernel/head_32.S b/arch/x86/kernel/head_32.S
index f409fe2..7b9b256 100644
--- a/arch/x86/kernel/head_32.S
+++ b/arch/x86/kernel/head_32.S
@@ -199,7 +199,6 @@ default_entry:
        addl $0x67, %eax                        /* 0x67 == _PAGE_TABLE */
        movl %eax, 4092(%edx)
-       xorl %ebx,%ebx                          /* This is the boot CPU (BSP) */
        jmp 3f
  * Non-boot CPU entry point; entered from trampoline.S
@@ -268,10 +267,6 @@ ENTRY(startup_32_smp)
-       /* This is a secondary processor (AP) */
-       xorl %ebx,%ebx
-       incl %ebx
 #endif /* CONFIG_SMP */
@@ -297,7 +292,7 @@ ENTRY(startup_32_smp)
 #ifdef CONFIG_SMP
-       andl %ebx,%ebx
+       cmpb $0, ready
        jz  1f                          /* Initial CPU cleans BSS */
        jmp checkCPUtype
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to