Hi,
I am getting the following error for a request_RTirq command. can
someone explain the reason. The /proc/ksyms has the following symbols listed
......
0010e470 request_RTirq_R1cea5a34
0010e534 free_RTirq_R7f5c1a4d
.......
The error message is
==============error message=============================
trial.o: In function `init_module':
trial.o(.text+0x4e): undefined reference to `request_RTirq_R1cea5a34'
trial.o: In function `cleanup_module':
trial.o(.text+0x90): undefined reference to `free_RTirq_R7f5c1a4d'
make: *** [trial] Error 1
============= RT-Linux version ====================
Using RT_Linux 1.1 on Linux 2.0.36
===========the program==========================
#define MODULE
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/version.h>
#include <asm/io.h>
#include <asm/rt_irq.h>
#include <linux/cons.h>
#include <rtl_sync.h>
#define LPT 0x3bc
#define LPTS 0x3bd
#define LPTC 0x3be
int i;
void intr_handler(void) {
outb_p(0x01, LPT);
// Any width for the response.
for(i=0;i<10000;i++);
outb_p(0x03, LPT);
int init_module(void) {
// 5 Volts for irq through a pull up resistor.
outb_p(inb_p(LPT)|0x01,LPT);
// Install interrupt handler
request_RTirq(7, intr_handler);
// irq7 setup: set the mask and read pending irq
outb_p(inb_p(0x21)&(~0x80),0x21);
outb_p(0x20,0x20);
// Enable irq7
outb_p(inb_p(LPTC)|0x10,LPTC);
return 0;
void cleanup_module(void) {
// Disable irq7
outb_p(inb_p(LPTC)&(~0x10),LPTC);
// Uninstall interrupt handler
free_RTirq(7);
}
////////////// end of program
Thanks in anticipation,
Surya.
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/