Page 1 of 1

Bochs: "CPU_LOOP 1" message

Posted: Mon Apr 10, 2006 4:55 pm
by Senaus
Does anybody know what "CPU_LOOP 1" means in Bochs? I made some changes to my scheduler and now Qemu hangs, and Bochs spews out "CPU_LOOP 1" >:(

Any ideas?

Re:Bochs: "CPU_LOOP 1" message

Posted: Mon Apr 10, 2006 5:26 pm
by paulbarker
http://groups.google.com/group/alt.os.development/browse_frm/thread/8aff93d36b4b24c4

If the link doesn't work for you, go on google groups and search the archive of alt.os.development for "bochs CPU_LOOP 1".

Please, google and check the archives of a few newsgroups and forums before posting.

I even posted to that thread, and I didn't remember I had done :)

Re:Bochs: "CPU_LOOP 1" message

Posted: Thu Apr 13, 2006 6:10 am
by hendric
"CPU_LOOP 1" means your CPU restart again and again.There may be reasons as follow.
1)You may refer to an invalid TSS selector within LTR instruction.
2)A triple fault may occur.There are many reasons to cause the problem.Say, set up system registers incorrectly, invalid system desciptor and etc.

Re:Bochs: "CPU_LOOP 1" message

Posted: Thu Apr 13, 2006 7:40 am
by Senaus
Thanks guys, now I know it was a triple fault, I have fixed the problem. Turns out the NULL thread wasn't being set up correctly :P

So whenever a triple fault occurs, Qemu just hangs? Seems a bit poor to me...

Re:Bochs: "CPU_LOOP 1" message

Posted: Thu Apr 13, 2006 10:13 am
by paulbarker
I've had these problems before, bochs tends to die horribly instead of reporting an error when I try to execute data. I'd guess the problems are very hard to pin down since the input which causes the crash is incredibly complicated (ie. a full program).

To be honest, as long as bochs runs correct code correctly, I don't quite care if it has a fit when trying to run incorrect code.