OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 3:43 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: PCNet driver problem
PostPosted: Mon Aug 13, 2018 7:22 am 
Offline
Member
Member

Joined: Sun Jun 05, 2005 11:00 pm
Posts: 233
Now I'm back on trying to get PCNet to work properly, but I´m having some trouble...

example: when drivers starts, everything works ok! but when I'm trying to do some realmode int like int 0x10, I got invalid opcode exception!
then I disable the PcNet driver and restart my kernel.. and do the same thing example. int 0x10, at this case works properly, works good.

I'm using virtualbox. the ethernet card is using IRQ 9.
anyone knows what can I do?

thx in advance!


Top
 Profile  
 
 Post subject: Re: PCNet driver problem
PostPosted: Tue Aug 14, 2018 5:05 pm 
Offline
Member
Member
User avatar

Joined: Sun Sep 19, 2010 10:05 pm
Posts: 1074
It's entirely possible that there could be a bug in the VirtualBox BIOS in that interrupt handler.

Their code is open source, so they may have the BIOS source available as well. You may be able to look through it and find the issue.

Which INT 0x10 function are you calling?

I assume your entire OS runs in Real Mode, and you aren't using any 32-bit to 16-bit transitions.

_________________
Project: OZone
Source: GitHub
Current Task: LIB/OBJ file support
"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott


Top
 Profile  
 
 Post subject: Re: PCNet driver problem
PostPosted: Wed Aug 15, 2018 5:59 am 
Offline
Member
Member

Joined: Sun Jun 05, 2005 11:00 pm
Posts: 233
I'm trying to do something like int 13h for example!

without pcnet driver, that int works greate, but when I start the driver, all my vm86 ints does'nt work!


Top
 Profile  
 
 Post subject: Re: PCNet driver problem
PostPosted: Wed Aug 15, 2018 6:16 am 
Offline
Member
Member
User avatar

Joined: Sun Sep 19, 2010 10:05 pm
Posts: 1074
If you are using vm86, then it’s going to be a lot harder to pinpoint the issue without seeing the actual code.

I would recommend stepping through your pcnet driver in Bochs or QEMU. Also, you could try commenting out your entire driver, and uncommenting one line at a time until things stop working.

_________________
Project: OZone
Source: GitHub
Current Task: LIB/OBJ file support
"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott


Top
 Profile  
 
 Post subject: Re: PCNet driver problem
PostPosted: Wed Aug 15, 2018 1:15 pm 
Offline
Member
Member

Joined: Sun Jun 05, 2005 11:00 pm
Posts: 233
tnx so much...
I'll try out!


Top
 Profile  
 
 Post subject: Re: PCNet driver problem
PostPosted: Sun Aug 19, 2018 6:09 pm 
Offline
Member
Member

Joined: Sun Jun 05, 2005 11:00 pm
Posts: 233
Problem solved!
the problem was with netbuf from tcp/udp protocol, I was allocating in wrong way that buffer.
thx a log guys.

Now my two ethernet drivers AMD PC-NET and Intel Pro/1000 is working ...

thx a lot.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 72 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group