summaryrefslogtreecommitdiffhomepage
path: root/dev/kernel/HALKit
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-07-21 09:07:46 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-07-21 09:07:46 +0100
commit514a5540e4fdb94fe504792191b66444f03956fa (patch)
tree0229ab5caa171d43dba7b300d35b29a87ec01068 /dev/kernel/HALKit
parent4e61e22c3da59b259741e57298725330791aed3e (diff)
feat: HAL/HPET: document source code.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/HALKit')
-rw-r--r--dev/kernel/HALKit/AMD64/HalTimer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/dev/kernel/HALKit/AMD64/HalTimer.cc b/dev/kernel/HALKit/AMD64/HalTimer.cc
index ae3271f6..22876a96 100644
--- a/dev/kernel/HALKit/AMD64/HalTimer.cc
+++ b/dev/kernel/HALKit/AMD64/HalTimer.cc
@@ -62,7 +62,7 @@ HardwareTimer::HardwareTimer(UInt64 ms) : fWaitFor(ms) {
if (!(*((volatile UInt64*) ((UInt8*) fDigitalTimer + kHPETConfigRegValue)) & (1 << 0))) {
*((volatile UInt64*) ((UInt8*) fDigitalTimer + kHPETConfigRegValue)) =
*((volatile UInt64*) ((UInt8*) fDigitalTimer + kHPETConfigRegValue)) | (1 << 0) |
- (1 << 3); // enable timer
+ (1 << 3); // enable timer & one shot conf
}
}