|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] [IA64] Bug fix: do not crash if no FPSWA.
# HG changeset patch
# User awilliam@xxxxxxxxxxx
# Node ID 685bf9b75eb13114081a9bb88087e65ca7123883
# Parent 9fed76231248e5416dd71c55f9a4bfd690868043
[IA64] Bug fix: do not crash if no FPSWA.
Signed-off-by: Tristan Gingold <tristan.gingold@xxxxxxxx>
---
xen/arch/ia64/xen/dom_fw.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff -r 9fed76231248 -r 685bf9b75eb1 xen/arch/ia64/xen/dom_fw.c
--- a/xen/arch/ia64/xen/dom_fw.c Mon Sep 04 14:45:20 2006 -0600
+++ b/xen/arch/ia64/xen/dom_fw.c Mon Sep 04 14:48:03 2006 -0600
@@ -816,9 +816,12 @@ dom_fw_init(struct domain *d,
FW_HYPERCALL_SAL_RETURN, 0, hypercalls_imva);
/* Fill in the FPSWA interface: */
- tables->fpswa_inf.revision = fpswa_interface->revision;
- dom_fpswa_hypercall_patch(d, hypercalls_imva);
- tables->fpswa_inf.fpswa = (void *)FW_HYPERCALL_FPSWA_ENTRY_PADDR;
+ if (fpswa_interface) {
+ tables->fpswa_inf.revision = fpswa_interface->revision;
+ dom_fpswa_hypercall_patch(d, hypercalls_imva);
+ tables->fpswa_inf.fpswa =
+ (void *)FW_HYPERCALL_FPSWA_ENTRY_PADDR;
+ }
i = 0; /* Used by MAKE_MD */
@@ -867,7 +870,8 @@ dom_fw_init(struct domain *d,
bp->console_info.num_rows = 25;
bp->console_info.orig_x = 0;
bp->console_info.orig_y = 24;
- bp->fpswa = FW_FIELD_MPA(fpswa_inf);
+ if (fpswa_interface)
+ bp->fpswa = FW_FIELD_MPA(fpswa_inf);
}
void dom_fw_setup(struct domain *d, unsigned long bp_mpa, unsigned long maxmem)
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] [IA64] Bug fix: do not crash if no FPSWA.,
Xen patchbot-unstable <=
|
|
|
|
|