tegrakernel/kernel/nvidia/drivers/platform/tegra/smc-calls.S

31 lines
850 B
ArmAsm
Raw Permalink Normal View History

2022-02-16 09:13:02 -06:00
/*
* Copyright (c) 2016-2018 NVIDIA Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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>
/* uint32_t invoke_smc(uint32_t arg0, uintptr_t arg1, uintptr_t arg2); */
#ifdef CONFIG_ARM64
ENTRY(invoke_smc)
smc #0
ret
ENDPROC(invoke_smc)
#else
ENTRY(invoke_smc)
smc #0
mov pc, lr
ENDPROC(invoke_smc)
#endif