headsmp.S 852 B

1234567891011121314151617181920212223242526272829303132
  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. .arch armv7-a
  13. ENTRY(secondary_trampoline)
  14. movw r2, #:lower16:cpu1start_addr
  15. movt r2, #:upper16:cpu1start_addr
  16. /* The socfpga VT cannot handle a 0xC0000000 page offset when loading
  17. the cpu1start_addr, we bit clear it. Tested on HW and VT. */
  18. bic r2, r2, #0x40000000
  19. ldr r0, [r2]
  20. ldr r1, [r0]
  21. bx r1
  22. ENTRY(secondary_trampoline_end)
  23. ENTRY(socfpga_secondary_startup)
  24. bl v7_invalidate_l1
  25. b secondary_startup
  26. ENDPROC(socfpga_secondary_startup)