Subversion Repositories Kolibri OS

Rev

Rev 4273 | Rev 5356 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4273 Rev 4313
Line 9... Line 9...
9
;;  Distributed under GPL. See file COPYING for details.        ;;
9
;;  Distributed under GPL. See file COPYING for details.        ;;
10
;;  Copyright 2003 Ville Turjanmaa                              ;;
10
;;  Copyright 2003 Ville Turjanmaa                              ;;
11
;;                                                              ;;
11
;;                                                              ;;
12
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
12
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 13... Line 13...
13
 
13
 
Line 14... Line 14...
14
$Revision: 4273 $
14
$Revision: 4313 $
15
 
15
 
16
align 4 ;3A08
16
align 4 ;3A08
17
build_interrupt_table:
17
build_interrupt_table:
Line 384... Line 384...
384
        ; ecx = new amount of memory
384
        ; ecx = new amount of memory
Line 385... Line 385...
385
 
385
 
386
;        cmp    eax,1
386
;        cmp    eax,1
387
        dec     ebx
387
        dec     ebx
-
 
388
        jnz     .no_application_mem_resize
-
 
389
 
-
 
390
        mov     eax, [pg_data.pages_free]
-
 
391
        shl     eax, 12
-
 
392
        cmp     eax, ecx
-
 
393
        jae     @f
-
 
394
 
-
 
395
        xor     eax, eax
-
 
396
        inc     eax
-
 
397
        jmp     .store_result
388
        jnz     .no_application_mem_resize
398
@@:
-
 
399
        stdcall new_mem_resize, ecx
389
        stdcall new_mem_resize, ecx
400
.store_result:
390
        mov     [esp+32], eax
401
        mov     [esp+32], eax
391
.no_application_mem_resize:
402
.no_application_mem_resize:
Line 392... Line 403...
392
        ret
403
        ret