reading pci cfg_data register on MPC8544

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

reading pci cfg_data register on MPC8544

404件の閲覧回数
tonykleman
Contributor I

Hi,

What is the method in assembly for reading a PCI register out to memory?   I load the address of the PCI register CFG_DATA into GPR R1 and then try to use lwz to do an indirect read of that address.

lis r1,0xF000

ori r1,r1,0x8004          # the address of CFG_DATA into r1

lwz r3,0(R1)               # the value of CFG_DATA copied into r3

But r3 never gets updated with this code. 

0 件の賞賛
1 返信

307件の閲覧回数
tonykleman
Contributor I

never mind, found the typo

0 件の賞賛