psci-call.S 926 B

12345678910111213141516171819202122232425262728293031
  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. #include <linux/linkage.h>
  16. #include <asm/opcodes-sec.h>
  17. #include <asm/opcodes-virt.h>
  18. /* int __invoke_psci_fn_hvc(u32 function_id, u32 arg0, u32 arg1, u32 arg2) */
  19. ENTRY(__invoke_psci_fn_hvc)
  20. __HVC(0)
  21. bx lr
  22. ENDPROC(__invoke_psci_fn_hvc)
  23. /* int __invoke_psci_fn_smc(u32 function_id, u32 arg0, u32 arg1, u32 arg2) */
  24. ENTRY(__invoke_psci_fn_smc)
  25. __SMC(0)
  26. bx lr
  27. ENDPROC(__invoke_psci_fn_smc)