| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * linux/arch/arm/kernel/entry-v7m.S |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * 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. |
|---|
| 9 | 6 | * |
|---|
| 10 | 7 | * Low-level vector interface routines for the ARMv7-M architecture |
|---|
| 11 | 8 | */ |
|---|
| .. | .. |
|---|
| 62 | 59 | |
|---|
| 63 | 60 | get_thread_info tsk |
|---|
| 64 | 61 | ldr r2, [tsk, #TI_FLAGS] |
|---|
| 65 | | - tst r2, #_TIF_WORK_MASK |
|---|
| 62 | + movs r2, r2, lsl #16 |
|---|
| 66 | 63 | beq 2f @ no work pending |
|---|
| 67 | 64 | mov r0, #V7M_SCB_ICSR_PENDSVSET |
|---|
| 68 | 65 | str r0, [r1, V7M_SCB_ICSR] @ raise PendSV |
|---|