| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * OMAP34xx and OMAP44xx secure APIs file. |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 5 | 6 | * Written by Santosh Shilimkar <santosh.shilimkar@ti.com> |
|---|
| 6 | 7 | * |
|---|
| 7 | 8 | * Copyright (C) 2012 Ivaylo Dimitrov <freemangordon@abv.bg> |
|---|
| 8 | | - * Copyright (C) 2013 Pali Rohár <pali.rohar@gmail.com> |
|---|
| 9 | | - * |
|---|
| 10 | | - * This program is free software,you can redistribute it and/or modify |
|---|
| 11 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 12 | | - * published by the Free Software Foundation. |
|---|
| 9 | + * Copyright (C) 2013 Pali Rohár <pali@kernel.org> |
|---|
| 13 | 10 | */ |
|---|
| 14 | 11 | |
|---|
| 15 | 12 | #include <linux/linkage.h> |
|---|
| .. | .. |
|---|
| 21 | 18 | * the monitor API number. It uses few CPU registers |
|---|
| 22 | 19 | * internally and hence they need be backed up including |
|---|
| 23 | 20 | * link register "lr". |
|---|
| 24 | | - * Function signature : void omap_smc1(u32 fn, u32 arg) |
|---|
| 21 | + * Function signature : void _omap_smc1(u32 fn, u32 arg) |
|---|
| 25 | 22 | */ |
|---|
| 26 | | - |
|---|
| 27 | | -ENTRY(omap_smc1) |
|---|
| 23 | + .arch armv7-a |
|---|
| 24 | + .arch_extension sec |
|---|
| 25 | +ENTRY(_omap_smc1) |
|---|
| 28 | 26 | stmfd sp!, {r2-r12, lr} |
|---|
| 29 | 27 | mov r12, r0 |
|---|
| 30 | 28 | mov r0, r1 |
|---|
| 31 | 29 | dsb |
|---|
| 32 | 30 | smc #0 |
|---|
| 33 | 31 | ldmfd sp!, {r2-r12, pc} |
|---|
| 34 | | -ENDPROC(omap_smc1) |
|---|
| 32 | +ENDPROC(_omap_smc1) |
|---|
| 35 | 33 | |
|---|
| 36 | 34 | /** |
|---|
| 37 | 35 | * u32 omap_smc2(u32 id, u32 falg, u32 pargs) |
|---|