Skip to content

Commit c9f5ea0

Browse files
ffainellictmarinas
authored andcommitted
arm64: entry: Use SDEI event constants
Use SDEI_EV_FAILED instead of open coding the 1 to make it clearer how SDEI_EVENT_COMPLETE vs. SDEI_EVENT_COMPLETE_AND_RESUME is selected. Signed-off-by: Florian Fainelli <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Catalin Marinas <[email protected]>
1 parent b6363fe commit c9f5ea0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

arch/arm64/kernel/entry.S

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -966,8 +966,10 @@ SYM_CODE_START(__sdei_asm_handler)
966966
mov sp, x1
967967

968968
mov x1, x0 // address to complete_and_resume
969-
/* x0 = (x0 <= 1) ? EVENT_COMPLETE:EVENT_COMPLETE_AND_RESUME */
970-
cmp x0, #1
969+
/* x0 = (x0 <= SDEI_EV_FAILED) ?
970+
* EVENT_COMPLETE:EVENT_COMPLETE_AND_RESUME
971+
*/
972+
cmp x0, #SDEI_EV_FAILED
971973
mov_q x2, SDEI_1_0_FN_SDEI_EVENT_COMPLETE
972974
mov_q x3, SDEI_1_0_FN_SDEI_EVENT_COMPLETE_AND_RESUME
973975
csel x0, x2, x3, ls

0 commit comments

Comments
 (0)