search for: _selector

Displaying 2 results from an estimated 2 matches for "_selector".

Did you mean: selector
2007 Apr 18
1
[PATCH 2/12] ldt-accessors
...=================================================================== --- linux-2.6.13.orig/include/asm-i386/desc.h 2005-08-08 13:50:20.000000000 -0700 +++ linux-2.6.13/include/asm-i386/desc.h 2005-08-08 15:19:05.000000000 -0700 @@ -14,6 +14,10 @@ #include <asm/mmu.h> +#define desc_number(_selector) ((_selector) >> 3) +#define segment_is_ldt(_selector) ((_selector) & 4) +#define LDT_DESCRIPTOR(s) (((struct desc_struct *)current->mm->context.ldt)[desc_number(s)]) + extern struct desc_struct cpu_gdt_table[GDT_ENTRIES]; DECLARE_PER_CPU(struct desc_struct, cpu_gdt_table[GDT_ENTR...
2007 Apr 18
1
[PATCH 2/12] ldt-accessors
...=================================================================== --- linux-2.6.13.orig/include/asm-i386/desc.h 2005-08-08 13:50:20.000000000 -0700 +++ linux-2.6.13/include/asm-i386/desc.h 2005-08-08 15:19:05.000000000 -0700 @@ -14,6 +14,10 @@ #include <asm/mmu.h> +#define desc_number(_selector) ((_selector) >> 3) +#define segment_is_ldt(_selector) ((_selector) & 4) +#define LDT_DESCRIPTOR(s) (((struct desc_struct *)current->mm->context.ldt)[desc_number(s)]) + extern struct desc_struct cpu_gdt_table[GDT_ENTRIES]; DECLARE_PER_CPU(struct desc_struct, cpu_gdt_table[GDT_ENTR...