Page 1 of 1

Trouble with bochs

Posted: Fri Apr 22, 2005 3:29 pm
by beyondsociety
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.

Code: Select all

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.

Code: Select all

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
FYI, Im using bochs-2.1.1.

Re:Trouble with bochs

Posted: Sat Apr 23, 2005 12:01 am
by AR
The running in bogus memory usually means that EIP is outside of physical memory.

Re:Trouble with bochs

Posted: Sat Apr 23, 2005 5:28 am
by distantvoices
are you attempting to use paging? Maybe no valid pagedir loaded?

Re:Trouble with bochs

Posted: Sat Apr 23, 2005 5:04 pm
by beyondsociety
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.

Re:Trouble with bochs

Posted: Sat Apr 23, 2005 5:30 pm
by AR
Well, if it's in bogus memory, maybe it executed rubbish before it which it thought was in/out operations....

Re:Trouble with bochs

Posted: Sun Apr 24, 2005 2:34 pm
by srg
Well this:
Bochs has generated errors and will now be closed by windows. You will need to restart the program. An error log has been created.
This is bochs the program doing something naughty and being caught by windows. I have had this before when I get the operating in bogus memory error.

srg

Re:Trouble with bochs

Posted: Sun Apr 24, 2005 11:58 pm
by distantvoices
by the way,
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.