smc.S 724 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copied from omap44xx-smc.S Copyright (C) 2010 Texas Instruments, Inc.
  3. * Copyright 2012 Calxeda, Inc.
  4. *
  5. * This program is free software,you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. */
  9. #include <linux/linkage.h>
  10. /*
  11. * This is common routine to manage secure monitor API
  12. * used to modify the PL310 secure registers.
  13. * 'r0' contains the value to be modified and 'r12' contains
  14. * the monitor API number.
  15. * Function signature : void highbank_smc1(u32 fn, u32 arg)
  16. */
  17. ENTRY(highbank_smc1)
  18. stmfd sp!, {r4-r11, lr}
  19. mov r12, r0
  20. mov r0, r1
  21. dsb
  22. smc #0
  23. ldmfd sp!, {r4-r11, pc}
  24. ENDPROC(highbank_smc1)