forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 10ebd8556b7990499c896a550e3d416b444211e6
kernel/arch/arm/kernel/entry-v7m.S
....@@ -1,11 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * linux/arch/arm/kernel/entry-v7m.S
34 *
45 * Copyright (C) 2008 ARM Ltd.
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License version 2 as
8
- * published by the Free Software Foundation.
96 *
107 * Low-level vector interface routines for the ARMv7-M architecture
118 */
....@@ -62,7 +59,7 @@
6259
6360 get_thread_info tsk
6461 ldr r2, [tsk, #TI_FLAGS]
65
- tst r2, #_TIF_WORK_MASK
62
+ movs r2, r2, lsl #16
6663 beq 2f @ no work pending
6764 mov r0, #V7M_SCB_ICSR_PENDSVSET
6865 str r0, [r1, V7M_SCB_ICSR] @ raise PendSV