1/*
2 * Copyright 2018-2022, Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT license.
4 */
5#ifndef _FBSD_COMPAT_MACHINE_CPUFUNC_H_
6#define _FBSD_COMPAT_MACHINE_CPUFUNC_H_
7
8#include <sys/cdefs.h>
9
10#if defined(__i386__)
11#  include <machine/x86/cpufunc.h>
12#elif defined(__x86_64__)
13#  include <machine/x86_64/cpufunc.h>
14#elif (defined(__riscv) && __riscv_xlen == 64)
15#  include <machine/generic/cpufunc.h>
16#else
17#  error Need a cpufunc.h for this arch!
18#endif
19
20#endif /* _FBSD_COMPAT_MACHINE_CPUFUNC_H_ */
21