Initial checkin of toy OS project.
[os.git] / kernel / rtl / memory.c
1 //+----------------------------------------------------------------------------
2 //
3 // File:     memory.c
4 //
5 // Module:   
6 //
7 // Synopsis: 
8 //
9 // Copyright (C) Scott Gasch
10 //
11 // Created:  sgasch  5 Jul 2003
12 //
13 //+----------------------------------------------------------------------------
14
15 #include "kernel.h"
16
17 void 
18 RtlSetMemory(void *pStart, 
19              BYTE bFill,
20              ULONG uLength)
21 {
22     BYTE *p = (BYTE *)pStart;
23
24     while(uLength > 0)
25     {
26         *p++ = bFill;
27         uLength--;
28     }
29 }