Commit 52de74dd authored by Sebastien Dugue's avatar Sebastien Dugue Committed by Andi Kleen

[PATCH] i386: Rename boot_gdt_table to boot_gdt

Rename boot_gdt_table to boot_gdt to avoid the duplicate T(able).
Signed-off-by: default avatarSebastien Dugue <sebastien.dugue@bull.net>
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Acked-by: default avatarRusty Russell <rusty@rustcorp.com.au>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent d2cbcc49
...@@ -147,8 +147,7 @@ page_pde_offset = (__PAGE_OFFSET >> 20); ...@@ -147,8 +147,7 @@ page_pde_offset = (__PAGE_OFFSET >> 20);
/* /*
* Non-boot CPU entry point; entered from trampoline.S * Non-boot CPU entry point; entered from trampoline.S
* We can't lgdt here, because lgdt itself uses a data segment, but * We can't lgdt here, because lgdt itself uses a data segment, but
* we know the trampoline has already loaded the boot_gdt_table GDT * we know the trampoline has already loaded the boot_gdt for us.
* for us.
* *
* If cpu hotplug is not supported then this code can go in init section * If cpu hotplug is not supported then this code can go in init section
* which will be freed later * which will be freed later
...@@ -588,7 +587,7 @@ fault_msg: ...@@ -588,7 +587,7 @@ fault_msg:
.word 0 # 32 bit align gdt_desc.address .word 0 # 32 bit align gdt_desc.address
boot_gdt_descr: boot_gdt_descr:
.word __BOOT_DS+7 .word __BOOT_DS+7
.long boot_gdt_table - __PAGE_OFFSET .long boot_gdt - __PAGE_OFFSET
.word 0 # 32-bit align idt_desc.address .word 0 # 32-bit align idt_desc.address
idt_descr: idt_descr:
...@@ -602,11 +601,11 @@ ENTRY(early_gdt_descr) ...@@ -602,11 +601,11 @@ ENTRY(early_gdt_descr)
.long per_cpu__cpu_gdt /* Overwritten for secondary CPUs */ .long per_cpu__cpu_gdt /* Overwritten for secondary CPUs */
/* /*
* The boot_gdt_table must mirror the equivalent in setup.S and is * The boot_gdt must mirror the equivalent in setup.S and is
* used only for booting. * used only for booting.
*/ */
.align L1_CACHE_BYTES .align L1_CACHE_BYTES
ENTRY(boot_gdt_table) ENTRY(boot_gdt)
.fill GDT_ENTRY_BOOT_CS,8,0 .fill GDT_ENTRY_BOOT_CS,8,0
.quad 0x00cf9a000000ffff /* kernel 4GB code at 0x00000000 */ .quad 0x00cf9a000000ffff /* kernel 4GB code at 0x00000000 */
.quad 0x00cf92000000ffff /* kernel 4GB data at 0x00000000 */ .quad 0x00cf92000000ffff /* kernel 4GB data at 0x00000000 */
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
* *
* TYPE VALUE * TYPE VALUE
* R_386_32 startup_32_smp * R_386_32 startup_32_smp
* R_386_32 boot_gdt_table * R_386_32 boot_gdt
*/ */
#include <linux/linkage.h> #include <linux/linkage.h>
...@@ -62,8 +62,8 @@ r_base = . ...@@ -62,8 +62,8 @@ r_base = .
* to 32 bit. * to 32 bit.
*/ */
lidtl boot_idt - r_base # load idt with 0, 0 lidtl boot_idt_descr - r_base # load idt with 0, 0
lgdtl boot_gdt - r_base # load gdt with whatever is appropriate lgdtl boot_gdt_descr - r_base # load gdt with whatever is appropriate
xor %ax, %ax xor %ax, %ax
inc %ax # protected mode (PE) bit inc %ax # protected mode (PE) bit
...@@ -73,11 +73,11 @@ r_base = . ...@@ -73,11 +73,11 @@ r_base = .
# These need to be in the same 64K segment as the above; # These need to be in the same 64K segment as the above;
# hence we don't use the boot_gdt_descr defined in head.S # hence we don't use the boot_gdt_descr defined in head.S
boot_gdt: boot_gdt_descr:
.word __BOOT_DS + 7 # gdt limit .word __BOOT_DS + 7 # gdt limit
.long boot_gdt_table-__PAGE_OFFSET # gdt base .long boot_gdt - __PAGE_OFFSET # gdt base
boot_idt: boot_idt_descr:
.word 0 # idt limit = 0 .word 0 # idt limit = 0
.long 0 # idt base = 0L .long 0 # idt base = 0L
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment