view kernel/src/memory.c3 @ 377:9667d78ba79e

Switched to xml for project description
author Windel Bouwman
date Fri, 11 Apr 2014 15:47:50 +0200
parents 577ed7fb3fe4
children 6df89163e114
line wrap: on
line source

module memory;

import arch;

var int ptr;

function void init()
{
    arch.init();
    // TODO
}

function u8* Alloc(int size)
{
    ptr = ptr + size;
    return cast<u8*>(ptr);
}