aboutsummaryrefslogtreecommitdiff
path: root/CRT
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2023-06-02 16:31:06 +0200
committerToni Uhlig <matzeton@googlemail.com>2023-06-02 16:31:35 +0200
commit77b71807249233c5289e106ef753515a33c93f1f (patch)
treea5d015519fd0b4e48edf48ba4d21323f81566bea /CRT
parent4d2461de044eacc8e822997019c19884851a814c (diff)
Added _enable()/_disable() intrinsic functions to enable/disable maskable interrupts. Fixes #3.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'CRT')
-rw-r--r--CRT/kcrt.c10
1 files changed, 10 insertions, 0 deletions
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");
+}