hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/arch/arm64/include/asm/word-at-a-time.h
....@@ -1,17 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (C) 2013 ARM Ltd.
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License version 2 as
6
- * published by the Free Software Foundation.
7
- *
8
- * This program is distributed in the hope that it will be useful,
9
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- * GNU General Public License for more details.
12
- *
13
- * You should have received a copy of the GNU General Public License
14
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
154 */
165 #ifndef __ASM_WORD_AT_A_TIME_H
176 #define __ASM_WORD_AT_A_TIME_H
....@@ -66,6 +55,8 @@
6655 {
6756 unsigned long ret, tmp;
6857
58
+ __uaccess_enable_tco_async();
59
+
6960 /* Load word from unaligned pointer addr */
7061 asm(
7162 "1: ldr %0, %3\n"
....@@ -87,6 +78,8 @@
8778 : "=&r" (ret), "=&r" (tmp)
8879 : "r" (addr), "Q" (*(unsigned long *)addr));
8980
81
+ __uaccess_disable_tco_async();
82
+
9083 return ret;
9184 }
9285