[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Savannah task 5878 - port user_gdt
From: |
Samuel Thibault |
Subject: |
Re: Savannah task 5878 - port user_gdt |
Date: |
Mon, 30 Oct 2006 09:54:26 +0100 |
User-agent: |
Mutt/1.5.11 |
Hi,
Barry deFreese, le Sun 29 Oct 2006 22:30:12 -0500, a écrit :
> I finally think I have the i386_{get,set}_gdt stuff from oskit ported into
> the gnumach branch. I haven't tested the gdt functionality but it does
> build and boot.
Great!
See my comments below.
diff -Nurp gnumach-1-10292006.org/i386/i386/gdt.h
gnumach-1-10292006/gnumach/i386/i386/gdt.h
--- gnumach-1-10292006.org/i386/i386/gdt.h 2006-10-29 18:26:18.000000000
+0000
+++ gnumach-1-10292006/gnumach/i386/i386/gdt.h 2006-10-29 19:49:34.000000000
+0000
@@ -59,7 +59,9 @@
to allocate */
#define GDTSZ 0x300 /* size of gdt table */
#else /* PS2 */
-#define GDTSZ 11
+#define USER_GDT 0x48
+#define GDTSZ (0x80/8)
+#define USER_GDT_SLOTS 2
#endif /* PS2 */
As I told you on irc, GDTS should be increased to 13, (because it was 11
and we're adding 2 slots), not 0x80/8 (which makes 16).
Else it looks fine. This of course needs a few tests before committing.
Samuel