cpu_ops_sbi.h 609 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2021 by Rivos Inc.
  4. */
  5. #ifndef __ASM_CPU_OPS_SBI_H
  6. #define __ASM_CPU_OPS_SBI_H
  7. #ifndef __ASSEMBLY__
  8. #include <linux/init.h>
  9. #include <linux/sched.h>
  10. #include <linux/threads.h>
  11. extern const struct cpu_operations cpu_ops_sbi;
  12. /**
  13. * struct sbi_hart_boot_data - Hart specific boot used during booting and
  14. * cpu hotplug.
  15. * @task_ptr: A pointer to the hart specific tp
  16. * @stack_ptr: A pointer to the hart specific sp
  17. */
  18. struct sbi_hart_boot_data {
  19. void *task_ptr;
  20. void *stack_ptr;
  21. };
  22. #endif
  23. #endif /* ifndef __ASM_CPU_OPS_SBI_H */