xref: /kvm-unit-tests/lib/riscv/asm/setup.h (revision 386561f8cd050f58e9dc2ec7562014c8f1680de3)
1bd744d46SAndrew Jones /* SPDX-License-Identifier: GPL-2.0-only */
2bd744d46SAndrew Jones #ifndef _ASMRISCV_SETUP_H_
3bd744d46SAndrew Jones #define _ASMRISCV_SETUP_H_
422f287f4SAndrew Jones #include <libcflat.h>
5*386561f8SAndrew Jones #include <asm/processor.h>
6bd744d46SAndrew Jones 
722f287f4SAndrew Jones #define NR_CPUS 16
8*386561f8SAndrew Jones extern struct thread_info cpus[NR_CPUS];
922f287f4SAndrew Jones extern int nr_cpus;
1022f287f4SAndrew Jones int hartid_to_cpu(unsigned long hartid);
1122f287f4SAndrew Jones 
1222f287f4SAndrew Jones void io_init(void);
13bd744d46SAndrew Jones void setup(const void *fdt, phys_addr_t freemem_start);
14bd744d46SAndrew Jones 
15bd744d46SAndrew Jones #endif /* _ASMRISCV_SETUP_H_ */
16