Add memory copy and move functions. Required by gcc, and we'll also use
them soon
This commit is contained in:
1 parent
c19bc51bdc
commit
954696728c
2 files changed
+52
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user