[FE training-materials-updates] Fixes for Linux 3.6
Michael Opdenacker
michael.opdenacker at free-electrons.com
Thu Oct 4 14:24:39 CEST 2012
Repository : git://git.free-electrons.com/training-materials.git
On branch : master
Link : http://git.free-electrons.com/training-materials/commit/?id=fcb70a6d9332609ab8f9e682eb10142103b72415
>---------------------------------------------------------------
commit fcb70a6d9332609ab8f9e682eb10142103b72415
Author: Michael Opdenacker <michael.opdenacker at free-electrons.com>
Date: Thu Oct 4 14:24:48 2012 +0200
Fixes for Linux 3.6
>---------------------------------------------------------------
fcb70a6d9332609ab8f9e682eb10142103b72415
.../kernel-serial-interrupt.tex | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/labs/kernel-serial-interrupt/kernel-serial-interrupt.tex b/labs/kernel-serial-interrupt/kernel-serial-interrupt.tex
index 2ebb2b1..b1a0a62 100644
--- a/labs/kernel-serial-interrupt/kernel-serial-interrupt.tex
+++ b/labs/kernel-serial-interrupt/kernel-serial-interrupt.tex
@@ -22,17 +22,17 @@ This lab is a continuation of the {\em Output-only character driver
NFS and mount \code{/home/<user>/felabs/linux/character/nfsroot/} as the root
filesystem.
-For demonstration purpose we need to ensure that the tick system will
+For demonstration purposes, we need to ensure that the tick system will
use the shared IRQ. So configure your kernel and {\em disable} TC
-Block Clocksource (\code{CONFIG_ATMEL_TCB_CLKSRC_BLOCK}). Then compile
+Block Clocksource (\code{CONFIG_ATMEL_TCB_CLKSRC}). Then compile
and boot your new kernel.
\section{Register the handler}
First, declare an interrupt handler function. Then, in the module
initialization function, register this handler to IRQ number
-\code{AT91_ID_SYS}. Note that this IRQ is shared, so the appropriate flags
-must be passed at registration time.
+\code{NR_IRQS_LEGACY + AT91_ID_SYS}. Note that this IRQ is shared,
+so the appropriate flags must be passed at registration time.
Then, in the interrupt handler, just print a message and
return \code{IRQ_NONE} (to tell the kernel that we haven't handled
More information about the training-materials-updates
mailing list