bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Savannah task 5878 - port user_gdt


From: Barry deFreese
Subject: Re: Savannah task 5878 - port user_gdt
Date: Tue, 31 Oct 2006 22:55:08 -0500


----- Original Message ----- From: "Samuel Thibault" <samuel.thibault@ens-lyon.org>
To: "Barry deFreese" <bddebian@comcast.net>
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)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]