This commit is contained in:
fslongjin
2022-05-11 20:42:30 +08:00
parent 77d4854db7
commit edb21695ae
9 changed files with 117 additions and 10 deletions

12
kernel/arch/arch.h Normal file
View File

@ -0,0 +1,12 @@
#pragma once
#define ARCH(arch) (defined(AK_ARCH_##arch) && AK_ARCH_##arch)
#ifdef __i386__
# define AK_ARCH_I386 1
#endif
#ifdef __x86_64__
# define AK_ARCH_X86_64 1
#endif