feat(arm64): higher-half kernel, early MMU in boot, and VMM
This commit is contained in:
@@ -8,15 +8,15 @@ static void BufferAdd(ASCII* buffer, Size bufferSize, Size* written, ASCII chara
|
||||
(*written)++;
|
||||
}
|
||||
|
||||
void* StringSet(BytePointer destination, ASCII value, Size count) {
|
||||
BytePointer savedDestination = destination;
|
||||
Pointer MemorySet(Pointer destination, ASCII value, Size count) {
|
||||
BytePointer savedDestination = (BytePointer) destination;
|
||||
while (count--) {
|
||||
*destination++ = (UInt8) value;
|
||||
*savedDestination++ = (UInt8) value;
|
||||
}
|
||||
return savedDestination;
|
||||
return destination;
|
||||
}
|
||||
|
||||
void* MemoryCopy(void* destination, const void* source, Size count) {
|
||||
Pointer MemoryCopy(Pointer destination, const Pointer source, Size count) {
|
||||
BytePointer destinationBuffer = (BytePointer) destination;
|
||||
const UInt8* sourceBuffer = (const UInt8*) source;
|
||||
|
||||
|
||||
@@ -2,5 +2,14 @@
|
||||
#include <Lib/String.h>
|
||||
|
||||
void* memset(void* destination, int value, Size count) {
|
||||
return StringSet(destination, value, count);
|
||||
}
|
||||
return MemorySet(destination, value, count);
|
||||
}
|
||||
|
||||
// A little bit of Monica in my life
|
||||
// A little bit of Erica by my side
|
||||
// A little bit of Rita's all I need
|
||||
// A little bit of Tina's what I see
|
||||
// A little bit of Sandra in the sun
|
||||
// A little bit of Mary all night long
|
||||
// A little bit of Jessica, here I am
|
||||
// A little bit of you makes me your man
|
||||
Reference in New Issue
Block a user