dthain / basekernel

A simple OS kernel for research, teaching, and fun.
GNU General Public License v2.0
798 stars 110 forks source link

Fix kernel/clock.c to configure PIT properly #289

Closed DevHyperCoder closed 11 months ago

DevHyperCoder commented 11 months ago

Fixed a bug where the clock ticked twice as fast. This commit bumps the frequency (CLICKS_PER_SECOND) to 20, and sets the PIT counter to the correct value.

Closes #288

dthain commented 11 months ago

Looks good, thanks!