search for: restore_bios_segments

Displaying 4 results from an estimated 4 matches for "restore_bios_segments".

2007 Apr 18
1
[PATCH 7/21] i386 Losing fs gs to bios
...uct desc_struct *gdt = get_cpu_gdt_table(cpu); + save_area->gdt = gdt; + savesegment(fs, save_area->saved_fs); + savesegment(gs, save_area->saved_gs); + save_area->save_desc_40 = gdt[GDT_ENTRY_BAD_BIOS]; + gdt[GDT_ENTRY_BAD_BIOS] = gdt[GDT_ENTRY_BAD_BIOS_CACHE]; +} + +static inline void restore_bios_segments(struct bios_segment_save *save_area) +{ + save_area->gdt[GDT_ENTRY_BAD_BIOS] = save_area->save_desc_40; + loadsegment(fs, save_area->saved_fs); + loadsegment(gs, save_area->saved_gs); + put_cpu(); +} + #endif /* !__ASSEMBLY__ */ #endif Index: linux-2.6.14-zach-work/drivers/pnp/pnpbi...
2007 Apr 18
1
[PATCH 7/21] i386 Losing fs gs to bios
...uct desc_struct *gdt = get_cpu_gdt_table(cpu); + save_area->gdt = gdt; + savesegment(fs, save_area->saved_fs); + savesegment(gs, save_area->saved_gs); + save_area->save_desc_40 = gdt[GDT_ENTRY_BAD_BIOS]; + gdt[GDT_ENTRY_BAD_BIOS] = gdt[GDT_ENTRY_BAD_BIOS_CACHE]; +} + +static inline void restore_bios_segments(struct bios_segment_save *save_area) +{ + save_area->gdt[GDT_ENTRY_BAD_BIOS] = save_area->save_desc_40; + loadsegment(fs, save_area->saved_fs); + loadsegment(gs, save_area->saved_gs); + put_cpu(); +} + #endif /* !__ASSEMBLY__ */ #endif Index: linux-2.6.14-zach-work/drivers/pnp/pnpbi...
2007 Apr 18
2
[PATCH 21/21] i386 Ldt context inline
...m-i386/desc.h =================================================================== --- linux-2.6.14-zach-work.orig/include/asm-i386/desc.h 2005-11-05 02:30:35.000000000 -0800 +++ linux-2.6.14-zach-work/include/asm-i386/desc.h 2005-11-05 02:32:51.000000000 -0800 @@ -271,6 +271,9 @@ static inline void restore_bios_segments put_cpu(); } +extern void destroy_ldt(mm_context_t *pc); +extern int copy_ldt(mm_context_t *new, mm_context_t *old); + #endif /* !__ASSEMBLY__ */ #endif Index: linux-2.6.14-zach-work/include/asm-i386/mmu_context.h =================================================================== --- linu...
2007 Apr 18
2
[PATCH 21/21] i386 Ldt context inline
...m-i386/desc.h =================================================================== --- linux-2.6.14-zach-work.orig/include/asm-i386/desc.h 2005-11-05 02:30:35.000000000 -0800 +++ linux-2.6.14-zach-work/include/asm-i386/desc.h 2005-11-05 02:32:51.000000000 -0800 @@ -271,6 +271,9 @@ static inline void restore_bios_segments put_cpu(); } +extern void destroy_ldt(mm_context_t *pc); +extern int copy_ldt(mm_context_t *new, mm_context_t *old); + #endif /* !__ASSEMBLY__ */ #endif Index: linux-2.6.14-zach-work/include/asm-i386/mmu_context.h =================================================================== --- linu...