feat: introduced tasking, added paging (no vm), moved malloc, added

syscalls, other stuff
This commit is contained in:
2021-02-27 11:46:26 +01:00
parent 8f615b259c
commit 9f72d4bb1a
42 changed files with 907 additions and 292 deletions

View File

@@ -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;
}

View File

@@ -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);

View File

@@ -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

View File

@@ -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))

View File

@@ -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;
}
}