]> git.baikalelectronics.ru Git - kernel.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>
Sat, 2 Mar 2013 20:09:45 +0000 (20:09 +0000)
commit64b818abc2196727f8d0bddcac6d44b661e794eb
tree521a0b0ddcab5176a1998d0b7b9faefde6e3f0ae
parent252a8e4a47a40b1c052363ffc01dea412857a898
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]