aboutsummaryrefslogtreecommitdiff
path: root/include/arch/cpu.h
blob: 23b2911db8b732cb6e8ca45c7355f18dec55908f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef APOS_CPU_H
#define APOS_CPU_H

/**
 * @file cpu.h
 * Arch-specific cpu handling, generally implemented in
 * arch/whatever/kernel/cpu.c
 */

#include <apos/types.h>

#if defined(riscv64)
#include "../../arch/riscv64/include/cpu.h"
#elif defined(riscv32)
#include "../../arch/riscv32/include/cpu.h"
#endif

id_t cpu_id();
/* TODO: add more cpu handling functions */

#endif /* APOS_CPU_H */