git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Kernel - Change virtual memory API to use void* for virtual addresses
[tpg/acess2.git]
/
KernelLand
/
Kernel
/
heap.c
diff --git
a/KernelLand/Kernel/heap.c
b/KernelLand/Kernel/heap.c
index
6e0a4c1
..
d4304c2
100755
(executable)
--- a/
KernelLand/Kernel/heap.c
+++ b/
KernelLand/Kernel/heap.c
@@
-97,7
+97,7
@@
void *Heap_Extend(size_t Bytes)
// Heap expands in pages
for( Uint i = 0; i < pages; i ++ )
{
- if( !MM_Allocate( (t
VAddr)gHeapEnd+(i<<12)
) )
+ if( !MM_Allocate( (t
Page*)gHeapEnd + i
) )
{
Warning("OOM - Heap_Extend (%i bytes)");
Heap_Dump();
UCC
git Repository :: git.ucc.asn.au