Slight cleanup and fixed SSP

This commit is contained in:
2026-03-22 14:55:37 +01:00
parent 8cbe050f35
commit eca7c957e2
7 changed files with 14 additions and 148 deletions
-25
View File
@@ -1,25 +0,0 @@
#ifndef _BITMAP_H
#define _BITMAP_H
#include <kernel.h>
#define BLOCK_SIZE 4096
#define BMAP_NOT_FOUND ((size_t)-1)
typedef struct bitmap_t {
void* map;
size_t blocks; // Eqiv. to # of bits
size_t bytes; // ceil(blocks / 8)
size_t used; // # of bits set to 0
size_t membase; // Used with allocators
int ready;
} bitmap_t;
void* bmap_ptr(bitmap_t* map, size_t bit);
void bmap_set(bitmap_t* map, size_t bit, int val);
int bmap_get(bitmap_t* map, size_t bit);
void bmap_set_area(bitmap_t* map, size_t base, size_t len, int val);
size_t bmap_get_area(bitmap_t* map, size_t len, int val);
void bmap_set_all(bitmap_t* map, int val);
#endif
+1 -4
View File
@@ -14,11 +14,8 @@
int timer_init(void);
void timer_wait(size_t ticks);
int pit_init(void);
void pit_phase(uint8_t ch, uint8_t mode, uint32_t hz);
void pit_handler(struct isr_int_frame* iframe);
int hpet_init(void);
// TODO: rtc_init(void);
// TODO: hpet_init(void);
#endif