head64.S 983 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright IBM Corp. 1999, 2010
  4. *
  5. * Author(s): Hartmut Penner <[email protected]>
  6. * Martin Schwidefsky <[email protected]>
  7. * Rob van der Heij <[email protected]>
  8. *
  9. */
  10. #include <linux/init.h>
  11. #include <linux/linkage.h>
  12. #include <asm/asm-offsets.h>
  13. #include <asm/thread_info.h>
  14. #include <asm/page.h>
  15. #include <asm/ptrace.h>
  16. __HEAD
  17. ENTRY(startup_continue)
  18. larl %r1,tod_clock_base
  19. mvc 0(16,%r1),__LC_BOOT_CLOCK
  20. #
  21. # Setup stack
  22. #
  23. larl %r14,init_task
  24. stg %r14,__LC_CURRENT
  25. larl %r15,init_thread_union+THREAD_SIZE-STACK_FRAME_OVERHEAD-__PT_SIZE
  26. brasl %r14,sclp_early_adjust_va # allow sclp_early_printk
  27. #ifdef CONFIG_KASAN
  28. brasl %r14,kasan_early_init
  29. #endif
  30. brasl %r14,startup_init # s390 specific early init
  31. brasl %r14,start_kernel # common init code
  32. #
  33. # We returned from start_kernel ?!? PANIK
  34. #
  35. basr %r13,0
  36. lpswe .Ldw-.(%r13) # load disabled wait psw
  37. .align 16
  38. .LPG1:
  39. .Ldw: .quad 0x0002000180000000,0x0000000000000000