movl %eax,%fs
movl %eax,%gs
- xorl %ebx,%ebx
- incl %ebx /* This is a secondary processor (AP) */
-
/*
* New page tables may be in 4Mbyte page mode and may
* be using the global pages.
#define cr4_bits mmu_cr4_features-__PAGE_OFFSET
movl cr4_bits,%edx
andl %edx,%edx
- jz 3f
+ jz 6f
movl %cr4,%eax # Turn on paging options (PSE,PAE,..)
orl %edx,%eax
movl %eax,%cr4
wrmsr
6:
- /* cpuid clobbered ebx, set it up again: */
+ /* This is a secondary processor (AP) */
xorl %ebx,%ebx
incl %ebx
+
3:
#endif /* CONFIG_SMP */
.quad 0x0000000000000000 /* 0xf0 - unused */
.quad 0x0000000000000000 /* 0xf8 - GDT entry 31: double-fault TSS */
-#ifdef CONFIG_SMP
- .fill (NR_CPUS-1)*GDT_ENTRIES,8,0 /* other CPU's GDT */
-#endif