Commit bf86f6f9 authored by Philippe Gerum's avatar Philippe Gerum

powerpc/ipipe: intercept doorbell events in 32bit mode

parent 557ed662
......@@ -1347,6 +1347,8 @@ ee_restarts:
.previous
#ifdef CONFIG_IPIPE
_GLOBAL(__ipipe_ret_from_except_full)
REST_NVGPRS(r1)
_GLOBAL(__ipipe_ret_from_except)
cmpwi r3, 0
bne+ ret_from_except
......
......@@ -244,6 +244,10 @@ label:
#define EXC_XFER_IPIPE(n, hdlr) \
EXC_XFER_TEMPLATE(hdlr, n+1, MSR_KERNEL, NOCOPY, transfer_to_handler, \
__ipipe_ret_from_except)
#define EXC_XFER_IPIPE_FULL(n, hdlr) \
EXC_XFER_TEMPLATE(hdlr, n, MSR_KERNEL, NOCOPY, transfer_to_handler_full, \
__ipipe_ret_from_except_full)
#endif /* CONFIG_IPIPE */
#define EXC_XFER_LITE(n, hdlr) \
......
......@@ -652,7 +652,11 @@ END_FTR_SECTION_IFSET(CPU_FTR_EMB_HV)
EXCEPTION(0x2060, PERFORMANCE_MONITOR, PerformanceMonitor, \
performance_monitor_exception, EXC_XFER_STD)
#ifdef CONFIG_IPIPE
EXCEPTION(0x2070, DOORBELL, Doorbell, __ipipe_grab_doorbell, EXC_XFER_IPIPE_FULL)
#else
EXCEPTION(0x2070, DOORBELL, Doorbell, doorbell_exception, EXC_XFER_STD)
#endif
CRITICAL_EXCEPTION(0x2080, DOORBELL_CRITICAL, \
CriticalDoorbell, unknown_exception)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment