comparison kernel/src/memory.c3 @ 367:577ed7fb3fe4

Try to make thumb work again
author Windel Bouwman
date Fri, 21 Mar 2014 10:27:57 +0100
parents b4ac28efcdf4
children 9667d78ba79e
comparison
equal deleted inserted replaced
366:39bf68bf1891 367:577ed7fb3fe4
1 module memory; 1 module memory;
2 2
3 import process; 3 import archmem;
4 4
5 var int ptr; 5 var int ptr;
6
7 function void init()
8 {
9 archmem.init();
10 // TODO
11 }
6 12
7 function u8* Alloc(int size) 13 function u8* Alloc(int size)
8 { 14 {
9 ptr = ptr + size; 15 ptr = ptr + size;
10 return cast<u8*>(ptr); 16 return cast<u8*>(ptr);