On Thu, 1 Jun 2006, Johannes Schindelin wrote:

with my qemu-0.8.0 I noticed that Linux 2.6.15 runs only with the appended
patch.

Which patch?

Brilliant me. Sorry, I forgot the patch. I don't have it handy here at home, but it's easily described: in <asm-mips/hazards.h>, it made irq_enable_hazard emit 3 NOPs just as irq_disable_hazard. I stumbeled over this as my kernel hung im sched.c:wait_for_completionn(). Turned out that schedule() wasn't called properly which went away with the NOPs.

Again, I didn't really investigate too much, but I reckoned if the NOPS are needed upon irq_disable_hazard, they're needed for irq_enable_hazard as well, since CP0 status is write modified in both situations.

--
Marius Groeger <[EMAIL PROTECTED]>
SYSGO AG                      Embedded and Real-Time Software
Voice: +49 6136 9948 0                  FAX: +49 6136 9948 10
www.sysgo.com | www.elinos.com | www.osek.de | www.pikeos.com



_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Reply via email to