From a521aa9beb2e0ebba012ce34af93d0280eec6321 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 4 Oct 2002 02:45:18 +0000 Subject: . --- ChangeLog | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/ChangeLog b/ChangeLog index 2ef73030..64de4fab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,40 @@ +2002-10-03 Roland McGrath + + * 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. + + * i386/i386/gdt.h (KERNEL_CS, KERNEL_DS, KERNEL_TSS, KERNEL_LDT): + Values changed, new GDT layout not matching oskit base_gdt.h defaults. + (BASE_KERNEL_CS, BASE_KERNEL_DS): New macros with to oskit's values. + * oskit/x86/main.c (ktss): Variable moved to gdt.c. + (main): Don't diddle the tss here. + * i386/i386/gdt.c (gdt_init): Do it here instead. + * oskit/x86/main.c (my_exit): Restore oskit's base_gdt. + + * oskit/x86/main.c (main): BASE_TSS -> KERNEL_TSS + * i386/i386/mp_desc.c (mp_desc_load): Likewise. + + * i386/i386/gdt.h (USER_TSS): Macro removed (was unused). + (KERNEL_GS): Macro removed (value was bogus!--fix SMP later). + * i386/i386/i386asm.sym: Comment out KERNEL_GS. + + 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. + 2002-07-19 Roland McGrath * configure.in (force_install): New substituted variable, -- cgit v1.2.3