Displaying 6 results from an estimated 6 matches for "bios_segment_sav".
Did you mean:
bios_segment_save
2007 Apr 18
1
[PATCH 7/21] i386 Losing fs gs to bios
...==============================
--- 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 *gdt = get_cpu_gdt_table(cpu);
+ save_area->g...
2007 Apr 18
1
[PATCH 7/21] i386 Losing fs gs to bios
...==============================
--- 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 *gdt = get_cpu_gdt_table(cpu);
+ save_area->g...
2007 Apr 18
0
[PATCH 8/21] i386 Segment protect properly
...pu, 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);
+ set_limit(gdt[gdt_entry], size > 0 ? size - 1 : 0);
+}
+
struct bios_segment_save {
struct desc_struct save_desc_40;
struct desc_struct *gdt;
Index: linux-2.6.14-zach-work/include/asm-i386/system.h
===================================================================
--- linux-2.6.14-zach-work.orig/include/asm-i386/system.h 2005-11-04 17:18:05.000000000 -0800
+++ linux-2.6.14...
2007 Apr 18
0
[PATCH 8/21] i386 Segment protect properly
...pu, 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);
+ set_limit(gdt[gdt_entry], size > 0 ? size - 1 : 0);
+}
+
struct bios_segment_save {
struct desc_struct save_desc_40;
struct desc_struct *gdt;
Index: linux-2.6.14-zach-work/include/asm-i386/system.h
===================================================================
--- linux-2.6.14-zach-work.orig/include/asm-i386/system.h 2005-11-04 17:18:05.000000000 -0800
+++ linux-2.6.14...
2007 Apr 18
3
[PATCH 12/21] i386 Deprecate descriptor asm
...th segments to 1-byte access at unmapped page zero */
- set_base(gdt[gdt_entry], size > 0 ? (u32)base : 0);
- set_limit(gdt[gdt_entry], size > 0 ? size - 1 : 0);
+ set_base(&gdt[gdt_entry], size > 0 ? base : 0);
+ set_limit(&gdt[gdt_entry], size > 0 ? size - 1 : 0);
}
struct bios_segment_save {
Index: linux-2.6.14-zach-work/include/asm-i386/system.h
===================================================================
--- linux-2.6.14-zach-work.orig/include/asm-i386/system.h 2005-11-04 17:45:05.000000000 -0800
+++ linux-2.6.14-zach-work/include/asm-i386/system.h 2005-11-04 17:45:31.00000...
2007 Apr 18
3
[PATCH 12/21] i386 Deprecate descriptor asm
...th segments to 1-byte access at unmapped page zero */
- set_base(gdt[gdt_entry], size > 0 ? (u32)base : 0);
- set_limit(gdt[gdt_entry], size > 0 ? size - 1 : 0);
+ set_base(&gdt[gdt_entry], size > 0 ? base : 0);
+ set_limit(&gdt[gdt_entry], size > 0 ? size - 1 : 0);
}
struct bios_segment_save {
Index: linux-2.6.14-zach-work/include/asm-i386/system.h
===================================================================
--- linux-2.6.14-zach-work.orig/include/asm-i386/system.h 2005-11-04 17:45:05.000000000 -0800
+++ linux-2.6.14-zach-work/include/asm-i386/system.h 2005-11-04 17:45:31.00000...