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.
After taking a long break, I have finally gotten around to working on my OS again. I converted all my nasm bootloader code to fasm and when I tested it in bochs, I got an error prompt.
Bochs has generated errors and will now be closed by windows. You will need to restart the program. An error log has been created.
When I open the bochout.txt, I get no memory dump of the code, just the message below. I was wondering if anybody knows what this means as searching on google didnt produce anything.
00002444818e[DEV ] write to port 0x03f3 with len 4 ignored
00002444819e[DEV ] write to port 0x03f3 with len 4 ignored
00002444821e[FDD ] io_write ignored: 0x03f3 = 0x00
00002444823e[DEV ] write to port 0x03f3 with len 4 ignored
00002444833e[DEV ] write to port 0x03f3 with len 4 ignored
00002444911p[CPU ] >>PANIC<< prefetch: running in bogus memory
The running in bogus memory usually means that EIP is outside of physical memory.
I know that, I was wondering what the "write to port" stuff meant.
are you attempting to use paging? Maybe no valid pagedir loaded?
I havent set paging up yet, Im just trying to get it to compile and link together. Im just having my kernel clear the screen and print a welcome message.
00002444818e[DEV ] write to port 0x03f3 with len 4 ignored
00002444819e[DEV ] write to port 0x03f3 with len 4 ignored
00002444821e[FDD ] io_write ignored: 0x03f3 = 0x00
00002444823e[DEV ] write to port 0x03f3 with len 4 ignored
00002444833e[DEV ] write to port 0x03f3 with len 4 ignored
you get this when you write a DWORD(4 bytes) to a port which is a WORD(2 bytes) wide.
Bochs complains about io output, if the width of the data written to the port doesn't fit in the width of the port itself.