Dear all,
I am using TS-7250,kernel version-2.4.26.
I am facing a problem regarding ISR handling through DIDO port for
user level application.
For ISR registering we are using request_irq() for irq no. 59
(GPIOINTR) but it is giving no. of errors and undefined reference
during compilation through cross compiler (crosstool-cygwin-gcc-
3.3.4-glibc-2.3.2.tar.bz2) after inclusion of kernel level header
files.
#include <linux/unistd.h>
#include <linux/ioport.h>
#include <linux/interrupt.h>
#include <linux/sched.h>
#include <asm/system.h>
#include <asm/io.h>
#include <asm/irq.h>
Errors are-
$ ./arm-unknown-linux-gnu-gcc -o newSerial newSerial.c
/cygdrive/c/DOCUME~1/DEEPAK~1/LOCALS~1/Temp/ccYV2K7a.o(.text+0x188):
In function
`sioEnd':
: undefined reference to `free_irq'
/cygdrive/c/DOCUME~1/DEEPAK~1/LOCALS~1/Temp/ccYV2K7a.o(.text+0x31c):
In function
`sioEnable':
: undefined reference to `save_flags'
/cygdrive/c/DOCUME~1/DEEPAK~1/LOCALS~1/Temp/ccYV2K7a.o(.text+0x320):
In function
`sioEnable':
: undefined reference to `cli'
/cygdrive/c/DOCUME~1/DEEPAK~1/LOCALS~1/Temp/ccYV2K7a.o(.text+0x33c):
In function
`sioEnable':
: undefined reference to `request_irq'
/cygdrive/c/DOCUME~1/DEEPAK~1/LOCALS~1/Temp/ccYV2K7a.o(.text+0x358):
In function
`sioEnable':
: undefined reference to `restore_flags'
/cygdrive/c/DOCUME~1/DEEPAK~1/LOCALS~1/Temp/ccYV2K7a.o(.text+0x3f8):
In function
`sioEnable':
: undefined reference to `printk'
/cygdrive/c/DOCUME~1/DEEPAK~1/LOCALS~1/Temp/ccYV2K7a.o(.text+0x400):
In function
`sioEnable':
: undefined reference to `restore_flags'
collect2: ld returned 1 exit status
Can anybody provide a right soution for this?
whether we can use request_irq()routine at user level or not,if not
then what are the other solution for interrupt handling at user
level application.
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|