All about computers >> My computer keeps rebooting - OSDEV people only
Posted by eosp on 08:31:00 10-06-2003
I am making an os that's a "Hello World" in asm and c that runs in grub. It basically prints a message when called, then reboots. I've tried to lock the pc up with "hang: jmp hang", I've tried "cli...hlt", I've tried locking it up with int 16h, ah=00h, nothing works. It just keeps rebooting! I want it to stop! [addsig]
Posted by sacah on 17:45:00 10-16-2003
Well, I'm no OSDEV person, but, like
hang:
jmp hang

try adding 'jmp $' at the end of your main:

Thats what I use to use at the end of my os/loader thingys, while it was a long time ago and my minds rusty.
(-;