Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112671
b: refs/heads/master
c: 511d9d3
h: refs/heads/master
i:
  112669: 94ce95f
  112667: 71fc2c9
  112663: a20ffeb
  112655: e233710
  112639: 6447e5a
v: v3
  • Loading branch information
Suresh Siddha authored and Ingo Molnar committed Jul 18, 2008
1 parent 0e15344 commit 7f8936f
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9a8f0e6b5dfe3b4f330fc82b16a4000f5688fce8
refs/heads/master: 511d9d34183662aada3890883e860b151d707e22
35 changes: 32 additions & 3 deletions trunk/arch/x86/lguest/boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -791,6 +791,37 @@ static u32 lguest_apic_read(u32 reg)
{
return 0;
}

static u64 lguest_apic_icr_read(void)
{
return 0;
}

static void lguest_apic_icr_write(u32 low, u32 id)
{
/* Warn to see if there's any stray references */
WARN_ON(1);
}

static void lguest_apic_wait_icr_idle(void)
{
return;
}

static u32 lguest_apic_safe_wait_icr_idle(void)
{
return 0;
}

static struct apic_ops lguest_basic_apic_ops = {
.read = lguest_apic_read,
.write = lguest_apic_write,
.write_atomic = lguest_apic_write,
.icr_read = lguest_apic_icr_read,
.icr_write = lguest_apic_icr_write,
.wait_icr_idle = lguest_apic_wait_icr_idle,
.safe_wait_icr_idle = lguest_apic_safe_wait_icr_idle,
};
#endif

/* STOP! Until an interrupt comes in. */
Expand Down Expand Up @@ -990,9 +1021,7 @@ __init void lguest_init(void)

#ifdef CONFIG_X86_LOCAL_APIC
/* apic read/write intercepts */
pv_apic_ops.apic_write = lguest_apic_write;
pv_apic_ops.apic_write_atomic = lguest_apic_write;
pv_apic_ops.apic_read = lguest_apic_read;
apic_ops = &lguest_basic_apic_ops;
#endif

/* time operations */
Expand Down

0 comments on commit 7f8936f

Please sign in to comment.