opcodes-sec.h 742 B

12345678910111213141516171819202122232425
  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) 2012 ARM Limited
  12. */
  13. #ifndef __ASM_ARM_OPCODES_SEC_H
  14. #define __ASM_ARM_OPCODES_SEC_H
  15. #include <asm/opcodes.h>
  16. #define __SMC(imm4) __inst_arm_thumb32( \
  17. 0xE1600070 | (((imm4) & 0xF) << 0), \
  18. 0xF7F08000 | (((imm4) & 0xF) << 16) \
  19. )
  20. #endif /* __ASM_ARM_OPCODES_SEC_H */