summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/amd64/amd64/machdep.c12
-rw-r--r--sys/include/sys/machdep.h2
2 files changed, 14 insertions, 0 deletions
diff --git a/sys/arch/amd64/amd64/machdep.c b/sys/arch/amd64/amd64/machdep.c
index 7eb1407..6342aab 100644
--- a/sys/arch/amd64/amd64/machdep.c
+++ b/sys/arch/amd64/amd64/machdep.c
@@ -133,6 +133,18 @@ pre_init(void)
}
void
+intr_mask(void)
+{
+ __ASMV("cli");
+}
+
+void
+intr_unmask(void)
+{
+ __ASMV("sti");
+}
+
+void
processor_init(void)
{
/* Indicates what doesn't need to be init anymore */
diff --git a/sys/include/sys/machdep.h b/sys/include/sys/machdep.h
index 4612dcf..713b7db 100644
--- a/sys/include/sys/machdep.h
+++ b/sys/include/sys/machdep.h
@@ -39,6 +39,8 @@
void processor_init(void);
void processor_halt(void);
+void intr_mask(void);
+void intr_unmask(void);
__weak void chips_init(void);
__weak void pre_init(void);
__weak void serial_dbgch(char c);