diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2023-06-02 16:31:06 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2023-06-02 16:31:35 +0200 |
commit | 77b71807249233c5289e106ef753515a33c93f1f (patch) | |
tree | a5d015519fd0b4e48edf48ba4d21323f81566bea /CRT | |
parent | 4d2461de044eacc8e822997019c19884851a814c (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.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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"); +} |