Added sti() and cli() assembly wrappers

This commit is contained in:
2025-05-07 08:56:09 +02:00
parent c646404cf0
commit d6035dff80
6 changed files with 29 additions and 16 deletions
+8
View File
@@ -42,3 +42,11 @@ void outl(uint16_t port, uint32_t data) {
__asm__ volatile ("outl %1, %0" :: "dN"(port), "a"(data));
}
void cli(void) {
__asm__ volatile ("cli");
}
void sti(void) {
__asm__ volatile ("sti");
}