]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/i386/kernel/entry.S
[PATCH] i386: Implement smp_processor_id() with the PDA
[linux-2.6-omap-h63xx.git] / arch / i386 / kernel / entry.S
index b99d4a16007872941972a88e45b44b31e91ee07a..d7423efaeea42c95dd619bcc08545b4c5ba65ae0 100644 (file)
@@ -524,8 +524,7 @@ syscall_badsys:
 
 #define FIXUP_ESPFIX_STACK \
        /* since we are on a wrong stack, we cant make it a C code :( */ \
-       GET_THREAD_INFO(%ebp); \
-       movl TI_cpu(%ebp), %ebx; \
+       movl %gs:PDA_cpu, %ebx; \
        PER_CPU(cpu_gdt_descr, %ebx); \
        movl GDS_address(%ebx), %ebx; \
        GET_DESC_BASE(GDT_ENTRY_ESPFIX_SS, %ebx, %eax, %ax, %al, %ah); \