Mercurial > lcfOS
view kernel/src/memory.c3 @ 384:94f5b719ad0b
Small refactor
author | Windel Bouwman |
---|---|
date | Sun, 27 Apr 2014 17:50:25 +0200 |
parents | 6df89163e114 |
children | 2ec730e45ea1 |
line wrap: on
line source
module memory; import arch; import io; var int ptr; function void init() { ptr = 0; io.print2("ptr = ", ptr); // TODO } function u8* Alloc(int size) { ptr = ptr + size; return cast<u8*>(ptr); }