]> git.karo-electronics.de Git - karo-tx-linux.git/commit
metag: Traps
authorJames Hogan <james.hogan@imgtec.com>
Tue, 9 Oct 2012 09:54:43 +0000 (10:54 +0100)
committerJames Hogan <james.hogan@imgtec.com>
Fri, 8 Feb 2013 09:53:02 +0000 (09:53 +0000)
commit8593279b6b9e6dc4f894f597020788d5b971fb8b
treed7c5ef1fa0f871f906dff447c229c2265c078238
parentf15751da94dc04b365d9493c91ae70bac0cdda8e
metag: Traps

Add trap code for metag. At the lowest level Meta traps (and return from
interrupt instruction - RTI) simply swap the PC and PCX registers and
optionally toggle the interrupt status bit (ISTAT). Low level TBX code
in tbipcx.S handles the core context save, determine the TBX signal
number based on the core trigger that fired (using the TXSTATI status
register), and call TBX signal handlers (mostly in traps.c) via a vector
table.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
arch/metag/include/asm/switch.h [new file with mode: 0644]
arch/metag/include/asm/traps.h [new file with mode: 0644]
arch/metag/kernel/kick.c [new file with mode: 0644]
arch/metag/kernel/tbiunexp.S [new file with mode: 0644]
arch/metag/kernel/traps.c [new file with mode: 0644]