From: Andrey Panin <pazke@orbita1.ru>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] visws: export boottime gdt descriptor (4/13)
Date: Fri, 14 Feb 2003 15:58:06 +0300 [thread overview]
Message-ID: <20030214125806.GD8230@pazke> (raw)
[-- Attachment #1: Type: text/plain, Size: 290 bytes --]
Hi.
This simple patch exports boottime gdt descriptor from trampoline.S.
Visws uses it to initialize bootup cpu before running the rest of head.S
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: 1142 bytes --]
diff -urN -X /usr/share/dontdiff linux-2.5.60.vanilla/arch/i386/kernel/trampoline.S linux-2.5.60/arch/i386/kernel/trampoline.S
--- linux-2.5.60.vanilla/arch/i386/kernel/trampoline.S Tue Jan 14 12:32:27 2003
+++ linux-2.5.60/arch/i386/kernel/trampoline.S Fri Feb 14 15:12:28 2003
@@ -46,8 +47,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 +58,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 +66,7 @@
# 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:
+ENTRY(boot_gdt)
.word __BOOT_DS + 7 # gdt limit
.long boot_gdt_table-__PAGE_OFFSET # gdt base = gdt (first SMP CPU)
reply other threads:[~2003-02-14 12:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030214125806.GD8230@pazke \
--to=pazke@orbita1.ru \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox