head.h 490 B

1234567891011121314151617181920212223
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (C) 2019 SiFive, Inc.
  4. */
  5. #ifndef __ASM_HEAD_H
  6. #define __ASM_HEAD_H
  7. #include <linux/linkage.h>
  8. #include <linux/init.h>
  9. extern atomic_t hart_lottery;
  10. asmlinkage void __init setup_vm(uintptr_t dtb_pa);
  11. #ifdef CONFIG_XIP_KERNEL
  12. asmlinkage void __init __copy_data(void);
  13. #endif
  14. #ifdef CONFIG_RISCV_BOOT_SPINWAIT
  15. extern void *__cpu_spinwait_stack_pointer[];
  16. extern void *__cpu_spinwait_task_pointer[];
  17. #endif
  18. #endif /* __ASM_HEAD_H */