Subversion Repositories Kolibri OS

Rev

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

Rev 8876 Rev 9406
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2020. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2020. 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: 8876 $
8
$Revision: 9406 $
9
 
9
 
Line 1259... Line 1259...
1259
        stdcall load_PE, [file]
1259
        stdcall load_PE, [file]
1260
        test    eax, eax
1260
        test    eax, eax
1261
        jz      .fail
1261
        jz      .fail
Line 1262... Line 1262...
1262
 
1262
 
-
 
1263
        mov     esi, eax
1263
        mov     esi, eax
1264
        push    ebx  ;  base addres driver
1264
        push    [cmdline]
1265
        push    [cmdline]
1265
        push    DRV_ENTRY
1266
        push    DRV_ENTRY
1266
        call    eax
1267
        call    eax
1267
        pop     ecx
1268
        pop     ecx
-
 
1269
        pop     ecx
1268
        pop     ecx
1270
        pop     ebx
1269
        test    eax, eax
1271
        test    eax, eax
Line 1270... Line 1272...
1270
        jz      .fail
1272
        jz      .fail_init
1271
 
1273
 
1272
        mov     [eax+SRV.entry], esi
1274
        mov     [eax+SRV.entry], esi
1273
        pop     esi
1275
        pop     esi
-
 
1276
        ret
1274
        ret
1277
.fail_init:
1275
 
1278
        stdcall kernel_free, ebx  ;clear memory driver
1276
.fail:
1279
.fail:
1277
        xor     eax, eax
1280
        xor     eax, eax
1278
        pop     esi
1281
        pop     esi