Jeenu Viswambharan | 8b7e6bc | 2018-02-16 12:07:48 +0000 | [diff] [blame] | 1 | /* |
Antonio Nino Diaz | 4586d1c | 2019-02-08 13:10:45 +0000 | [diff] [blame] | 2 | * Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved. |
Jeenu Viswambharan | 8b7e6bc | 2018-02-16 12:07:48 +0000 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #include <asm_macros.S> |
| 8 | |
| 9 | .globl begin_sdei_synchronous_dispatch |
| 10 | |
| 11 | /* |
Antonio Nino Diaz | 4586d1c | 2019-02-08 13:10:45 +0000 | [diff] [blame] | 12 | * void begin_sdei_synchronous_dispatch(jmp_buf *buffer); |
Jeenu Viswambharan | 8b7e6bc | 2018-02-16 12:07:48 +0000 | [diff] [blame] | 13 | * |
| 14 | * Begin SDEI dispatch synchronously by setting up a jump point, and exiting |
| 15 | * EL3. This jump point is jumped to by the dispatcher after the event is |
| 16 | * completed by the client. |
| 17 | */ |
| 18 | func begin_sdei_synchronous_dispatch |
| 19 | stp x30, xzr, [sp, #-16]! |
| 20 | bl setjmp |
| 21 | cbz x0, 1f |
| 22 | ldp x30, xzr, [sp], #16 |
| 23 | ret |
| 24 | 1: |
| 25 | b el3_exit |
| 26 | endfunc begin_sdei_synchronous_dispatch |