I writing small program to run on top the microkernel, but, I not sure how to interface the I/O space. I acquire I/O space using "L4_IoFpage()" call, but when I attempt interface it do not work. I try use pointer to I/O locations, but I not sure if this is a correct method. Can somebody tell me what is a correct method?
I just need know if I can use pointer and if not, then what is a correct method.
On Sun Feb 06, 2011 at 22:29:00 +0000, Jason Philip wrote:
I just need know if I can use pointer and if not, then what is a correct method.
For I/O ports you use assembly instructions 'in' and 'out'. For I/O memory you use *(volatile X *)pointer, with X being a data type with the width you want to read/write.
Adam
l4-hackers@os.inf.tu-dresden.de