Page 1 of 1

PCNet driver problem

Posted: Mon Aug 13, 2018 7:22 am
by digo_rp
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!

Re: PCNet driver problem

Posted: Tue Aug 14, 2018 5:05 pm
by SpyderTL
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.

Re: PCNet driver problem

Posted: Wed Aug 15, 2018 5:59 am
by digo_rp
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!

Re: PCNet driver problem

Posted: Wed Aug 15, 2018 6:16 am
by SpyderTL
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.

Re: PCNet driver problem

Posted: Wed Aug 15, 2018 1:15 pm
by digo_rp
tnx so much...
I'll try out!

Re: PCNet driver problem

Posted: Sun Aug 19, 2018 6:09 pm
by digo_rp
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.