annotate kernel/memory.c3 @ 294:e89cca5779b0

Merge
author Windel Bouwman
date Thu, 28 Nov 2013 20:39:56 +0100
parents 6aa721e7b10b
children 9417caea2eb3
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
293
6aa721e7b10b Try to improve build sequence
Windel Bouwman
parents: 283
diff changeset
5 var uint8_t* ptr;
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
6
293
6aa721e7b10b Try to improve build sequence
Windel Bouwman
parents: 283
diff changeset
7 function uint8_t* Alloc(int size)
283
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
8 {
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
9 ptr += size;
c9781c73e7e2 Added first kernel files
Windel Bouwman
parents:
diff changeset
10 return ptr;
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