Nucleus
Barry Exiting interrupt context on clone() child 571b85e (3 years, 3 months ago)
diff --git a/include/nucleus/cpu.h b/include/nucleus/cpu.h
index 88c7506..b8293b8 100644
--- a/include/nucleus/cpu.h
+++ b/include/nucleus/cpu.h
@@ -23,20 +23,6 @@ extern cpu_t lapicNums[];
#define CPUID (apic ? lapicNums[(cpu_t) (LAPIC(0x20) >> 24)] : 0)
#define MAX_CPUS 2
-/* Push/pop interrupts */
-static inline uintptr_t
-irq_disable(void)
-{
- uintptr_t flags;
- asm volatile("pushf; cli; pop %0" : "=r" (flags) :: "memory");
- return flags;
-}
-static inline void
-irq_restore(uintptr_t flags)
-{
- asm volatile("push %0; popf" :: "rm" (flags) : "memory","cc");
-}
-
void register_exception(int num, exc_handler_t addr);
void register_interrupt(int num, int_handler_t addr);