forked from KolibriOS/kolibrios
kernel heap size restored to correct value after rev. 1130
git-svn-id: svn://kolibrios.org@1332 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
3bfcc9b988
commit
c9db05056e
@ -140,7 +140,7 @@ proc init_kernel_heap
|
||||
|
||||
mov ecx, [pg_data.kernel_pages]
|
||||
shl ecx, 12
|
||||
sub ecx, HEAP_BASE+4096*MEM_BLOCK_SIZE
|
||||
sub ecx, HEAP_BASE-OS_BASE+4096*MEM_BLOCK_SIZE
|
||||
mov [heap_size], ecx
|
||||
mov [heap_free], ecx
|
||||
mov [ebx+block_size], ecx
|
||||
|
@ -114,9 +114,9 @@ proc init_mem
|
||||
mov edx, (OS_BASE/4096)
|
||||
jmp .set
|
||||
@@:
|
||||
cmp edx, (HEAP_BASE+HEAP_MIN_SIZE)/4096
|
||||
cmp edx, (HEAP_BASE-OS_BASE+HEAP_MIN_SIZE)/4096
|
||||
jae .set
|
||||
mov edx, (HEAP_BASE+HEAP_MIN_SIZE)/4096
|
||||
mov edx, (HEAP_BASE-OS_BASE+HEAP_MIN_SIZE)/4096
|
||||
.set:
|
||||
mov [pg_data.kernel_pages-OS_BASE], edx
|
||||
shr edx, 10
|
||||
|
Loading…
Reference in New Issue
Block a user