PCI scan - what's up with this bits 0 and 1 of reg number?

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.
dak91
Member
Member
Posts: 43
Joined: Thu Mar 12, 2009 3:27 am
Location: Sardegna (IT)

Re: PCI scan - what's up with this bits 0 and 1 of reg number?

Post by dak91 »

fronty wrote:
dak91 wrote:can you write me code of inportl and outportl? I've some mistakes
No.
nobody asked you anything, fronty
jal
Member
Member
Posts: 1385
Joined: Wed Oct 31, 2007 9:09 am

Re: PCI scan - what's up with this bits 0 and 1 of reg number?

Post by jal »

dak91 wrote:
fronty wrote:
dak91 wrote:can you write me code of inportl and outportl? I've some mistakes
No.
nobody asked you anything, fronty
You didn't specify who the "you" was in your question. Also, it is very rude to ask for code, especially for people to write you code. Also, you tried to hijack the thread, which is about PCI. Also, you can easily google a myriad of inport/outport implementations. Also, you do not even show your code, so people can comment on it. Go hide under a rock now.


JAL
dak91
Member
Member
Posts: 43
Joined: Thu Mar 12, 2009 3:27 am
Location: Sardegna (IT)

Re: PCI scan - what's up with this bits 0 and 1 of reg number?

Post by dak91 »

jal wrote:
You didn't specify who the "you" was in your question. Also, it is very rude to ask for code, especially for people to write you code. Also, you tried to hijack the thread, which is about PCI. Also, you can easily google a myriad of inport/outport implementations. Also, you do not even show your code, so people can comment on it. Go hide under a rock now.


JAL
I know, but when I use 64bit variable with "out" and "in" assembly istructions gcc returns errorr. Around the web I found only in and out C functions for 8, 16 and 32 bit. but you're right, this question is OT (even if ask to post one line of code imo isn't a crime)
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

Re: PCI scan - what's up with this bits 0 and 1 of reg number?

Post by pcmattman »

I know, but when I use 64bit variable with "out" and "in" assembly istructions gcc returns errorr.
Read about the "IN" instruction in Volume 2A of the Intel Manuals (page 3-495, to save you the trouble). Also try page 4-17 of Volume 2B, which describes the "OUT" instruction. Then you'll realise it's probably best to do your research before you post if you want to be taken seriously.
Locked