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
|