Kernel: Add macros for current archutecture

This commit is contained in:
Bananymous
2023-02-01 01:52:05 +02:00
parent 337569b0ca
commit 7d8aafa0b5
2 changed files with 8 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
#pragma once
#define ARCH(arch) (__arch == arch)
#if !defined(__arch) || (__arch != x86_64 && __arch != i386)
#error "Unsupported architecture"
#endif