hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/arm/mach-omap2/sleep34xx.S
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * (C) Copyright 2007
34 * Texas Instruments
....@@ -6,21 +7,6 @@
67 * (C) Copyright 2004
78 * Texas Instruments, <www.ti.com>
89 * 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
2410 */
2511 #include <linux/linkage.h>
2612
....@@ -86,7 +72,7 @@
8672 stmfd sp!, {lr} @ save registers on stack
8773 /* Setup so that we will disable and enable l2 */
8874 mov r1, #0x1
89
- adrl r3, l2dis_3630_offset @ may be too distant for plain adr
75
+ adr r3, l2dis_3630_offset
9076 ldr r2, [r3] @ value for offset
9177 str r1, [r2, r3] @ write to l2dis_3630
9278 ldmfd sp!, {pc} @ restore regs and return
....@@ -97,6 +83,8 @@
9783 *
9884 * r0 = physical address of the parameters
9985 */
86
+ .arch armv7-a
87
+ .arch_extension sec
10088 ENTRY(save_secure_ram_context)
10189 stmfd sp!, {r4 - r11, lr} @ save registers on stack
10290 mov r3, r0 @ physical address of parameters