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.
2:
Try using Bochs - It is by far easier for debugging.
3:
You bumped the thread after only one day. That not the right way of How To Ask Questions. If you can't bring up the patience to wait for an answer, you are statistically likely to not be able to bring up that same patience to thoroughly debug your code.
[edit]I can't read[/edit]
Last edited by Combuster on Tue Nov 06, 2007 7:23 am, edited 1 time in total.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Combuster wrote:3:
You bumped the thread after only 2 hours. That not the right way of How To Ask Questions. If you can't bring up the patience to wait for an answer, you are statistically likely to not be able to bring up that same patience to thoroughly debug your code.
ok, the bumping of the thread is ok but still he has no answer. so i will give it a try. In your code a don't see any paging setup. did you do that? Where is cmain implemented. In short: can you provide more sources and information?
@os64dev: yes, your are right. no paging setup yet. paging is handled within the kmain function, however, to call this procedure I first need to jump to the 'higherhalf' symbol or something similiar.
Perhaps I made any mistakes when transforming from Intel -> AT&T syntax?
keep in mind that a higher half kernel needs to have paging as in general there is no memory available at the higher location.
I do it slightly different my bootloader loads the kernel.elf in the lower memory, sets up the paging for the highhalf kernel. Next parse the kernel.elf and copies the segments and then executes the kernel.