summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-10-04 02:45:06 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-17 23:50:19 +0200
commit80bf242fc4b3f434a655ad114aac8017cd4c18b2 (patch)
tree8fe301c1733f5aa32fa8588df2066e082ce51323
parenta235af5f2f1d731db358d301a465686070fe4187 (diff)
2002-10-03 Roland McGrath <roland@frob.com>
* 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.
-rw-r--r--i386/i386/mp_desc.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/i386/i386/mp_desc.c b/i386/i386/mp_desc.c
index e0ccff22..946b8660 100644
--- a/i386/i386/mp_desc.c
+++ b/i386/i386/mp_desc.c
@@ -142,12 +142,6 @@ mp_desc_init(mycpu)
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 @@ mp_desc_load(struct mp_desc_table *mpt)
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);
}