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!
PCNet driver problem
Re: PCNet driver problem
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.
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
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
Re: PCNet driver problem
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!
without pcnet driver, that int works greate, but when I start the driver, all my vm86 ints does'nt work!
Re: PCNet driver problem
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.
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
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
Re: PCNet driver problem
tnx so much...
I'll try out!
I'll try out!
Re: PCNet driver problem
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.
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.