diff options
Diffstat (limited to 'arch/i386/kernel/entry.S')
-rw-r--r-- | arch/i386/kernel/entry.S | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/i386/kernel/entry.S b/arch/i386/kernel/entry.S index 3e4aa1fd33e2..7f92ceb428ad 100644 --- a/arch/i386/kernel/entry.S +++ b/arch/i386/kernel/entry.S | |||
@@ -132,7 +132,7 @@ VM_MASK = 0x00020000 | |||
132 | movl $(__USER_DS), %edx; \ | 132 | movl $(__USER_DS), %edx; \ |
133 | movl %edx, %ds; \ | 133 | movl %edx, %ds; \ |
134 | movl %edx, %es; \ | 134 | movl %edx, %es; \ |
135 | movl $(__KERNEL_PDA), %edx; \ | 135 | movl $(__KERNEL_PERCPU), %edx; \ |
136 | movl %edx, %fs | 136 | movl %edx, %fs |
137 | 137 | ||
138 | #define RESTORE_INT_REGS \ | 138 | #define RESTORE_INT_REGS \ |
@@ -556,7 +556,6 @@ END(syscall_badsys) | |||
556 | 556 | ||
557 | #define FIXUP_ESPFIX_STACK \ | 557 | #define FIXUP_ESPFIX_STACK \ |
558 | /* since we are on a wrong stack, we cant make it a C code :( */ \ | 558 | /* since we are on a wrong stack, we cant make it a C code :( */ \ |
559 | movl %fs:PDA_cpu, %ebx; \ | ||
560 | PER_CPU(gdt_page, %ebx); \ | 559 | PER_CPU(gdt_page, %ebx); \ |
561 | GET_DESC_BASE(GDT_ENTRY_ESPFIX_SS, %ebx, %eax, %ax, %al, %ah); \ | 560 | GET_DESC_BASE(GDT_ENTRY_ESPFIX_SS, %ebx, %eax, %ax, %al, %ah); \ |
562 | addl %esp, %eax; \ | 561 | addl %esp, %eax; \ |
@@ -681,7 +680,7 @@ error_code: | |||
681 | pushl %fs | 680 | pushl %fs |
682 | CFI_ADJUST_CFA_OFFSET 4 | 681 | CFI_ADJUST_CFA_OFFSET 4 |
683 | /*CFI_REL_OFFSET fs, 0*/ | 682 | /*CFI_REL_OFFSET fs, 0*/ |
684 | movl $(__KERNEL_PDA), %ecx | 683 | movl $(__KERNEL_PERCPU), %ecx |
685 | movl %ecx, %fs | 684 | movl %ecx, %fs |
686 | UNWIND_ESPFIX_STACK | 685 | UNWIND_ESPFIX_STACK |
687 | popl %ecx | 686 | popl %ecx |