1/* 2 * This program is free software; you can redistribute it and/or modify 3 * it under the terms of the GNU General Public License version 2 as 4 * published by the Free Software Foundation. 5 * 6 * This program is distributed in the hope that it will be useful, 7 * but WITHOUT ANY WARRANTY; without even the implied warranty of 8 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 9 * GNU General Public License for more details. 10 * 11 * Copyright (C) 2015 ARM Limited 12 * 13 * Author: Mark Rutland <mark.rutland@arm.com> 14 */ 15 16#include <linux/linkage.h> 17 18#include <asm/opcodes-sec.h> 19#include <asm/opcodes-virt.h> 20 21/* int __invoke_psci_fn_hvc(u32 function_id, u32 arg0, u32 arg1, u32 arg2) */ 22ENTRY(__invoke_psci_fn_hvc) 23 __HVC(0) 24 bx lr 25ENDPROC(__invoke_psci_fn_hvc) 26 27/* int __invoke_psci_fn_smc(u32 function_id, u32 arg0, u32 arg1, u32 arg2) */ 28ENTRY(__invoke_psci_fn_smc) 29 __SMC(0) 30 bx lr 31ENDPROC(__invoke_psci_fn_smc) 32