smc.S 564 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Keystone Secure APIs
  4. *
  5. * Copyright (C) 2013 Texas Instruments, Inc.
  6. * Santosh Shilimkar <[email protected]>
  7. */
  8. #include <linux/linkage.h>
  9. /**
  10. * u32 keystone_cpu_smc(u32 command, u32 cpu, u32 addr)
  11. *
  12. * Low level CPU monitor API
  13. * @command: Monitor command.
  14. * @cpu: CPU Number
  15. * @addr: Kernel jump address for boot CPU
  16. *
  17. * Return: Non zero value on failure
  18. */
  19. .arch_extension sec
  20. ENTRY(keystone_cpu_smc)
  21. stmfd sp!, {r4-r11, lr}
  22. smc #0
  23. ldmfd sp!, {r4-r11, pc}
  24. ENDPROC(keystone_cpu_smc)