summaryrefslogtreecommitdiff
path: root/Source/Kernel/Devices/Timer.class.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Kernel/Devices/Timer.class.cpp')
-rw-r--r--Source/Kernel/Devices/Timer.class.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Kernel/Devices/Timer.class.cpp b/Source/Kernel/Devices/Timer.class.cpp
index 42a6d1c..6b7ce55 100644
--- a/Source/Kernel/Devices/Timer.class.cpp
+++ b/Source/Kernel/Devices/Timer.class.cpp
@@ -2,6 +2,7 @@
#include <DeviceManager/Dev.ns.h>
#include <DeviceManager/Time.ns.h>
+#include <DeviceManager/Disp.ns.h>
using namespace Sys; //For outb
@@ -43,13 +44,15 @@ u32int Timer::time() {
}
void Timer::handleIRQ(registers_t registers, int irq) {
+ char what[] = "-\\|/";
if (irq == 0) {
m_ticks++;
if (m_ticks == m_frequency) {
m_ticks = 0;
m_seconds++;
}
- //Switching task is called in Dev::handleInterrupt
+ Disp::putChar(0, 0, what[m_ticks / (m_frequency / 4)], 0x07);
+ //Switching task is called in IRQ::interrupt_handler
}
}