* [PATCH] export boottime gdt from i386/kernel/trampoline.S
@ 2003-01-31 8:23 Andrey Panin
0 siblings, 0 replies; only message in thread
From: Andrey Panin @ 2003-01-31 8:23 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 356 bytes --]
Hi all,
this trivial patch (against 2.5.59) renames gdt_48 to boot_gdt and
makes it global, idt_48 is renamed to for consistency sake.
This patch allows visws subarch to use boottime gdt for starting boot cpu.
Please consider applying.
Best regards.
--
Andrey Panin | Embedded systems software developer
pazke@orbita1.ru | PGP key: wwwkeys.pgp.net
[-- Attachment #2: patch-boot_gdt --]
[-- Type: text/plain, Size: 1154 bytes --]
diff -urN -X /usr/share/dontdiff linux-2.5.59.vanilla/arch/i386/kernel/trampoline.S linux-2.5.59/arch/i386/kernel/trampoline.S
--- linux-2.5.59.vanilla/arch/i386/kernel/trampoline.S Wed Jan 15 20:37:20 2003
+++ linux-2.5.59/arch/i386/kernel/trampoline.S Sun Jan 19 18:43:10 2003
@@ -46,8 +46,8 @@
movl $0xA5A5A5A5, trampoline_data - r_base
# write marker for master knows we're running
- lidt idt_48 - r_base # load idt with 0, 0
- lgdt gdt_48 - r_base # load gdt with whatever is appropriate
+ lidt boot_idt - r_base # load idt with 0, 0
+ lgdt boot_gdt - r_base # load gdt with whatever is appropriate
xor %ax, %ax
inc %ax # protected mode (PE) bit
@@ -57,7 +57,7 @@
ljmpl $__BOOT_CS, $0x00100000
# jump to startup_32 in arch/i386/kernel/head.S
-idt_48:
+boot_idt:
.word 0 # idt limit = 0
.word 0, 0 # idt base = 0L
@@ -65,8 +65,8 @@
# NOTE: here we actually use CPU#0's GDT - but that is OK, we reload
# the proper GDT shortly after booting up the secondary CPUs.
#
-
-gdt_48:
+ .globl boot_gdt
+boot_gdt:
.word __BOOT_DS + 7 # gdt limit
.long boot_gdt_table-__PAGE_OFFSET # gdt base = gdt (first SMP CPU)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-01-31 8:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-31 8:23 [PATCH] export boottime gdt from i386/kernel/trampoline.S Andrey Panin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox