Hello all,
I have an example of working code under my eyes that goes as follow:
unsigned long address=0x40000 0;
(void (*)(void)addres s)();
It's supposed to jump start a kernel loaded at that address from a small
bootloader.
But my cross compiler chokes on the second line (89) and I must say I've
tried variations of the syntax without success:
TestGpio/TestGpio.c: In function 'main':
TestGpio/TestGpio.c:89: error: expected ')' before numeric constant
TestGpio/TestGpio.c:89: error: expected expression before ')' token
It would make more sense to me as:
((void *)address)();
TestGpio/TestGpio.c: In function 'main':
TestGpio/TestGpio.c:90: error: called object '4194304u' is not a function
Maybe this one ?:
((void *)(void)address )();
TestGpio/TestGpio.c: In function 'main':
TestGpio/TestGpio.c:90: error: void value not ignored as it ought to be
--
Guillaume Dargaud
http://www.gdargaud.net/