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

[microblaze-uclinux] Low level access



Hello,

I got some experiences on low level access in Linux using X86 and MPC8272. They were "real Linux" with memory protection between kernel and user space, so I had to go through ioctl for low level access.

I'm quite aware that uCLinux does not have that kind of protection. In experience, loose something goes together with gain some thing, so I expect I'm able to have more direct access of low level.

Let's say I have a user_ip at 0x40080000, I've created a new myapp_hw in user-apps, and failed to compile a code using

// Start of code
#include <asm/io.h>
#define BASEADDR 0x40080000
. .
x = inl((volatile unsigned *) (BASEADDR));    // read-only reg
outl(1, (volatile unsigned *) (BASEADDR));    // write 1 to RWreg
..
// End of code

I had very long list of error from the compilation.

I'd really appreciate if I'd be shown how to use these low-level IO access functions.

Thanks a lot,

Duy-Ky





___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/