Amjad50 / Emerald

An Operating System in Rust
https://amjad.alsharafi.dev/Emerald
MIT License
12 stars 0 forks source link

Add clock support and sleep #54

Closed Amjad50 closed 9 months ago

Amjad50 commented 9 months ago

need to do 2 things:

Amjad50 commented 9 months ago

The way we have implemented it is, ClockDevice which is a trait that we can add to any device.

currently, we only have 2, HPET, and TSC, HPET will be used to calibrate TSC, and we will continue to use it as the main thing.

Currently, we have sleep and get_time syscalls that use these functionalities.

Look at the documentation for more details.