Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104437
b: refs/heads/master
c: a8fc108
h: refs/heads/master
i:
  104435: aae5256
v: v3
  • Loading branch information
Eduardo Habkost authored and Ingo Molnar committed Jul 16, 2008
1 parent c29b47e commit a0fc17e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 45eb0d889862c813dfc98c95549c25acbfc99ab8
refs/heads/master: a8fc1089e49caa5dca346dfacb5c84abf9a22a0c
11 changes: 11 additions & 0 deletions trunk/arch/x86/xen/enlighten.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,14 @@ static void xen_load_tls(struct thread_struct *t, unsigned int cpu)
loadsegment(gs, 0);
}

#ifdef CONFIG_X86_64
static void xen_load_gs_index(unsigned int idx)
{
if (HYPERVISOR_set_segment_base(SEGBASE_GS_USER_SEL, idx))
BUG();
}
#endif

static void xen_write_ldt_entry(struct desc_struct *dt, int entrynum,
const void *ptr)
{
Expand Down Expand Up @@ -1063,6 +1071,9 @@ static const struct pv_cpu_ops xen_cpu_ops __initdata = {
.load_gdt = xen_load_gdt,
.load_idt = xen_load_idt,
.load_tls = xen_load_tls,
#ifdef CONFIG_X86_64
.load_gs_index = xen_load_gs_index,
#endif

.store_gdt = native_store_gdt,
.store_idt = native_store_idt,
Expand Down

0 comments on commit a0fc17e

Please sign in to comment.