aboutsummaryrefslogtreecommitdiffstats
path: root/vgaterminal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vgaterminal.cpp')
-rw-r--r--vgaterminal.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/vgaterminal.cpp b/vgaterminal.cpp
index 8158b14..f2bb081 100644
--- a/vgaterminal.cpp
+++ b/vgaterminal.cpp
@@ -46,9 +46,11 @@ void VGATerminal::checkpos() noexcept
void VGATerminal::updatecursor() const noexcept
{
+ asm volatile("cli");
outb(0x03d4, 0x0f);
outb(0x03d5, static_cast<std::uint8_t>(offset));
outb(0x03d4, 0x0e);
outb(0x03d5, static_cast<std::uint8_t>(offset >> 8));
+ asm volatile("sti");
}