Subversion Repositories Kolibri OS

Rev

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

Rev 892 Rev 897
Line 56... Line 56...
56
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
56
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
57
 
57
 
Line 58... Line 58...
58
include 'macros.inc'
58
include 'macros.inc'
Line 59... Line 59...
59
 
59
 
Line 60... Line 60...
60
$Revision: 892 $
60
$Revision: 897 $
Line 61... Line 61...
61
 
61
 
Line 129... Line 129...
129
public _rd_root_end
129
public _rd_root_end
130
 
130
 
Line 131... Line 131...
131
public _load_file@4
131
public _load_file@4
Line -... Line 132...
-
 
132
 
-
 
133
public mnt_exec
-
 
134
 
-
 
135
public _new_app_space
-
 
136
public pe_app_param
132
 
137
 
Line 133... Line 138...
133
public _strncmp@12
138
public _strncmp@12
Line 134... Line 139...
134
 
139
 
Line 191... Line 196...
191
 
196
 
Line 192... Line 197...
192
@mem_alloc@8        equ  _MemAlloc
197
@mem_alloc@8        equ  _MemAlloc
193
@mem_free@4         equ  _MemFree
198
@mem_free@4         equ  _MemFree
Line -... Line 199...
-
 
199
 
-
 
200
extrn  _sys_exec
194
 
201
 
195
extrn @load_pe@4
202
;extrn @load_pe@4
Line 196... Line 203...
196
extrn @load_pe_driver@4
203
extrn @load_pe_driver@4
197
 
204
 
Line 198... Line 205...
198
extrn _slab_cache_init
205
extrn _slab_cache_init
Line 199... Line 206...
199
extrn _alloc_page
206
extrn _alloc_page
Line -... Line 207...
-
 
207
 
Line 200... Line 208...
200
 
208
extrn _get_free_mem
Line 201... Line 209...
201
extrn _get_free_mem
209
 
Line 372... Line 380...
372
	   mov [tss._io],128
380
	   mov [tss._io],128
373
;Add IO access table - bit array of permitted ports
381
;Add IO access table - bit array of permitted ports
374
	   mov edi, tss._io_map_0
382
	   mov edi, tss._io_map_0
375
	   xor eax, eax
383
	   xor eax, eax
376
	   not eax
384
       ;    not eax
377
	   mov ecx, 8192/4
385
	   mov ecx, 8192/4
378
	   rep stosd		     ; access to 4096*8=65536 ports
386
	   rep stosd		     ; access to 4096*8=65536 ports
379
 
387
 
Line 380... Line 388...
380
	   mov	ax,tss0
388
	   mov	ax,tss0
381
	   ltr	ax
389
	   ltr	ax
Line 886... Line 894...
886
	call	load_default_skin
894
	call	load_default_skin
Line 887... Line 895...
887
 
895
 
Line 888... Line 896...
888
;protect io permission map
896
;protect io permission map
889
 
897
 
890
	   mov esi, [default_io_map]
898
         ;  mov esi, [default_io_map]
891
         ;  stdcall map_page,esi,(tss._io_map_0-OS_BASE), PG_MAP
899
         ;  stdcall map_page,esi,(tss._io_map_0-OS_BASE), PG_MAP
Line 892... Line 900...
892
         ;  add esi, 0x1000
900
         ;  add esi, 0x1000
Line 905... Line 913...
905
 
913
 
Line 906... Line 914...
906
; LOAD FIRST APPLICATION
914
; LOAD FIRST APPLICATION
Line -... Line 915...
-
 
915
 
-
 
916
 
907
 
917
        push 0
908
 
918
        push 0
-
 
919
        push read_firstapp
Line 909... Line 920...
909
	mov	ebp, firstapp
920
        call _sys_exec
910
	call	fs_execute_from_sysdir
921
        add esp, 12
Line 911... Line 922...
911
 
922
 
Line 3457... Line 3468...
3457
	pop  edx eax
3468
	pop  edx eax
3458
	ret
3469
	ret
Line 3459... Line 3470...
3459
 
3470
 
3460
iglobal
3471
iglobal
3461
  cpustring db 'CPU',0
3472
  cpustring db '/sys/CPU',0
Line 3462... Line 3473...
3462
endg
3473
endg
3463
 
3474
 
3464
uglobal
3475
uglobal
Line 3472... Line 3483...
3472
 
3483
 
Line 3473... Line 3484...
3473
    cmp   [ctrl_alt_del], 1
3484
    cmp   [ctrl_alt_del], 1
3474
    jne   nocpustart
3485
    jne   nocpustart
Line -... Line 3486...
-
 
3486
 
-
 
3487
        push 0
3475
 
3488
        push 0
3476
	mov	ebp, cpustring
3489
        push cpustring
-
 
3490
        call _sys_exec
Line 3477... Line 3491...
3477
	call	fs_execute_from_sysdir
3491
        add esp, 12
Line 3478... Line 3492...
3478
 
3492
 
3479
    mov   [ctrl_alt_del], 0
3493
    mov   [ctrl_alt_del], 0