Home
last modified time | relevance | path

Searched refs:desc_struct (Results 1 – 25 of 30) sorted by relevance

12

/linux-2.6.39/arch/x86/include/asm/
Dlguest.h68 struct desc_struct guest_idt[IDT_ENTRIES];
69 struct desc_struct guest_gdt[GDT_ENTRIES];
74 struct desc_struct gdt[GDT_ENTRIES];
77 struct desc_struct idt[IDT_ENTRIES];
94 ((struct desc_struct)GDT_ENTRY_INIT(0xc09b, 0, 0xfffff))
95 #define FULL_SEGMENT ((struct desc_struct)GDT_ENTRY_INIT(0xc093, 0, 0xfffff))
Ddesc.h9 static inline void fill_ldt(struct desc_struct *desc, in fill_ldt()
37 struct desc_struct gdt[GDT_ENTRIES];
41 static inline struct desc_struct *get_cpu_gdt_table(unsigned int cpu) in get_cpu_gdt_table()
104 static inline void paravirt_alloc_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_alloc_ldt()
108 static inline void paravirt_free_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_free_ldt()
121 static inline void native_write_ldt_entry(struct desc_struct *ldt, int entry, in native_write_ldt_entry()
127 static inline void native_write_gdt_entry(struct desc_struct *gdt, int entry, in native_write_gdt_entry()
139 size = sizeof(struct desc_struct); in native_write_gdt_entry()
145 static inline void pack_descriptor(struct desc_struct *desc, unsigned long base, in pack_descriptor()
172 pack_descriptor((struct desc_struct *)d, addr, size, 0x80 | type, 0); in set_tssldt_descriptor()
[all …]
Ddesc_defs.h22 struct desc_struct { struct
87 typedef struct desc_struct gate_desc;
88 typedef struct desc_struct ldt_desc;
89 typedef struct desc_struct tss_desc;
Dstackprotector.h89 struct desc_struct *gdt_table = get_cpu_gdt_table(cpu); in setup_stack_canary_segment()
90 struct desc_struct desc; in setup_stack_canary_segment()
Dparavirt_types.h50 struct desc_struct;
126 void (*write_ldt_entry)(struct desc_struct *ldt, int entrynum,
128 void (*write_gdt_entry)(struct desc_struct *,
132 void (*alloc_ldt)(struct desc_struct *ldt, unsigned entries);
133 void (*free_ldt)(struct desc_struct *ldt, unsigned entries);
Dkvm_emulate.h145 bool (*get_cached_descriptor)(struct desc_struct *desc, u32 *base3,
147 void (*set_cached_descriptor)(struct desc_struct *desc, u32 base3,
Dparavirt.h266 static inline void paravirt_alloc_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_alloc_ldt()
271 static inline void paravirt_free_ldt(struct desc_struct *ldt, unsigned entries) in paravirt_free_ldt()
317 static inline void write_ldt_entry(struct desc_struct *dt, int entry, in write_ldt_entry()
323 static inline void write_gdt_entry(struct desc_struct *dt, int entry, in write_gdt_entry()
/linux-2.6.39/drivers/lguest/
Dsegments.c108 struct desc_struct *gdt = state->guest_gdt; in setup_default_gdt_entries()
146 void copy_gdt_tls(const struct lg_cpu *cpu, struct desc_struct *gdt) in copy_gdt_tls()
159 void copy_gdt(const struct lg_cpu *cpu, struct desc_struct *gdt) in copy_gdt()
206 struct desc_struct *tls = &cpu->arch.gdt[GDT_ENTRY_TLS_MIN]; in guest_load_tls()
Dinterrupts_and_traps.c189 struct desc_struct *idt; in try_deliver_interrupt()
467 static void set_trap(struct lg_cpu *cpu, struct desc_struct *trap, in set_trap()
528 static void default_idt_entry(struct desc_struct *idt, in default_idt_entry()
531 const struct desc_struct *base) in default_idt_entry()
569 void copy_traps(const struct lg_cpu *cpu, struct desc_struct *idt, in copy_traps()
579 const struct desc_struct *gidt = &cpu->arch.idt[i]; in copy_traps()
Dlg.h167 void copy_traps(const struct lg_cpu *cpu, struct desc_struct *idt,
182 void copy_gdt(const struct lg_cpu *cpu, struct desc_struct *gdt);
183 void copy_gdt_tls(const struct lg_cpu *cpu, struct desc_struct *gdt);
/linux-2.6.39/arch/x86/kernel/
Dtls.c35 struct desc_struct *desc = &t->tls_array[idx - GDT_ENTRY_TLS_MIN]; in set_tls_desc()
106 const struct desc_struct *desc) in fill_user_desc()
164 const struct desc_struct *tls; in regset_tls_get()
Dldt.c182 unsigned long size = 5 * sizeof(struct desc_struct); in read_default_ldt()
196 struct desc_struct ldt; in write_ldt()
Ddoublefault_32.c30 tss = get_desc_base((struct desc_struct *)gdt); in doublefault_fn()
Dapm_32.c415 static struct desc_struct bad_bios_desc = GDT_ENTRY_INIT(0x4092,
585 struct desc_struct save_desc_40; in __apm_bios_call()
586 struct desc_struct *gdt; in __apm_bios_call()
661 struct desc_struct save_desc_40; in __apm_bios_call_simple()
662 struct desc_struct *gdt; in __apm_bios_call_simple()
2267 struct desc_struct *gdt; in apm_init()
Dstep.c27 struct desc_struct *desc; in convert_ip_to_linear()
Dsetup_percpu.c157 struct desc_struct gdt; in setup_percpu_segment()
Dprocess_64.c236 struct desc_struct *desc = t->thread.tls_array; in set_32bit_tls()
/linux-2.6.39/drivers/pnp/pnpbios/
Dbioscalls.c57 struct desc_struct *gdt = get_cpu_gdt_table((cpu)); \
62 static struct desc_struct bad_bios_desc = GDT_ENTRY_INIT(0x4092,
87 struct desc_struct save_desc_40; in call_pnp_bios()
480 struct desc_struct *gdt = get_cpu_gdt_table(i); in pnpbios_calls_init()
/linux-2.6.39/arch/x86/xen/
Denlighten.c321 static void xen_alloc_ldt(struct desc_struct *ldt, unsigned entries) in xen_alloc_ldt()
330 static void xen_free_ldt(struct desc_struct *ldt, unsigned entries) in xen_free_ldt()
396 if (HYPERVISOR_set_gdt(frames, size / sizeof(struct desc_struct))) in xen_load_gdt()
434 if (HYPERVISOR_set_gdt(frames, size / sizeof(struct desc_struct))) in xen_load_gdt_boot()
441 struct desc_struct *gdt = get_cpu_gdt_table(cpu); in load_TLS_descriptor()
493 static void xen_write_ldt_entry(struct desc_struct *dt, int entrynum, in xen_write_ldt_entry()
637 static void xen_write_gdt_entry(struct desc_struct *dt, int entry, in xen_write_gdt_entry()
665 static __init void xen_write_gdt_entry_boot(struct desc_struct *dt, int entry, in xen_write_gdt_entry_boot()
678 dt[entry] = *(struct desc_struct *)desc; in xen_write_gdt_entry_boot()
Dsmp.c249 struct desc_struct *gdt; in cpu_initialize_context()
/linux-2.6.39/arch/x86/math-emu/
Dfpu_system.h21 #define LDT_DESCRIPTOR(s) (((struct desc_struct *)current->mm->context.ldt)[(s) >> 3])
Dget_address.c139 struct desc_struct descriptor; in pm_address()
/linux-2.6.39/arch/x86/lguest/
Dboot.c299 struct desc_struct *idt = (void *)desc->address; in lguest_load_idt()
320 struct desc_struct *gdt = (void *)desc->address; in lguest_load_gdt()
330 static void lguest_write_gdt_entry(struct desc_struct *dt, int entrynum, in lguest_write_gdt_entry()
/linux-2.6.39/arch/x86/kvm/
Demulate.c867 static u32 desc_limit_scaled(struct desc_struct *desc) in desc_limit_scaled()
879 struct desc_struct desc; in get_descriptor_table_ptr()
894 u16 selector, struct desc_struct *desc) in read_segment_descriptor()
915 u16 selector, struct desc_struct *desc) in write_segment_descriptor()
939 struct desc_struct seg_desc; in load_segment_descriptor()
1562 struct x86_emulate_ops *ops, struct desc_struct *cs, in setup_syscalls_segments()
1563 struct desc_struct *ss) in setup_syscalls_segments()
1565 memset(cs, 0, sizeof(struct desc_struct)); in setup_syscalls_segments()
1567 memset(ss, 0, sizeof(struct desc_struct)); in setup_syscalls_segments()
1593 struct desc_struct cs, ss; in emulate_syscall()
[all …]
/linux-2.6.39/arch/x86/include/asm/xen/
Dhypercall.h504 struct desc_struct desc) in MULTI_update_descriptor()

12