mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
Created physical memory manager. moved printMemoryMap to kernel
This commit is contained in:
+4
-4
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user