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: NJames Hogan <james.hogan@imgtec.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Showing
arch/metag/include/asm/switch.h
0 → 100644
arch/metag/include/asm/traps.h
0 → 100644
arch/metag/kernel/kick.c
0 → 100644
arch/metag/kernel/tbiunexp.S
0 → 100644
arch/metag/kernel/traps.c
0 → 100644
此差异已折叠。
想要评论请 注册 或 登录