Move string functions/utils from HAL to std/string
This commit is contained in:
@ -7,6 +7,7 @@
|
||||
#include "spinlock/spinlock.h"
|
||||
#include "util/util.h"
|
||||
#include "hal/hal.h"
|
||||
#include "std/string.h"
|
||||
|
||||
PhysMem PHYS_MEM;
|
||||
|
||||
@ -37,7 +38,7 @@ void pmm_init(void) {
|
||||
size_t physbegin = memmap_ent->base;
|
||||
bm->map = (uint8_t *)(physbegin + BOOT_INFO.hhdm_off);
|
||||
|
||||
hal_memset(bm->map, 0xff, bm->nbytes);
|
||||
memset(bm->map, 0xff, bm->nbytes);
|
||||
for (size_t i = 0; i < BOOT_INFO.memmap_entrycount; i++) {
|
||||
struct limine_memmap_entry *entry = BOOT_INFO.memmap_entries[i];
|
||||
if (entry == memmap_ent) {
|
||||
|
||||
Reference in New Issue
Block a user