Forum Discussion
Altera_Forum
Honored Contributor
16 years agoIMHO it's not really good idea to work around the ways of the OS. While this will of course work with the current NIOSnommu system, I suppose it will not work with the upcoming MMU-enabled NIOS Linux. Moreover it's not portable at all regarding yet unknown Linux updates and other processors. The "correct" way of doing this is either create a decent device driver and to access I/O use the portable functions provided by the Kernel build system or - if you want to stay in userland - use UIO. In userland Interrupts are not possible. Of course the "official" way to use interrupts is doing a decent device driver. But I was told that UIO provides means to do a kind of "user-land-interrups" (I did not look into this yet).
(I just updated the wiki page http://www.nioswiki.com/operatingsystems/u...ux/compilehello (http://www.nioswiki.com/operatingsystems/uclinux/compilehello) ) -Michael