| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * (C) Copyright 2007 |
|---|
| 3 | 4 | * Texas Instruments |
|---|
| .. | .. |
|---|
| 6 | 7 | * (C) Copyright 2004 |
|---|
| 7 | 8 | * Texas Instruments, <www.ti.com> |
|---|
| 8 | 9 | * Richard Woodruff <r-woodruff2@ti.com> |
|---|
| 9 | | - * |
|---|
| 10 | | - * This program is free software; you can redistribute it and/or |
|---|
| 11 | | - * modify it under the terms of the GNU General Public License as |
|---|
| 12 | | - * published by the Free Software Foundation; either version 2 of |
|---|
| 13 | | - * the License, or (at your option) any later version. |
|---|
| 14 | | - * |
|---|
| 15 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 16 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 17 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR /PURPOSE. See the |
|---|
| 18 | | - * GNU General Public License for more details. |
|---|
| 19 | | - * |
|---|
| 20 | | - * You should have received a copy of the GNU General Public License |
|---|
| 21 | | - * along with this program; if not, write to the Free Software |
|---|
| 22 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
|---|
| 23 | | - * MA 02111-1307 USA |
|---|
| 24 | 10 | */ |
|---|
| 25 | 11 | #include <linux/linkage.h> |
|---|
| 26 | 12 | |
|---|
| .. | .. |
|---|
| 86 | 72 | stmfd sp!, {lr} @ save registers on stack |
|---|
| 87 | 73 | /* Setup so that we will disable and enable l2 */ |
|---|
| 88 | 74 | mov r1, #0x1 |
|---|
| 89 | | - adrl r3, l2dis_3630_offset @ may be too distant for plain adr |
|---|
| 75 | + adr r3, l2dis_3630_offset |
|---|
| 90 | 76 | ldr r2, [r3] @ value for offset |
|---|
| 91 | 77 | str r1, [r2, r3] @ write to l2dis_3630 |
|---|
| 92 | 78 | ldmfd sp!, {pc} @ restore regs and return |
|---|
| .. | .. |
|---|
| 97 | 83 | * |
|---|
| 98 | 84 | * r0 = physical address of the parameters |
|---|
| 99 | 85 | */ |
|---|
| 86 | + .arch armv7-a |
|---|
| 87 | + .arch_extension sec |
|---|
| 100 | 88 | ENTRY(save_secure_ram_context) |
|---|
| 101 | 89 | stmfd sp!, {r4 - r11, lr} @ save registers on stack |
|---|
| 102 | 90 | mov r3, r0 @ physical address of parameters |
|---|