Skip to contentSkip to conversation

O/2 Warp 4 and eComStation

Qemu-devel ecs user 3 participants 3 messages Jun 17, 2005

lore
Share & tools
lore

ecs user

author
#0 lore raw
Quoted 7 lines

From: Natalia Portillo <[email protected]> Try to boot it with less than 64Mb (48Mb). OS/2 hangs when 64Mb are informed in the standard way they seems to check that in some strange way. No matter it is 4.0, 4.5, eCS or whatever.

It does seem like a memory issue.

If I just keep rebooting everytime it hangs, I can finally get a complete boot. Sometimes I have to reboot 10-15 times. Once it does boot to the desktop OS/2 Warp4 runs very nicely. No hangs once completely booted and very responsive (on 2GHz machine). So you see it acts more like flaky hardware or flaky driver (in the emulation).

Need help.

Quoted 10 lines
Quoted 10 lines

--- ecs user <[email protected]> wrote:

There are problems booting Warp4 and eComtation. System hangs while loading certain drivers (IDE, DASD, Diskette). By repeatedly booting, sometimes can get a successful boot. Might be some type of timing issue.

I have some small test images that demonstrate the problem. Are there any developers here familiar

with

Quoted 3 lines
Quoted 3 lines

OS/2 that could look at this issue?

Is there a place I can upload the images (15MB)?

____________________________________________________
Yahoo! Sports
Rekindle the Rivalries. Sign up for Fantasy Football
http://football.fantasysports.yahoo.com

#1 lore raw
Quoted 20 lines · ecs user
Quoted 9 lines

From: Natalia Portillo <[email protected]> Try to boot it with less than 64Mb (48Mb). OS/2 hangs when 64Mb are informed in the standard way they seems to check that in some strange way. No matter it is 4.0, 4.5, eCS or whatever.

It does seem like a memory issue.

If I just keep rebooting everytime it hangs, I can finally get a complete boot. Sometimes I have to reboot 10-15 times. Once it does boot to the desktop OS/2 Warp4 runs very nicely. No hangs once completely booted and very responsive (on 2GHz machine). So you see it acts more like flaky hardware or flaky driver (in the emulation).

Quoted 2 lines

Need help.

Well you might start Qemu with option -d in_asm to see whats
happening. Then compare log's (the one that freezes and the one that works ok) to see whats the difference. That way you might find out where the problem is. And you might also take a look at BOCHS emulator page because Dimitri Froloff made few fixes to boot OS/2 under it(some of these were memory handling related fixes). He made these fixes lately.

Tero Kaarlela

#2 lore raw
In reply to ecs user
Quoted 16 lines · ecs user
Quoted 5 lines

From: Natalia Portillo <[email protected]> Try to boot it with less than 64Mb (48Mb). OS/2 hangs when 64Mb are informed in the standard way they seems to check that in some strange way. No matter it is 4.0, 4.5, eCS or whatever.

It does seem like a memory issue.

If I just keep rebooting everytime it hangs, I can finally get a complete boot. Sometimes I have to reboot 10-15 times. Once it does boot to the desktop OS/2 Warp4 runs very nicely. No hangs once completely booted and very responsive (on 2GHz machine). So you see it acts more like flaky hardware or flaky driver (in the emulation).

Quoted 1 line

Need help.

I looked into this problem about a year ago. As I recall, the problem was the PIC generating spurious interrupts. Specifically, if a pending interrupt is masked on the PIC, the interrupt request to the CPU is not reset.

I sent a patch to this list that solved the problem for me (though it was a hack). Unfortunately I can no longer reproduce the problem (patch or no patch), but you might still want to try the attached patch. YMMV.

Hampa

hw/i8259.c +13 -8
diff -Nur qemu-cvs/hw/i8259.c qemu-local/hw/i8259.c
@@ -79,20 +79,21 @@
                 s->irr |= mask;
             s->last_irr |= mask;
         } else {
+            s->irr &= ~mask;
             s->last_irr &= ~mask;
         }
     }
 }
 
 /* return the highest priority found in mask (highest = smallest
-   number). Return 8 if no irq */
+   number). Return 16 if no irq */
 static inline int get_priority(PicState *s, int mask)
 {
     int priority;
     if (mask == 0)
-        return 8;
-    priority = 0;
-    while ((mask & (1 << ((priority + s->priority_add) & 7))) == 0)
+        return 16;
+    priority = s->priority_add;
+    while ((mask & (1 << (priority & 7))) == 0)
         priority++;
     return priority;
 }
@@ -104,7 +105,7 @@
 
     mask = s->irr & ~s->imr;
     priority = get_priority(s, mask);
-    if (priority == 8)
+    if (priority == 16)
         return -1;
     /* compute current priority. If special fully nested mode on the
        master, the IRQ coming from the slave is not taken into account
@@ -115,7 +116,7 @@
     cur_priority = get_priority(s, mask);
     if (priority < cur_priority) {
         /* higher priority found: an irq should be generated */
-        return (priority + s->priority_add) & 7;
+        return priority & 7;
     } else {
         return -1;
     }
@@ -132,8 +133,10 @@
     if (irq2 >= 0) {
         /* if irq request by slave pic, signal master PIC */
         pic_set_irq1(&pics[0], 2, 1);
+    } else {
         pic_set_irq1(&pics[0], 2, 0);
     }
+
     /* look at requested irq */
     irq = pic_get_irq(&pics[0]);
     if (irq >= 0) {
@@ -149,6 +152,8 @@
         printf("pic: cpu_interrupt\n");
 #endif
         cpu_interrupt(cpu_single_env, CPU_INTERRUPT_HARD);
+    } else {
+        cpu_reset_interrupt(cpu_single_env, CPU_INTERRUPT_HARD);
     }
 }
 
@@ -297,8 +304,8 @@
             case 1: /* end of interrupt */
             case 5:
                 priority = get_priority(s, s->isr);
-                if (priority != 8) {
-                    irq = (priority + s->priority_add) & 7;
+                if (priority != 16) {
+                    irq = priority & 7;
                     s->isr &= ~(1 << irq);
                     if (cmd == 5)
                         s->priority_add = (irq + 1) & 7;