Move string functions/utils from HAL to std/string
This commit is contained in:
@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user