search for: get_desc_bas

Displaying 6 results from an estimated 6 matches for "get_desc_bas".

Did you mean: get_desc_base
2007 Apr 18
0
[PATCH 8/21] i386 Segment protect properly
...c.h =================================================================== --- linux-2.6.14-zach-work.orig/include/asm-i386/desc.h 2005-11-04 17:45:02.000000000 -0800 +++ linux-2.6.14-zach-work/include/asm-i386/desc.h 2005-11-05 00:28:08.000000000 -0800 @@ -158,6 +158,15 @@ static inline unsigned long get_desc_bas return base; } +static inline void prepare_protected_segment(int cpu, int gdt_entry, void *base, u32 size) +{ + struct desc_struct *gdt = get_cpu_gdt_table(cpu); + + /* Forced zero-length segments to 1-byte access at unmapped page zero */ + set_base(gdt[gdt_entry], size > 0 ? (u32)base : 0)...
2007 Apr 18
0
[PATCH 8/21] i386 Segment protect properly
...c.h =================================================================== --- linux-2.6.14-zach-work.orig/include/asm-i386/desc.h 2005-11-04 17:45:02.000000000 -0800 +++ linux-2.6.14-zach-work/include/asm-i386/desc.h 2005-11-05 00:28:08.000000000 -0800 @@ -158,6 +158,15 @@ static inline unsigned long get_desc_bas return base; } +static inline void prepare_protected_segment(int cpu, int gdt_entry, void *base, u32 size) +{ + struct desc_struct *gdt = get_cpu_gdt_table(cpu); + + /* Forced zero-length segments to 1-byte access at unmapped page zero */ + set_base(gdt[gdt_entry], size > 0 ? (u32)base : 0)...
2007 Apr 18
1
[PATCH 7/21] i386 Losing fs gs to bios
...c.h =================================================================== --- linux-2.6.14-zach-work.orig/include/asm-i386/desc.h 2005-11-04 16:54:51.000000000 -0800 +++ linux-2.6.14-zach-work/include/asm-i386/desc.h 2005-11-05 00:28:10.000000000 -0800 @@ -158,6 +158,32 @@ static inline unsigned long get_desc_bas return base; } +struct bios_segment_save { + struct desc_struct save_desc_40; + struct desc_struct *gdt; + unsigned short saved_fs; + unsigned short saved_gs; +}; + +static inline void prepare_bios_segments(struct bios_segment_save *save_area) +{ + int cpu = get_cpu(); + struct desc_struct *gd...
2007 Apr 18
1
[PATCH 7/21] i386 Losing fs gs to bios
...c.h =================================================================== --- linux-2.6.14-zach-work.orig/include/asm-i386/desc.h 2005-11-04 16:54:51.000000000 -0800 +++ linux-2.6.14-zach-work/include/asm-i386/desc.h 2005-11-05 00:28:10.000000000 -0800 @@ -158,6 +158,32 @@ static inline unsigned long get_desc_bas return base; } +struct bios_segment_save { + struct desc_struct save_desc_40; + struct desc_struct *gdt; + unsigned short saved_fs; + unsigned short saved_gs; +}; + +static inline void prepare_bios_segments(struct bios_segment_save *save_area) +{ + int cpu = get_cpu(); + struct desc_struct *gd...
2007 Dec 06
51
[PATCH 0/19] desc_struct integration
Hi, this is a series of patches that unify the struct desc_struct and friends across x86_64 and i386. As usual, it provides paravirt capabilities as a side-effect for x86_64. I consider the main goal, namely, of unifying the desc_struct, an ongoing effort, being this the beginning. A lot of old code has to be touched to accomplish that. I don't consider this patch ready for inclusion.
2007 Dec 06
51
[PATCH 0/19] desc_struct integration
Hi, this is a series of patches that unify the struct desc_struct and friends across x86_64 and i386. As usual, it provides paravirt capabilities as a side-effect for x86_64. I consider the main goal, namely, of unifying the desc_struct, an ongoing effort, being this the beginning. A lot of old code has to be touched to accomplish that. I don't consider this patch ready for inclusion.