-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
omap4: Fix build break by moving omap_smc1 into a separate .S
This patch moves omap_smc1 function to a seperate omap44xx-smc.S file and sets compile flags as -Wa,-march=armv7-a. This fix was suggested by Tony Lindgren <tony@atomide.com> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com> [tony@atomide.com: otherwise multi-omap build with V6 and V7 breaks] Signed-off-by: Tony Lindgren <tony@atomide.com>
- Loading branch information
Santosh Shilimkar
authored and
Tony Lindgren
committed
Mar 11, 2010
1 parent
6f69a18
commit d660f9a
Showing
3 changed files
with
36 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* OMAP44xx secure APIs file. | ||
* | ||
* Copyright (C) 2010 Texas Instruments, Inc. | ||
* Written by Santosh Shilimkar <santosh.shilimkar@ti.com> | ||
* | ||
* | ||
* This program is free software,you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
*/ | ||
|
||
#include <linux/linkage.h> | ||
|
||
/* | ||
* This is common routine to manage secure monitor API | ||
* used to modify the PL310 secure registers. | ||
* 'r0' contains the value to be modified and 'r12' contains | ||
* the monitor API number. It uses few CPU registers | ||
* internally and hence they need be backed up including | ||
* link register "lr". | ||
* Function signature : void omap_smc1(u32 fn, u32 arg) | ||
*/ | ||
|
||
ENTRY(omap_smc1) | ||
stmfd sp!, {r2-r12, lr} | ||
mov r12, r0 | ||
mov r0, r1 | ||
dsb | ||
smc | ||
ldmfd sp!, {r2-r12, pc} | ||
END(omap_smc1) |