Altera_Forum
Honored Contributor
14 years agoI/o irq
Hello my system has two CPUs- CPU1 w/ linux and cpu2 w/o linux. I want to handle an IRQ inside CPU1 Linux generated by CPU2 when it writes to a PIO . [cpu1]---[cpu2]
Linux device drivers book says you must not read/write from I/O nor change information between userspace/kernel space inside an IRQ.
I have a char device driver and i want to call my Read function when an ISR happens.. how can i do that? I can't do a while loop when i call read from userspace since i don't know when the data is ready therefore i can't just call it from anywhere