mirror of
https://github.com/johndoe6345789/MetalOS.git
synced 2026-04-24 13:45:02 +00:00
Fix consistency issues identified in code review
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
@@ -224,8 +224,7 @@ void* HeapAllocator::calloc(size_t num, size_t size) {
|
||||
*/
|
||||
void HeapAllocator::free(void* ptr) {
|
||||
(void)ptr;
|
||||
// TODO: Implement proper free with a real allocator
|
||||
// For now, bump allocator doesn't support freeing
|
||||
// Bump allocator doesn't support freeing individual allocations
|
||||
}
|
||||
|
||||
/* Memory utility functions */
|
||||
|
||||
@@ -52,7 +52,7 @@ Timer::Timer() : ticks(0) {}
|
||||
* @brief Initialize the PIT to generate interrupts at specified frequency
|
||||
*
|
||||
* The PIT works by counting down from a divisor value at its base frequency
|
||||
* of 1.193182 MHz. When the counter reaches zero, it generates an interrupt
|
||||
* of 1193182 Hz (approximately 1.19 MHz). When the counter reaches zero, it generates an interrupt
|
||||
* and reloads the divisor.
|
||||
*
|
||||
* For example, to get 1000 Hz (1ms ticks):
|
||||
|
||||
Reference in New Issue
Block a user