diff options
author | Ian Moffett <ian@osmora.org> | 2024-02-29 22:03:12 -0500 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-02-29 22:03:12 -0500 |
commit | 2a9d7b9cc5f82eb60b295e4a689ac20f27dd65cb (patch) | |
tree | 4e29209c43a63ae9a59065ebaaa8cdaab01cc685 /sys/arch/amd64/amd64 | |
parent | f8bb4e99a64aa9df31465ee817fc5623a2822b63 (diff) |
kernel/amd64: machdep: Add wrappers over CLI/STI
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/arch/amd64/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/machdep.c | 12 |
1 files changed, 12 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 */ |