[Solved] Linking c file without including it causes reboo...

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
User avatar
iansjack
Member
Member
Posts: 4706
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Linking c file without including it causes reboot cycle.

Post by iansjack »

Paging can be quite tricky, especially when you are trying to get to grips with the concept. I think you'll find gdb a great help here; put in a few judicious halt instructions (an endless loop will do the job) and you can then inspect the page tables in memory. Also, have a look at the qemu documentation on its built-in monitor, which also has a number of useful commands. (For example, "info mem" will show you the memory regions that are mapped.)
Post Reply