transition.S 444 B

1234567891011121314151617181920212223
  1. /*
  2. * (C) Copyright 2013
  3. * David Feng <fenghua@phytium.com.cn>
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. #include <asm-offsets.h>
  8. #include <config.h>
  9. #include <linux/linkage.h>
  10. #include <asm/macro.h>
  11. ENTRY(armv8_switch_to_el2)
  12. switch_el x0, 1f, 0f, 0f
  13. 0: ret
  14. 1: armv8_switch_to_el2_m x0
  15. ENDPROC(armv8_switch_to_el2)
  16. ENTRY(armv8_switch_to_el1)
  17. switch_el x0, 0f, 1f, 0f
  18. 0: ret
  19. 1: armv8_switch_to_el1_m x0, x1
  20. ENDPROC(armv8_switch_to_el1)