feat: introduced tasking, added paging (no vm), moved malloc, added
syscalls, other stuff
This commit is contained in:
@@ -15,7 +15,7 @@ int memcpy(uint8_t *dst, const uint8_t *src, int amount) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int memset(char *dst, char data, int amount) {
|
||||
int memset(uint8_t *dst, char data, int amount) {
|
||||
for (int i = 0; i < amount; ++i) {
|
||||
dst[i] = data;
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
int memcpy(uint8_t *dst, const uint8_t *src, int amount);
|
||||
|
||||
int memset(char *dst, char data, int amount);
|
||||
int memset(uint8_t *dst, char data, int amount);
|
||||
|
||||
char *itoa(int value, char *buffer, int base);
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
#include <libc/libc.h>
|
||||
#include <types.h>
|
||||
#include <kprint.h>
|
||||
#include <mem/mem.h>
|
||||
#include <drivers/keyboard.h>
|
||||
#include <mem/malloc.h>
|
||||
|
||||
#define RESULT_SIZE 256
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#include "ringqueue.h"
|
||||
#include <libc/libc.h>
|
||||
#include <mem/mem.h>
|
||||
#include <mem/malloc.h>
|
||||
|
||||
#define calc_pos(buffer, index) ((buffer->object_size) * (index))
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ int strncmp(const char *s1, const char *s2, int n) {
|
||||
if (s1[i] > s2[i]) {
|
||||
return -1;
|
||||
}
|
||||
if (s2[i] < s1[i]) {
|
||||
if (s1[i] < s2[i]) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user