search for: at91_reg

Displaying 1 result from an estimated 1 matches for "at91_reg".

2010 Apr 10
1
[LLVMdev] Defining a pointer to a specific memory address?
...are a great many hardware registers mapped into the address space. I tried making a little sample C program to see how llvm-gcc generated the access, and it used this: volatile store i32 -1430532899, i32* inttoptr (i64 4294963200 to i32*), align 4 for this C code: typedef volatile unsigned int AT91_REG;// Hardware register definition #define AT91_CAST(a) (a) #define AT91C_BASE_SYS (AT91_CAST(AT91_REG*) 0xFFFFF000) // (SYS) Base Address void main() { *AT91C_BASE_SYS = 0xaabbccdd; } Is there any way to do the equivalent with a global? Thanks, Rick