It seems the problem is introduced between CVS revisions 1.3 and 1.4 of
apmbios.S in Bochs.

If you boot Linux with apm=off the problem also goes away.

The diff between these versions is really small:

RCS file: /cvsroot/bochs/bochs/bios/apmbios.S,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- apmbios.S   24 Oct 2005 11:11:36 -0000      1.3
+++ apmbios.S   26 Dec 2005 10:35:51 -0000      1.4
@@ -217,7 +217,15 @@
 ; APM interface disconnect
 APMSYM(04):
   cmp al, #0x04
+  jne APMSYM(05)
+  jmp APMSYM(ok)
+
+;-----------------
+; APM cpu idle
+APMSYM(05):
+  cmp al, #0x05
   jne APMSYM(07)
+  hlt
   jmp APMSYM(ok)

 ;-----------------

If I remove the 'hlt' the IDE detection does not hang anymore.

The CVS commit message says:
- APM function 0x05 (cpu idle) implemented (tested with Win98)

Obviously, this does not work with the 2.6 Linux kernel Red Hat provides
(I have not tested whether other Linux kernels are also affected).

I am still not sure whether Qemu is at fault or whether Bochs should be
changed, though.

-- 
Frodo Looijaard <[EMAIL PROTECTED]> (See http://frodo.looijaard.name/)
Defenestration n. (formal or joc.):
  The act of removing Windows from your computer in disgust, usually followed
  by the installation of Linux or some other Unix-like operating system.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to