summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}