----- Original Message -----
From: "Samuel Thibault" <[EMAIL PROTECTED]>
To: "Barry deFreese" <[EMAIL PROTECTED]>
Cc: <bug-hurd@gnu.org>
Sent: Monday, October 30, 2006 3:54 AM
Subject: Re: Savannah task 5878 - port user_gdt
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
OK, I'm trying to do some testing and not having much luck. However, I also
noticed that i386_{get,set}_gdt is not getting in mach_i386.h. What am I
missing there? Do I need to do some MiG magic to get it from mach_i386.defs
to mach_i386.h?
Thanks!
Barry deFreese (aka bddebian)
_______________________________________________
Bug-hurd mailing list
Bug-hurd@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-hurd