diff options
Diffstat (limited to 'src/boot/BootKit/Platform.h')
| -rw-r--r-- | src/boot/BootKit/Platform.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/boot/BootKit/Platform.h b/src/boot/BootKit/Platform.h new file mode 100644 index 00000000..bfc738fc --- /dev/null +++ b/src/boot/BootKit/Platform.h @@ -0,0 +1,32 @@ +/* ======================================== + + Copyright (C) 2024-2025, Amlal El Mahrouss, licensed under the Apache 2.0 license. + +======================================== */ + +#pragma once + +/** + @file Platform.h + @brief Platform specific code. +*/ + +#ifdef __x86_64__ + +#ifdef __cplusplus +#ifndef EXTERN_C +#define EXTERN_C extern "C" +#endif +#else +#ifndef EXTERN_C +#define EXTERN_C extern +#endif +#endif // __cplusplus + +EXTERN_C void rt_halt(); +EXTERN_C void rt_cli(); +EXTERN_C void rt_sti(); +EXTERN_C void rt_cld(); +EXTERN_C void rt_std(); + +#endif /* ifdef __x86_64__ */ |
