Mercurial > lcfOS
view kernel/src/memory.c3 @ 388:e07c2a9abac1
Enabled paging in kernel
author | Windel Bouwman |
---|---|
date | Fri, 02 May 2014 14:51:46 +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); }