| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * 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/>. |
|---|
| 15 | 4 | */ |
|---|
| 16 | 5 | #ifndef __ASM_WORD_AT_A_TIME_H |
|---|
| 17 | 6 | #define __ASM_WORD_AT_A_TIME_H |
|---|
| .. | .. |
|---|
| 66 | 55 | { |
|---|
| 67 | 56 | unsigned long ret, tmp; |
|---|
| 68 | 57 | |
|---|
| 58 | + __uaccess_enable_tco_async(); |
|---|
| 59 | + |
|---|
| 69 | 60 | /* Load word from unaligned pointer addr */ |
|---|
| 70 | 61 | asm( |
|---|
| 71 | 62 | "1: ldr %0, %3\n" |
|---|
| .. | .. |
|---|
| 87 | 78 | : "=&r" (ret), "=&r" (tmp) |
|---|
| 88 | 79 | : "r" (addr), "Q" (*(unsigned long *)addr)); |
|---|
| 89 | 80 | |
|---|
| 81 | + __uaccess_disable_tco_async(); |
|---|
| 82 | + |
|---|
| 90 | 83 | return ret; |
|---|
| 91 | 84 | } |
|---|
| 92 | 85 | |
|---|