xref: /kvm-unit-tests/lib/riscv/asm/setup.h (revision 05a764725512259a073c804f2616fb4f5ac461e8)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #ifndef _ASMRISCV_SETUP_H_
3 #define _ASMRISCV_SETUP_H_
4 #include <libcflat.h>
5 #include <asm/processor.h>
6 
7 #define NR_CPUS 16
8 extern struct thread_info cpus[NR_CPUS];
9 extern int nr_cpus;
10 int hartid_to_cpu(unsigned long hartid);
11 
12 void io_init(void);
13 void setup(const void *fdt, phys_addr_t freemem_start);
14 
15 #endif /* _ASMRISCV_SETUP_H_ */
16