headsmp.S 863 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (c) 2003 ARM Limited
  3. * Copyright (c) u-boot contributors
  4. * Copyright (c) 2012 Pavel Machek <pavel@denx.de>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #include <linux/linkage.h>
  11. #include <linux/init.h>
  12. __CPUINIT
  13. .arch armv7-a
  14. ENTRY(secondary_trampoline)
  15. movw r2, #:lower16:cpu1start_addr
  16. movt r2, #:upper16:cpu1start_addr
  17. /* The socfpga VT cannot handle a 0xC0000000 page offset when loading
  18. the cpu1start_addr, we bit clear it. Tested on HW and VT. */
  19. bic r2, r2, #0x40000000
  20. ldr r0, [r2]
  21. ldr r1, [r0]
  22. bx r1
  23. ENTRY(secondary_trampoline_end)
  24. ENTRY(socfpga_secondary_startup)
  25. bl v7_invalidate_l1
  26. b secondary_startup
  27. ENDPROC(socfpga_secondary_startup)