Trouble with bochs

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.
Post Reply
beyondsociety

Trouble with bochs

Post 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.
AR

Re:Trouble with bochs

Post by AR »

The running in bogus memory usually means that EIP is outside of physical memory.
distantvoices
Member
Member
Posts: 1600
Joined: Wed Oct 18, 2006 11:59 am
Location: Vienna/Austria
Contact:

Re:Trouble with bochs

Post by distantvoices »

are you attempting to use paging? Maybe no valid pagedir loaded?
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image
beyondsociety

Re:Trouble with bochs

Post 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.
AR

Re:Trouble with bochs

Post by AR »

Well, if it's in bogus memory, maybe it executed rubbish before it which it thought was in/out operations....
srg

Re:Trouble with bochs

Post 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
distantvoices
Member
Member
Posts: 1600
Joined: Wed Oct 18, 2006 11:59 am
Location: Vienna/Austria
Contact:

Re:Trouble with bochs

Post 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.
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image
Post Reply