summaryrefslogtreecommitdiff
path: root/kernel/rtl/memory.c
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2016-06-01 19:37:09 -0700
committerScott Gasch <[email protected]>2016-06-01 19:37:09 -0700
commit0a41dae5f406d498b5c9ab1542cb5660e0d982f6 (patch)
tree67ade9fe31cfd0458cc485e95550f7aaf14abdd1 /kernel/rtl/memory.c
Initial checkin of toy OS project.HEADmaster
Diffstat (limited to 'kernel/rtl/memory.c')
-rw-r--r--kernel/rtl/memory.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/kernel/rtl/memory.c b/kernel/rtl/memory.c
new file mode 100644
index 0000000..f4f845e
--- /dev/null
+++ b/kernel/rtl/memory.c
@@ -0,0 +1,29 @@
+//+----------------------------------------------------------------------------
+//
+// File: memory.c
+//
+// Module:
+//
+// Synopsis:
+//
+// Copyright (C) Scott Gasch
+//
+// Created: sgasch 5 Jul 2003
+//
+//+----------------------------------------------------------------------------
+
+#include "kernel.h"
+
+void
+RtlSetMemory(void *pStart,
+ BYTE bFill,
+ ULONG uLength)
+{
+ BYTE *p = (BYTE *)pStart;
+
+ while(uLength > 0)
+ {
+ *p++ = bFill;
+ uLength--;
+ }
+}