Browse Source

ARM: 8450/1: v7-M: Use ret_to_user_from_irq in PendSV handler

The PendSV handler calls v7m_exception_entry which
disables IRQs. Therefore, since IRQs are already disabled,
the PendSV handler can return using ret_to_user_from_irq.

Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Ezequiel Garcia 9 years ago
parent
commit
440ee365d3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/arm/kernel/entry-v7m.S

+ 1 - 1
arch/arm/kernel/entry-v7m.S

@@ -88,7 +88,7 @@ __pendsv_entry:
 	@ execute the pending work, including reschedule
 	@ execute the pending work, including reschedule
 	get_thread_info tsk
 	get_thread_info tsk
 	mov	why, #0
 	mov	why, #0
-	b	ret_to_user
+	b	ret_to_user_from_irq
 ENDPROC(__pendsv_entry)
 ENDPROC(__pendsv_entry)
 
 
 /*
 /*