Add memory copy and move functions. Required by gcc, and we'll also use

them soon
This commit is contained in:
2017-12-03 22:28:58 +01:00
parent c19bc51bdc
commit 954696728c
2 changed files with 52 additions and 0 deletions

View File

@@ -21,3 +21,12 @@
#define PAGE_SIZE 0x1000
#define ENTRIES_PER_PT 512
#ifndef __ASSEMBLER__
#include <stddef.h>
void *memcpy(void *dst, const void *src, size_t n);
void *memset(void *s, int c, size_t n);
void *memmove(void *dest, const void *src, size_t n);
int memcmp(const void *s1, const void *s2, size_t n);
size_t strlen(const char *s);
#endif