headsmp.S 847 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Cloned from linux/arch/arm/mach-realview/headsmp.S
  4. *
  5. * Copyright (c) 2003 ARM Limited
  6. * All Rights Reserved
  7. */
  8. #include <linux/linkage.h>
  9. #include <linux/init.h>
  10. #include <asm/assembler.h>
  11. /*
  12. * exynos4 specific entry point for secondary CPUs. This provides
  13. * a "holding pen" into which all secondary cores are held until we're
  14. * ready for them to initialise.
  15. */
  16. ENTRY(exynos4_secondary_startup)
  17. ARM_BE8(setend be)
  18. mrc p15, 0, r0, c0, c0, 5
  19. and r0, r0, #15
  20. adr r4, 1f
  21. ldmia r4, {r5, r6}
  22. sub r4, r4, r5
  23. add r6, r6, r4
  24. pen: ldr r7, [r6]
  25. cmp r7, r0
  26. bne pen
  27. /*
  28. * we've been released from the holding pen: secondary_stack
  29. * should now contain the SVC stack for this core
  30. */
  31. b secondary_startup
  32. ENDPROC(exynos4_secondary_startup)
  33. .align 2
  34. 1: .long .
  35. .long exynos_pen_release