diff options
Diffstat (limited to 'arch/i386/kernel/cpu/common.c')
| -rw-r--r-- | arch/i386/kernel/cpu/common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/i386/kernel/cpu/common.c b/arch/i386/kernel/cpu/common.c index e476202b887f..6958ae5e2fa5 100644 --- a/arch/i386/kernel/cpu/common.c +++ b/arch/i386/kernel/cpu/common.c | |||
| @@ -651,6 +651,7 @@ __cpuinit int alloc_gdt(int cpu) | |||
| 651 | struct i386_pda boot_pda = { | 651 | struct i386_pda boot_pda = { |
| 652 | ._pda = &boot_pda, | 652 | ._pda = &boot_pda, |
| 653 | .cpu_number = 0, | 653 | .cpu_number = 0, |
| 654 | .pcurrent = &init_task, | ||
| 654 | }; | 655 | }; |
| 655 | 656 | ||
| 656 | static inline void set_kernel_gs(void) | 657 | static inline void set_kernel_gs(void) |
| @@ -696,6 +697,7 @@ __cpuinit int init_gdt(int cpu, struct task_struct *idle) | |||
| 696 | memset(pda, 0, sizeof(*pda)); | 697 | memset(pda, 0, sizeof(*pda)); |
| 697 | pda->_pda = pda; | 698 | pda->_pda = pda; |
| 698 | pda->cpu_number = cpu; | 699 | pda->cpu_number = cpu; |
| 700 | pda->pcurrent = idle; | ||
| 699 | 701 | ||
| 700 | return 1; | 702 | return 1; |
| 701 | } | 703 | } |
