Hmm... OK. In the debug info (see previous post) Start is located at 0x10000c but it boots at 0x100000, I guess that's the problem. I should examine my linker script, I remember doing something to it a few months (or weeks) ago.It doesn't boot correctly. It executes random code, which happens to have you end up in main() and make it appear that it works. For the time being.
qemu keeps restarting after grub menu
Re: qemu keeps restarting after grub menu
- Firestryke31
- Member
- Posts: 550
- Joined: Sat Nov 29, 2008 1:07 pm
- Location: Throw a dart at central Texas
- Contact:
Re: qemu keeps restarting after grub menu
What you might consider doing is changing "start" to "realStart" (or something similar) and then before the multiboot structure just have something like this:
That way the code just jumps over the multiboot structure, and GRUB will still be able to find it.
Code: Select all
global start
start:
jmp realStart
;; Multiboot structure
;; realStart which was previously start
Owner of Fawkes Software.
Wierd Al wrote: You think your Commodore 64 is really neato,
What kind of chip you got in there, a Dorito?
Re: qemu keeps restarting after grub menu
OK, it works when I rename the entry point from Start to _start. This was exactly what I've done, but perhaps I didn't recheck it after recompilation. Is this an ld limitation?