-
Notifications
You must be signed in to change notification settings - Fork 55.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARM: 8480/2: arm64: add implementation for arm-smccc
Adds implementation for arm-smccc and enables CONFIG_HAVE_SMCCC. Acked-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
- Loading branch information
1 parent
b329f95
commit 1445745
Showing
5 changed files
with
53 additions
and
1 deletion.
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
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,43 @@ | ||
/* | ||
* Copyright (c) 2015, Linaro Limited | ||
* | ||
* 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. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
*/ | ||
#include <linux/linkage.h> | ||
#include <asm/asm-offsets.h> | ||
|
||
.macro SMCCC instr | ||
.cfi_startproc | ||
\instr #0 | ||
ldr x4, [sp] | ||
stp x0, x1, [x4, #ARM_SMCCC_RES_X0_OFFS] | ||
stp x2, x3, [x4, #ARM_SMCCC_RES_X2_OFFS] | ||
ret | ||
.cfi_endproc | ||
.endm | ||
|
||
/* | ||
* void arm_smccc_smc(unsigned long a0, unsigned long a1, unsigned long a2, | ||
* unsigned long a3, unsigned long a4, unsigned long a5, | ||
* unsigned long a6, unsigned long a7, struct arm_smccc_res *res) | ||
*/ | ||
ENTRY(arm_smccc_smc) | ||
SMCCC smc | ||
ENDPROC(arm_smccc_smc) | ||
|
||
/* | ||
* void arm_smccc_hvc(unsigned long a0, unsigned long a1, unsigned long a2, | ||
* unsigned long a3, unsigned long a4, unsigned long a5, | ||
* unsigned long a6, unsigned long a7, struct arm_smccc_res *res) | ||
*/ | ||
ENTRY(arm_smccc_hvc) | ||
SMCCC hvc | ||
ENDPROC(arm_smccc_hvc) |