annotate kernel/src/memory.c3 @ 371:9c95f93f5b7a

Python 3.2 compatible issues
author Windel Bouwman
date Fri, 21 Mar 2014 12:01:19 +0100
parents 577ed7fb3fe4
children 9667d78ba79e
rev   line source
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
1 module memory;
293
6aa721e7b10b Try to improve build sequence
Windel Bouwman
parents: 283
diff changeset
2
367
577ed7fb3fe4 Try to make thumb work again
Windel Bouwman
parents: 359
diff changeset
3 import archmem;
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
4
301
6753763d3bec merge codegen into ppci package
Windel Bouwman
parents: 296
diff changeset
5 var int ptr;
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
6
367
577ed7fb3fe4 Try to make thumb work again
Windel Bouwman
parents: 359
diff changeset
7 function void init()
577ed7fb3fe4 Try to make thumb work again
Windel Bouwman
parents: 359
diff changeset
8 {
577ed7fb3fe4 Try to make thumb work again
Windel Bouwman
parents: 359
diff changeset
9 archmem.init();
577ed7fb3fe4 Try to make thumb work again
Windel Bouwman
parents: 359
diff changeset
10 // TODO
577ed7fb3fe4 Try to make thumb work again
Windel Bouwman
parents: 359
diff changeset
11 }
577ed7fb3fe4 Try to make thumb work again
Windel Bouwman
parents: 359
diff changeset
12
296
9417caea2eb3 Directorized some backend files
Windel Bouwman
parents: 293
diff changeset
13 function u8* Alloc(int size)
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
14 {
296
9417caea2eb3 Directorized some backend files
Windel Bouwman
parents: 293
diff changeset
15 ptr = ptr + size;
301
6753763d3bec merge codegen into ppci package
Windel Bouwman
parents: 296
diff changeset
16 return cast<u8*>(ptr);
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
17 }
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
18
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
19