Created physical memory manager. moved printMemoryMap to kernel

This commit is contained in:
2024-04-25 21:06:22 +02:00
parent 71be1523b3
commit 753c983c9d
5 changed files with 153 additions and 37 deletions
+4 -4
View File
@@ -82,15 +82,15 @@ uint32_t strlen(const char* str) {
}
// Memory functions
char* memcopy(char* src, char* dst, uint16_t length) {
for (int i = 0; i < length; i++) {
char* memcopy(char* src, char* dst, uint32_t length) {
for (uint32_t i = 0; i < length; i++) {
*(dst + i) = *(src + i);
}
return dst;
}
char* memset(char* dst, char value, uint16_t length) {
for (int i = 0; i < length; i++) {
char* memset(char* dst, char value, uint32_t length) {
for (uint32_t i = 0; i < length; i++) {
*(dst + i) = value;
}
return dst;