diff options
author | Sebastien Dugue <sebastien.dugue@bull.net> | 2007-05-02 13:27:10 -0400 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2007-05-02 13:27:10 -0400 |
commit | 52de74dd3994e165ef1b35c33d54655a6400e30c (patch) | |
tree | 3a8f43f49826b637864e019bcb66f4c09dc6d0e5 /arch/i386/kernel | |
parent | d2cbcc49e2bfd6eaa44d7e4e5e5f171aaa5ec80d (diff) |
[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: Sebastien Dugue <sebastien.dugue@bull.net>
Signed-off-by: Andi Kleen <ak@suse.de>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'arch/i386/kernel')
-rw-r--r-- | arch/i386/kernel/head.S | 9 | ||||
-rw-r--r-- | arch/i386/kernel/trampoline.S | 12 |
2 files changed, 10 insertions, 11 deletions
diff --git a/arch/i386/kernel/head.S b/arch/i386/kernel/head.S index 633fd2f47429..cc46494787e8 100644 --- a/arch/i386/kernel/head.S +++ b/arch/i386/kernel/head.S | |||
@@ -147,8 +147,7 @@ page_pde_offset = (__PAGE_OFFSET >> 20); | |||
147 | /* | 147 | /* |
148 | * Non-boot CPU entry point; entered from trampoline.S | 148 | * Non-boot CPU entry point; entered from trampoline.S |
149 | * We can't lgdt here, because lgdt itself uses a data segment, but | 149 | * We can't lgdt here, because lgdt itself uses a data segment, but |
150 | * we know the trampoline has already loaded the boot_gdt_table GDT | 150 | * we know the trampoline has already loaded the boot_gdt for us. |
151 | * for us. | ||
152 | * | 151 | * |
153 | * If cpu hotplug is not supported then this code can go in init section | 152 | * If cpu hotplug is not supported then this code can go in init section |
154 | * which will be freed later | 153 | * which will be freed later |
@@ -588,7 +587,7 @@ fault_msg: | |||
588 | .word 0 # 32 bit align gdt_desc.address | 587 | .word 0 # 32 bit align gdt_desc.address |
589 | boot_gdt_descr: | 588 | boot_gdt_descr: |
590 | .word __BOOT_DS+7 | 589 | .word __BOOT_DS+7 |
591 | .long boot_gdt_table - __PAGE_OFFSET | 590 | .long boot_gdt - __PAGE_OFFSET |
592 | 591 | ||
593 | .word 0 # 32-bit align idt_desc.address | 592 | .word 0 # 32-bit align idt_desc.address |
594 | idt_descr: | 593 | idt_descr: |
@@ -602,11 +601,11 @@ ENTRY(early_gdt_descr) | |||
602 | .long per_cpu__cpu_gdt /* Overwritten for secondary CPUs */ | 601 | .long per_cpu__cpu_gdt /* Overwritten for secondary CPUs */ |
603 | 602 | ||
604 | /* | 603 | /* |
605 | * The boot_gdt_table must mirror the equivalent in setup.S and is | 604 | * The boot_gdt must mirror the equivalent in setup.S and is |
606 | * used only for booting. | 605 | * used only for booting. |
607 | */ | 606 | */ |
608 | .align L1_CACHE_BYTES | 607 | .align L1_CACHE_BYTES |
609 | ENTRY(boot_gdt_table) | 608 | ENTRY(boot_gdt) |
610 | .fill GDT_ENTRY_BOOT_CS,8,0 | 609 | .fill GDT_ENTRY_BOOT_CS,8,0 |
611 | .quad 0x00cf9a000000ffff /* kernel 4GB code at 0x00000000 */ | 610 | .quad 0x00cf9a000000ffff /* kernel 4GB code at 0x00000000 */ |
612 | .quad 0x00cf92000000ffff /* kernel 4GB data at 0x00000000 */ | 611 | .quad 0x00cf92000000ffff /* kernel 4GB data at 0x00000000 */ |
diff --git a/arch/i386/kernel/trampoline.S b/arch/i386/kernel/trampoline.S index 2f1814c5cfd7..f62815f8d06a 100644 --- a/arch/i386/kernel/trampoline.S +++ b/arch/i386/kernel/trampoline.S | |||
@@ -29,7 +29,7 @@ | |||
29 | * | 29 | * |
30 | * TYPE VALUE | 30 | * TYPE VALUE |
31 | * R_386_32 startup_32_smp | 31 | * R_386_32 startup_32_smp |
32 | * R_386_32 boot_gdt_table | 32 | * R_386_32 boot_gdt |
33 | */ | 33 | */ |
34 | 34 | ||
35 | #include <linux/linkage.h> | 35 | #include <linux/linkage.h> |
@@ -62,8 +62,8 @@ r_base = . | |||
62 | * to 32 bit. | 62 | * to 32 bit. |
63 | */ | 63 | */ |
64 | 64 | ||
65 | lidtl boot_idt - r_base # load idt with 0, 0 | 65 | lidtl boot_idt_descr - r_base # load idt with 0, 0 |
66 | lgdtl boot_gdt - r_base # load gdt with whatever is appropriate | 66 | lgdtl boot_gdt_descr - r_base # load gdt with whatever is appropriate |
67 | 67 | ||
68 | xor %ax, %ax | 68 | xor %ax, %ax |
69 | inc %ax # protected mode (PE) bit | 69 | inc %ax # protected mode (PE) bit |
@@ -73,11 +73,11 @@ r_base = . | |||
73 | 73 | ||
74 | # These need to be in the same 64K segment as the above; | 74 | # These need to be in the same 64K segment as the above; |
75 | # hence we don't use the boot_gdt_descr defined in head.S | 75 | # hence we don't use the boot_gdt_descr defined in head.S |
76 | boot_gdt: | 76 | boot_gdt_descr: |
77 | .word __BOOT_DS + 7 # gdt limit | 77 | .word __BOOT_DS + 7 # gdt limit |
78 | .long boot_gdt_table-__PAGE_OFFSET # gdt base | 78 | .long boot_gdt - __PAGE_OFFSET # gdt base |
79 | 79 | ||
80 | boot_idt: | 80 | boot_idt_descr: |
81 | .word 0 # idt limit = 0 | 81 | .word 0 # idt limit = 0 |
82 | .long 0 # idt base = 0L | 82 | .long 0 # idt base = 0L |
83 | 83 | ||