GPIOs in the userspace (for FPGA programming)

Andrés Calderón andres.calderon at
Mon Mar 15 08:58:14 EDT 2010


Simple sample project for GPIO usage in the user space:

svn --username anonymous  co
pass: <just enter>


    Andrés Calderón
    Cel:     +57 (300) 275 3666
    Email: andres.calderon at
    Gtalk:  andresfcalderon at

On Sat, Mar 13, 2010 at 10:08 AM, Bas Wijnen <wijnen at> wrote:
> On Sat, Mar 13, 2010 at 08:08:55AM -0500, Carlos Camargo wrote:
>> We've already used a similar code, but, we use 0xB0010000 as GPIO_BASE,
>> searchig on dingoo sample code, we found that  they (and you) change this
>> address to 0x001000, can you tell me why ?
> The Mips has a special meaning for the highest address bit: if it's set,
> the address will generate an address fault unless running in kernel
> mode.
> Since this program is running in user mode, it cannot map anything to an
> address above 0x80000000, because it would generate an address fault to
> access it.
> The kernel uses the unpaged (directly accessible) kseg1, which goes from
> 0xa0000000 to 0xc0000000 and is unaccessible from user mode (because the
> upper address bit is set).
> Thanks,
> Bas
> Version: GnuPG v1.4.9 (GNU/Linux)
> iEYEARECAAYFAkubqnwACgkQFShl+2J8z5WwAQCfQ3PaxzPKiH2Jxjcvs+vEgf2g
> u/wAnjBWQ9HosTiwC+e1ePhZkDrPfJan
> =RecG
> _______________________________________________
> Qi Developer Mailing List
> Mail to list (members only): developer at
> Subscribe or Unsubscribe:

More information about the discussion mailing list