forked from KolibriOS/kolibrios
update read_file
git-svn-id: svn://kolibrios.org@429 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
0e065d64a6
commit
e779187e24
@ -452,10 +452,13 @@ proc read_file stdcall,file_name:dword, buffer:dword, off:dword,\
|
|||||||
mov byte [buff+4], al
|
mov byte [buff+4], al
|
||||||
mov [name], ebx
|
mov [name], ebx
|
||||||
|
|
||||||
mov eax, 70
|
pushad
|
||||||
lea ebx, [cmd]
|
push eax
|
||||||
sub ebx, new_app_base
|
lea eax, [cmd]
|
||||||
int 0x40
|
sub eax, new_app_base
|
||||||
|
call file_system_lfn
|
||||||
|
pop eax
|
||||||
|
popad
|
||||||
ret
|
ret
|
||||||
endp
|
endp
|
||||||
|
|
||||||
|
@ -838,12 +838,12 @@ endg
|
|||||||
|
|
||||||
build_scheduler:
|
build_scheduler:
|
||||||
|
|
||||||
mov esi,boot_sched_1
|
; mov esi,boot_sched_1
|
||||||
call boot_log
|
; call boot_log
|
||||||
call build_process_gdt_tss_pointer
|
call build_process_gdt_tss_pointer
|
||||||
|
|
||||||
mov esi,boot_sched_2
|
; mov esi,boot_sched_2
|
||||||
call boot_log
|
; call boot_log
|
||||||
call build_interrupt_table
|
call build_interrupt_table
|
||||||
|
|
||||||
ret
|
ret
|
||||||
|
@ -502,6 +502,15 @@ B32:
|
|||||||
mov [graph_data_l+4],al
|
mov [graph_data_l+4],al
|
||||||
mov [graph_data_l+7],ah
|
mov [graph_data_l+7],ah
|
||||||
|
|
||||||
|
|
||||||
|
; BUILD SCHEDULER
|
||||||
|
|
||||||
|
call build_scheduler ; sys32.inc
|
||||||
|
|
||||||
|
; LOAD IDT
|
||||||
|
lidt [cs:idtreg]
|
||||||
|
cli
|
||||||
|
|
||||||
;!!!!!!!!!!!!!!!!!!!!!!!!!!
|
;!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
include 'detect/disks.inc'
|
include 'detect/disks.inc'
|
||||||
;!!!!!!!!!!!!!!!!!!!!!!!!!!
|
;!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
@ -537,6 +546,7 @@ include 'vmodeld.inc'
|
|||||||
pop eax
|
pop eax
|
||||||
popad
|
popad
|
||||||
|
|
||||||
|
|
||||||
; mov esi,char
|
; mov esi,char
|
||||||
; xor ebx,ebx
|
; xor ebx,ebx
|
||||||
; mov ecx,2560;26000
|
; mov ecx,2560;26000
|
||||||
@ -575,14 +585,6 @@ include 'vmodeld.inc'
|
|||||||
mov esi,boot_tss
|
mov esi,boot_tss
|
||||||
call boot_log
|
call boot_log
|
||||||
|
|
||||||
; BUILD SCHEDULER
|
|
||||||
|
|
||||||
call build_scheduler ; sys32.inc
|
|
||||||
|
|
||||||
; LOAD IDT
|
|
||||||
lidt [cs:idtreg]
|
|
||||||
cli
|
|
||||||
|
|
||||||
mov esi,boot_devices
|
mov esi,boot_devices
|
||||||
call boot_log
|
call boot_log
|
||||||
call detect_devices
|
call detect_devices
|
||||||
|
Loading…
Reference in New Issue
Block a user