mirror of
https://gitlab.os-k.eu/os-k-team/os-k.git
synced 2023-08-25 14:03:10 +02:00
38 lines
1.3 KiB
C
38 lines
1.3 KiB
C
|
//----------------------------------------------------------------------------//
|
||
|
// GNU GPL OS/K //
|
||
|
// //
|
||
|
// Authors: spectral` //
|
||
|
// NeoX //
|
||
|
// //
|
||
|
// Desc: Kaleid Kernel main include file //
|
||
|
//----------------------------------------------------------------------------//
|
||
|
|
||
|
#ifndef _KALKERN_H
|
||
|
#define _KALKERN_H
|
||
|
|
||
|
//------------------------------------------//
|
||
|
// Dependencies //
|
||
|
//------------------------------------------//
|
||
|
|
||
|
#ifndef _KALEID_H
|
||
|
#include <kaleid.h>
|
||
|
#endif
|
||
|
|
||
|
#ifndef _KALKERN_CONFIG_H
|
||
|
#include <kalkern/config.h>
|
||
|
#endif
|
||
|
|
||
|
//------------------------------------------//
|
||
|
// Macros //
|
||
|
//------------------------------------------//
|
||
|
|
||
|
#define DisableInterrupts() asm volatile ("cli")
|
||
|
#define EnableInterrupts() asm volatile ("sti")
|
||
|
#define HaltCPU() asm volatile ("hlt")
|
||
|
|
||
|
//------------------------------------------//
|
||
|
// End of <kalkern.h> //
|
||
|
//------------------------------------------//
|
||
|
|
||
|
#endif
|