avr32: Fix lockup after Java stack underflow in user mode
authorHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Wed, 20 Aug 2008 13:46:24 +0000 (15:46 +0200)
committerHaavard Skinnemoen <haavard.skinnemoen@atmel.com>
Mon, 1 Sep 2008 11:04:04 +0000 (13:04 +0200)
commit9e3f544d792fd2ff7e31ca4a72e5194f1491ed14
tree706d3f133b930e0085df63fcc171f4f49c9cd1db
parentbef69ea0dcce574a425feb0a5aa4c63dd108b9a6
avr32: Fix lockup after Java stack underflow in user mode

When using the Java Extension Module hardware, a Java stack underflow or
overflow trap may cause the system to enter an infinite exception loop.
Although there's no kernel support for the Java hardware yet, we need to
be able to recover from this situation and keep the system running.

This patch adds code to detect and fixup this situation in the critical
exception handler and terminate the faulting process. We may have to
rethink how to handle this more gracefully when the necessary kernel
support for hardware-accelerated Java is added.

Reported-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
arch/avr32/kernel/asm-offsets.c
arch/avr32/kernel/entry-avr32b.S