Move string functions/utils from HAL to std/string

This commit is contained in:
2025-11-11 19:54:09 +01:00
parent f5dae4984d
commit 344952fb5f
27 changed files with 200 additions and 228 deletions

View File

@ -9,6 +9,7 @@
#include "hal/hal.h"
#include "bootinfo/bootinfo.h"
#include "errors.h"
#include "std/string.h"
int32_t fbdev_getinfo(struct Dev *dev, uint8_t *buffer, size_t len, uint64_t pid) {
(void)dev; (void)pid;
@ -24,7 +25,7 @@ int32_t fbdev_getinfo(struct Dev *dev, uint8_t *buffer, size_t len, uint64_t pid
.fontw = 8,
.fonth = 16,
};
hal_memcpy(buffer, &info, sizeof(info));
memcpy(buffer, &info, sizeof(info));
return E_OK;
}