Big code refactor, get rid of HAL entirely
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
#include "bitmap.h"
|
||||
#include "bitmap/bitmap.h"
|
||||
#include "util/util.h"
|
||||
#include "kprintf.h"
|
||||
|
||||
|
||||
@ -4,8 +4,7 @@
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "hal/hal.h"
|
||||
#include "vmm/vmm.h"
|
||||
|
||||
typedef struct {
|
||||
uint8_t *map;
|
||||
@ -17,7 +16,7 @@ typedef struct {
|
||||
} BitMap;
|
||||
|
||||
#define BITMAP_BLOCKS_PER_BYTE 8
|
||||
#define BITMAP_BLOCK_SIZE HAL_PAGE_SIZE
|
||||
#define BITMAP_BLOCK_SIZE VMM_PAGE_SIZE
|
||||
#define BITMAP_INVALID_BLOCK ((size_t)-1)
|
||||
|
||||
void *bitmap_toptr(BitMap *bm, size_t block);
|
||||
|
||||
Reference in New Issue
Block a user