Files
Espresso/include/kincl.h

33 lines
715 B
C
Raw Normal View History

2025-07-07 10:41:05 -05:00
#ifndef _KERNEL_INCLUDES_H
#define _KERNEL_INCLUDES_H
2026-02-12 20:33:46 -06:00
#define ESPRESSO_KERNEL_
2026-03-20 16:57:08 -05:00
#define KERNEL_VERSION "0.0.2c"
#define KERNEL_RELEASE_YEAR "2026"
2026-02-12 20:33:46 -06:00
#define _STATE_NORMAL 0
#define _STATE_HANDLED 1
#define _STATE_INTERRUPT -1
#define _STATE_EXCEPTION -2
#define _STATE_CRASH -555
#define __always_inline inline __attribute__((always_inline))
#define __hot __attribute__((hot))
#define __cold __attribute__((cold))
#define __noreturn __attribute__((noreturn))
#define __section(x) __attribute__((section(x)))
2025-07-07 10:41:05 -05:00
2026-03-20 16:57:08 -05:00
#define __noreturn __attribute__((noreturn))
extern void _cli_asm(void);
extern void _sti_asm(void);
#define IRQ_DISABLE() _cli_asm();
#define IRQ_ENABLE() _sti_asm();
//#define DEBUG_USE_SSE2
2025-07-07 10:41:05 -05:00
#endif