[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnumach/i386/include/mach/i386 mach_i386.defs
From: |
Roland McGrath |
Subject: |
gnumach/i386/include/mach/i386 mach_i386.defs |
Date: |
Thu, 03 Oct 2002 22:44:47 -0400 |
CVSROOT: /cvsroot/hurd
Module name: gnumach
Changes by: Roland McGrath <address@hidden> 02/10/03 22:44:47
Modified files:
i386/include/mach/i386: mach_i386.defs
Log message:
2002-10-03 Roland McGrath <address@hidden>
* i386/include/mach/i386/mach_i386.defs (i386_set_gdt, i386_get_gdt):
New routines.
* i386/i386/user_ldt.c (i386_set_gdt, i386_get_gdt): New functions.
* i386/i386/gdt.h (USER_GDT, USER_GDT_SLOTS): New macros.
* i386/i386/thread.h (struct i386_machine_state): New member user_gdt.
* i386/i386/pcb.c (switch_ktss): Copy those slots into the GDT.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnumach/gnumach/i386/include/mach/i386/mach_i386.defs.diff?tr1=1.3&tr2=1.4&r1=text&r2=text
Patches:
Index: gnumach/i386/include/mach/i386/mach_i386.defs
diff -u gnumach/i386/include/mach/i386/mach_i386.defs:1.3
gnumach/i386/include/mach/i386/mach_i386.defs:1.4
--- gnumach/i386/include/mach/i386/mach_i386.defs:1.3 Mon May 27 19:01:51 2002
+++ gnumach/i386/include/mach/i386/mach_i386.defs Thu Oct 3 22:44:47 2002
@@ -94,3 +94,19 @@
target_task : task_t;
io_perm : io_perm_t;
enable : boolean_t);
+
+/* Modify one of a few available thread-specific segment descriptor slots.
+ The SELECTOR must be a value from a previous call (on any thread),
+ or -1 to allocate an available slot and return the segment selector for it.
+ These slots are copied into the CPU on each thread switch.
+ Returns KERN_NO_SPACE when there are no more slots available. */
+routine i386_set_gdt(
+ target_thread : thread_t;
+ inout selector : int;
+ desc : descriptor_t);
+
+/* Fetch a segment descriptor set with a prior i386_set_gdt call. */
+routine i386_get_gdt(
+ target_thread : thread_t;
+ selector : int;
+ out desc : descriptor_t);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnumach/i386/include/mach/i386 mach_i386.defs,
Roland McGrath <=