head.h 543 B

123456789101112131415161718192021222324
  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 do_page_fault(struct pt_regs *regs);
  11. asmlinkage void __init setup_vm(uintptr_t dtb_pa);
  12. #ifdef CONFIG_XIP_KERNEL
  13. asmlinkage void __init __copy_data(void);
  14. #endif
  15. #ifdef CONFIG_RISCV_BOOT_SPINWAIT
  16. extern void *__cpu_spinwait_stack_pointer[];
  17. extern void *__cpu_spinwait_task_pointer[];
  18. #endif
  19. #endif /* __ASM_HEAD_H */