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

@ -10,6 +10,7 @@
#include "hal/hal.h"
#include "util/util.h"
#include "dev/dev.h"
#include "std/string.h"
typedef struct {
uint8_t driveattrs;
@ -62,7 +63,7 @@ bool diskpart_mbr_probe(StoreDev *sd) {
LOG("diskpart", "probing for MBR\n");
MBR mbr;
hal_memset(&mbr, 0, sizeof(mbr));
memset(&mbr, 0, sizeof(mbr));
sd->read(sd, (uint8_t *const)&mbr, 0, 0, sizeof(mbr));
if (!(mbr.validsign[0] == 0x55 && mbr.validsign[1] == 0xAA)) {