From 77b71807249233c5289e106ef753515a33c93f1f Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Fri, 2 Jun 2023 16:31:06 +0200 Subject: Added _enable()/_disable() intrinsic functions to enable/disable maskable interrupts. Fixes #3. Signed-off-by: Toni Uhlig --- CRT/kcrt.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'CRT') diff --git a/CRT/kcrt.c b/CRT/kcrt.c index 84b7f25..8e96ca6 100644 --- a/CRT/kcrt.c +++ b/CRT/kcrt.c @@ -281,3 +281,13 @@ NTSTATUS __cdecl _CRT_DriverEntry(struct _DRIVER_OBJECT * DriverObject, PUNICODE return retval; } + +void __cdecl _enable(void) +{ + __asm__ __volatile__("sti"); +} + +void __cdecl _disable(void) +{ + __asm__ __volatile__("cli"); +} -- cgit v1.2.3