|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [qemu-xen-unstable] pc.c: Fix compiler warning in load_l
commit aa6e6f0f2299c6f4921f26361cd345fa5dddaba2
Author: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Date: Wed Nov 3 12:45:24 2010 +0000
pc.c: Fix compiler warning in load_linux
fix compile warning.
/usr/src/packages/BUILD/xen-unstable.hg-4.1.21864/tools/ioemu-dir/hw/pc.c:
In function 'load_linux':
/usr/src/packages/BUILD/xen-unstable.hg-4.1.21864/tools/ioemu-dir/hw/pc.c:713:39:
warning: operation on 'seg[4]' may be undefined
Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
---
hw/pc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/hw/pc.c b/hw/pc.c
index 7aa91f2..3e33694 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -714,7 +714,7 @@ static void load_linux(uint8_t *option_rom,
/* generate bootsector to set up the initial register state */
real_seg = real_addr >> 4;
- seg[0] = seg[2] = seg[3] = seg[4] = seg[4] = real_seg;
+ seg[0] = seg[2] = seg[3] = seg[4] = real_seg;
seg[1] = real_seg+0x20; /* CS */
memset(gpr, 0, sizeof gpr);
gpr[4] = cmdline_addr-real_addr-16; /* SP (-16 is paranoia) */
--
generated by git-patchbot for /home/xen/git/qemu-xen-unstable.git
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [qemu-xen-unstable] pc.c: Fix compiler warning in load_linux,
Ian Jackson <=
|
|
|
|
|