[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] Accessing RAM from userspace



Hello,
first of all, i am totally aware that my intention is not state of the art, it's just for testing:

i am trying to access a status register of some modified uart directly from userspace. register is located at : 0xc6400000 (base) 0xc6400020 (high).
is it possible to read the data via some userspace application? it would be a lot easier to have a small testing application than always recompiling kernel with a special driver module and rebooting...
i was trying to achieve my goal by using request_memory_region() function, ioremap and readb functions but when including asm/io.h and linux/ioport.h i get compiling errors (i'm using petalinux v 0.30rc1).
has anybody some experience concerning this subject or can give me some information how to do it ?
thank you very much
chris