annotate kernel/src/memory.c3 @ 359:b4ac28efcdf4

Reorganize files
author Windel Bouwman
date Fri, 14 Mar 2014 15:41:55 +0100
parents kernel/memory.c3@6753763d3bec
children 577ed7fb3fe4
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
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
3 import process;
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
296
9417caea2eb3 Directorized some backend files
Windel Bouwman
parents: 293
diff changeset
7 function u8* Alloc(int size)
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
8 {
296
9417caea2eb3 Directorized some backend files
Windel Bouwman
parents: 293
diff changeset
9 ptr = ptr + size;
301
6753763d3bec merge codegen into ppci package
Windel Bouwman
parents: 296
diff changeset
10 return cast<u8*>(ptr);
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
11 }
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
12
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
13