[PATCH] Fix GDT limit in setup.S for 2.0 and 2.2
From: Coywolf Qi Hunt
Date: Mon Feb 23 2004 - 09:04:35 EST
Hello,
I posted this problem days ago. Just now I check FreeBSD code and find
theirs code goes no this problem. Please take my patches for 2.0 and 2.2
2.4 patch have been already sent to Anvin.
(patches for 2.0 and 2.2 enclosed)
Coywolf
--
Coywolf Qi Hunt
Admin of http://GreatCN.org and http://LoveCN.org
--- setup.S.orig 1999-06-14 01:21:00.000000000 +0800
+++ setup.S 2004-02-23 21:36:42.000000000 +0800
@@ -744,7 +744,7 @@
.word 0,0 ! idt base=0L
gdt_48:
- .word 0x800 ! gdt limit=2048, 256 GDT entries
+ .word 0x7ff ! gdt limit=2047, 256 GDT entries
.word 512+gdt,0x9 ! gdt base = 0X9xxxx
!
--- setup.S.orig 2001-11-03 00:39:06.000000000 +0800
+++ setup.S 2004-02-23 21:42:22.000000000 +0800
@@ -907,7 +907,7 @@
.word 0,0 ! idt base=0L
gdt_48:
- .word 0x800 ! gdt limit=2048, 256 GDT entries
+ .word 0x7ff ! gdt limit=2047, 256 GDT entries
.word 0, 0 ! gdt base (filled in later)
!