Move string functions/utils from HAL to std/string
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
#include "dev.h"
|
||||
#include "hshtb.h"
|
||||
#include "hal/hal.h"
|
||||
#include "std/string.h"
|
||||
#include "termdev.h"
|
||||
#include "ps2kbdev.h"
|
||||
#include "serialdev.h"
|
||||
@ -12,7 +13,7 @@
|
||||
DevTable DEVTABLE;
|
||||
|
||||
void dev_init(void) {
|
||||
hal_memset(&DEVTABLE, 0, sizeof(DEVTABLE));
|
||||
memset(&DEVTABLE, 0, sizeof(DEVTABLE));
|
||||
spinlock_init(&DEVTABLE.spinlock);
|
||||
|
||||
termdev_init();
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user