git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: standard vga support (mode switching, framebuffer remapping)
[lunaix-os.git]
/
lunaix-os
/
hal
/
timer
/
hwtimer.c
diff --git
a/lunaix-os/hal/timer/hwtimer.c
b/lunaix-os/hal/timer/hwtimer.c
index 1a994f7d3d163dcce4abaec3c9d5d530f3875bf1..91dca07459d8e9caf450ecbaab8c9cddd78d8f6d 100644
(file)
--- a/
lunaix-os/hal/timer/hwtimer.c
+++ b/
lunaix-os/hal/timer/hwtimer.c
@@
-58,7
+58,9
@@
hwtimer_init(u32_t hertz, void* tick_callback)
current_timer = hwt_ctx;
current_timer = hwt_ctx;
- struct device* timerdev = device_a
ddsys(NULL, hwt_ctx, hwt_ctx->name
);
+ struct device* timerdev = device_a
llocsys(NULL, hwt_ctx
);
timerdev->ops.exec_cmd = __hwtimer_ioctl;
timerdev->ops.exec_cmd = __hwtimer_ioctl;
+
+ device_register(timerdev, &hwt_ctx->class, hwt_ctx->name);
}
\ No newline at end of file
}
\ No newline at end of file