Subversion Repositories Kolibri OS

Rev

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

Rev 709 Rev 740
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
4
;; Distributed under terms of the GNU General Public License    ;;
4
;; Distributed under terms of the GNU General Public License    ;;
5
;;                                                              ;;
5
;;                                                              ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision: 709 $
8
$Revision: 740 $
9
 
9
 
Line 1009... Line 1009...
1009
           stdcall load_library, ebx
1009
           stdcall load_library, ebx
1010
           mov [esp+36], eax
1010
           mov [esp+36], eax
1011
           ret
1011
           ret
1012
@@:
1012
@@:
1013
           cmp     eax, 20
1013
           cmp     eax, 20
1014
           ja      .fail
1014
           ja      @F
1015
           mov     eax, ecx
1015
           mov     eax, ecx
1016
           call    user_realloc
1016
           call    user_realloc
1017
           mov     [esp+36], eax
1017
           mov     [esp+36], eax
1018
           ret
1018
           ret
-
 
1019
@@:
-
 
1020
           cmp eax, 21
-
 
1021
           ja @f
-
 
1022
           cmp ebx, OS_BASE
-
 
1023
           jae .fail
-
 
1024
 
-
 
1025
           stdcall load_PE, ebx
-
 
1026
 
-
 
1027
           test eax, eax
-
 
1028
           jz @F
-
 
1029
 
-
 
1030
           mov esi, eax
-
 
1031
           stdcall eax, DRV_ENTRY
-
 
1032
 
-
 
1033
           test eax, eax
-
 
1034
           jz @F
-
 
1035
 
-
 
1036
           mov [eax+SRV.entry], esi
-
 
1037
 
-
 
1038
@@:
-
 
1039
           mov [esp+36], eax
-
 
1040
           ret
-
 
1041
 
-
 
1042
 
1019
.fail:
1043
.fail:
1020
           xor eax, eax
1044
           xor eax, eax
1021
           mov [esp+36], eax
1045
           mov [esp+36], eax
1022
           ret
1046
           ret