Subversion Repositories Kolibri OS

Rev

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

Rev 485 Rev 488
Line 52... Line 52...
52
;;
52
;;
53
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
53
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 54... Line 54...
54
 
54
 
Line 55... Line 55...
55
include 'macros.inc'
55
include 'macros.inc'
Line 56... Line 56...
56
 
56
 
57
$Revision: 485 $
57
$Revision: 488 $
58
 
58
 
Line 534... Line 534...
534
 
534
 
535
;!!!!!!!!!!!!!!!!!!!!!!!
535
;!!!!!!!!!!!!!!!!!!!!!!!
536
include 'vmodeld.inc'
536
include 'vmodeld.inc'
Line -... Line 537...
-
 
537
;!!!!!!!!!!!!!!!!!!!!!!!
-
 
538
 
-
 
539
  call Parser_params
-
 
540
 
-
 
541
  mov ax,[BOOT_VAR+bx_from_load]
-
 
542
  cmp ax,'r1'		; åñëè ñðàì äèñê - òî íå ãðóçèòü áèáëèîòåêè
-
 
543
  je  no_lib_load
-
 
544
; LOADING LIBRARES
-
 
545
   stdcall dll.Load,@IMPORT				; SPraid - çàãðóçêà ôóíêöèîíàëà (ïîêà ÷òî èíè ôàéë)
-
 
546
   call load_conf_file					; prepare configuration file
537
;!!!!!!!!!!!!!!!!!!!!!!!
547
no_lib_load:
Line 538... Line 548...
538
 
548
 
539
; LOAD FONTS I and II
549
; LOAD FONTS I and II
540
 
550
 
541
        mov   esi,char
551
;        mov   esi,char
-
 
552
;        xor   ebx,ebx
-
 
553
;        mov   ecx,2560
-
 
554
;        mov   edx,FONT_I
-
 
555
;        call  fs_RamdiskRead
-
 
556
 
-
 
557
;        mov   esi,char2
542
        xor   ebx,ebx
558
;        xor   ebx,ebx
-
 
559
;        mov   ecx,2560;26000
-
 
560
;        mov   edx,FONT_II
-
 
561
;        call  fs_RamdiskRead
-
 
562
 
-
 
563
	pushad
-
 
564
	push	eax
-
 
565
	mov		eax,char
-
 
566
	call	file_system_lfn
-
 
567
	mov		eax,char2
Line 543... Line -...
543
        mov   ecx,2560
-
 
544
        mov   edx,FONT_I
-
 
545
        call  fs_RamdiskRead
-
 
546
 
-
 
547
        mov   esi,char2
-
 
Line 548... Line 568...
548
        xor   ebx,ebx
568
	call	file_system_lfn
549
        mov   ecx,2560;26000
569
	pop	eax
Line 550... Line 570...
550
        mov   edx,FONT_II
570
	popad 
Line 743... Line 763...
743
; LOAD FIRST APPLICATION
763
; LOAD FIRST APPLICATION
744
        cli
764
        cli
745
        cmp   byte [BOOT_VAR+0x9030],1
765
        cmp   byte [BOOT_VAR+0x9030],1
746
        jne   no_load_vrr_m
766
        jne   no_load_vrr_m
Line 747... Line 767...
747
 
767
 
-
 
768
;        mov ebp, vrr_m
-
 
769
;        xor ebx, ebx
-
 
770
;        xor edx, edx
-
 
771
;        call fs_execute
-
 
772
;        cmp   eax,2                  ; if vrr_m app found (PID=2)
-
 
773
;        je    first_app_found
-
 
774
 
-
 
775
 
-
 
776
        stdcall kernel_alloc, 0x100
-
 
777
        push eax    
-
 
778
        mov ebx,eax
-
 
779
        stdcall full_file_name,vrr_m,eax
-
 
780
        mov ebp, eax
748
        mov ebp, vrr_m
781
 
749
        xor ebx, ebx
782
        xor ebx, ebx
750
        xor edx, edx
783
        xor edx, edx
-
 
784
        call fs_execute
-
 
785
        pop ebx
-
 
786
        push eax
-
 
787
        stdcall kernel_free, ebx
751
        call fs_execute
788
        pop eax
752
        cmp   eax,2                  ; if vrr_m app found (PID=2)
789
        cmp   eax,2                  ; if vrr_m app found (PID=2)
Line 753... Line 790...
753
        je    first_app_found
790
        je    first_app_found
754
 
791
 
-
 
792
no_load_vrr_m:
-
 
793
;        mov ebp, firstapp
-
 
794
;        xor ebx, ebx
-
 
795
;        xor edx, edx
-
 
796
;        call fs_execute
-
 
797
;        cmp   eax,2                  ; continue if a process has been loaded
-
 
798
;        je    first_app_found
-
 
799
;        mov   eax, 0xDEADBEEF        ; otherwise halt
-
 
800
;        hlt
-
 
801
 
-
 
802
        stdcall kernel_alloc, 0x100
-
 
803
        push eax    
-
 
804
        mov ebx,eax
755
no_load_vrr_m:
805
        stdcall full_file_name,firstapp,eax
756
        mov ebp, firstapp
806
        mov ebp, eax
757
        xor ebx, ebx
807
        xor ebx, ebx
-
 
808
        xor edx, edx
-
 
809
        call fs_execute
-
 
810
        pop ebx
-
 
811
        push eax
758
        xor edx, edx
812
        stdcall kernel_free, ebx
759
        call fs_execute
813
        pop eax
760
        cmp   eax,2                  ; continue if a process has been loaded
814
        cmp   eax,2                  ; continue if a process has been loaded
761
        je    first_app_found
815
        je    first_app_found
-
 
816
        mov   eax, 0xDEADBEEF        ; otherwise halt
-
 
817
        hlt
762
        mov   eax, 0xDEADBEEF        ; otherwise halt
818
 
763
        hlt
819
 
Line 764... Line 820...
764
first_app_found:
820
first_app_found:
765
        cli
821
        cli
Line 3370... Line 3426...
3370
 
3426
 
3371
        pop  edx eax
3427
        pop  edx eax
Line 3372... Line 3428...
3372
        ret
3428
        ret
3373
 
3429
 
3374
iglobal
3430
iglobal
Line 3375... Line 3431...
3375
  cpustring db '/RD/1/CPU',0
3431
  cpustring db '%sys%/CPU',0
3376
endg
3432
endg
3377
 
3433