[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnumach/i386/i386 mp_desc.c
From: |
Roland McGrath |
Subject: |
gnumach/i386/i386 mp_desc.c |
Date: |
Thu, 03 Oct 2002 22:45:06 -0400 |
CVSROOT: /cvsroot/hurd
Module name: gnumach
Changes by: Roland McGrath <address@hidden> 02/10/03 22:45:06
Modified files:
i386/i386 : mp_desc.c
Log message:
2002-10-03 Roland McGrath <address@hidden>
* oskit/x86/main.c (main): BASE_TSS -> KERNEL_TSS
* i386/i386/mp_desc.c (mp_desc_load): Likewise.
Remove magic %gs:0 pseudo-register support.
* i386/i386/ldt.h (USER_GS): Macro removed.
* i386/i386/pcb.c (pcb_init): Set gs to USER_DS, not USER_GS.
(thread_setstatus): Likewise.
* i386/i386/mp_desc.h (struct mp_desc_table): Remove member
`user_thread_register'.
* i386/i386/thread.h (struct i386_machine_state): Likewise.
* i386/i386/mp_desc.c (mp_desc_init): Don't set up USER_GS in LDT.
* i386/i386/ldt.c (ldt_init): Likewise.
* i386/intel/pmap.c (pmap_bootstrap): Don't give users access to
direct-mapped pages.
* i386/i386/user_ldt.c (i386_set_ldt): Don't cap segment limits.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnumach/gnumach/i386/i386/mp_desc.c.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
Patches:
Index: gnumach/i386/i386/mp_desc.c
diff -u gnumach/i386/i386/mp_desc.c:1.2 gnumach/i386/i386/mp_desc.c:1.3
--- gnumach/i386/i386/mp_desc.c:1.2 Mon May 27 19:01:50 2002
+++ gnumach/i386/i386/mp_desc.c Thu Oct 3 22:45:06 2002
@@ -142,12 +142,6 @@
sizeof(struct task_tss) - 1,
ACC_P|ACC_PL_K|ACC_TSS, 0);
- /* Fix the LDT's entry for USER_GS to point into
- our CPU-specific structure. */
- fill_descriptor(&mpt->ldt[sel_idx(USER_GS)],
- kvtolin(&mpt->user_thread_register),
- 3, ACC_P|ACC_PL_U|ACC_DATA_W, SZ_32);
-
/*
* Set the %gs segment register to point at
* a word containing the cpu number.
@@ -207,10 +201,10 @@
set_idt(&pdesc);
/* Make sure the TSS isn't marked busy. */
- mpt->gdt[BASE_TSS / 8].access &= ~ACC_TSS_BUSY;
+ mpt->gdt[KERNEL_TSS / 8].access &= ~ACC_TSS_BUSY;
/* Load the TSS. */
- set_tr(BASE_TSS);
+ set_tr(KERNEL_TSS);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnumach/i386/i386 mp_desc.c,
Roland McGrath <=