mirror of
https://github.com/reactos/reactos.git
synced 2024-07-01 18:24:24 +00:00
Indicate loading process by dots (in non-debug mode only)
svn path=/trunk/; revision=1496
This commit is contained in:
parent
b12b25cd3d
commit
8fe6e74b25
|
@ -609,6 +609,13 @@ pe_load_module:
|
||||||
;;
|
;;
|
||||||
mov [_current_filehandle], ax
|
mov [_current_filehandle], ax
|
||||||
|
|
||||||
|
;;
|
||||||
|
;; Print space
|
||||||
|
;;
|
||||||
|
mov ah,02h
|
||||||
|
mov dl,' '
|
||||||
|
int 021h
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;; Seek to the start of the file
|
;; Seek to the start of the file
|
||||||
;;
|
;;
|
||||||
|
@ -695,9 +702,11 @@ pe_load_module:
|
||||||
mov dx, error_file_read_failed
|
mov dx, error_file_read_failed
|
||||||
jmp .error
|
jmp .error
|
||||||
.read_data_succeeded:
|
.read_data_succeeded:
|
||||||
|
%ifndef NDEBUG
|
||||||
mov ah,02h
|
mov ah,02h
|
||||||
mov dl,'#'
|
mov dl,'#'
|
||||||
int 021h
|
int 021h
|
||||||
|
%endif
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;; Copy the file data just read in to high memory
|
;; Copy the file data just read in to high memory
|
||||||
|
@ -706,9 +715,15 @@ pe_load_module:
|
||||||
mov esi, 0x90000
|
mov esi, 0x90000
|
||||||
mov ecx, 32768
|
mov ecx, 32768
|
||||||
call _himem_copy
|
call _himem_copy
|
||||||
|
%ifndef NDEBUG
|
||||||
mov ah,02h
|
mov ah,02h
|
||||||
mov dl,'$'
|
mov dl,'$'
|
||||||
int 021h
|
int 021h
|
||||||
|
%else
|
||||||
|
mov ah,02h
|
||||||
|
mov dl,'.'
|
||||||
|
int 021h
|
||||||
|
%endif
|
||||||
|
|
||||||
sub dword [_current_size], 32768
|
sub dword [_current_size], 32768
|
||||||
jmp .read_next
|
jmp .read_next
|
||||||
|
@ -731,9 +746,11 @@ pe_load_module:
|
||||||
mov dx, error_file_read_failed
|
mov dx, error_file_read_failed
|
||||||
jmp .error
|
jmp .error
|
||||||
.read_last_data_succeeded:
|
.read_last_data_succeeded:
|
||||||
|
%ifndef NDEBUG
|
||||||
mov ah,02h
|
mov ah,02h
|
||||||
mov dl,'#'
|
mov dl,'#'
|
||||||
int 021h
|
int 021h
|
||||||
|
%endif
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;; Copy the tailing part to high memory
|
;; Copy the tailing part to high memory
|
||||||
|
@ -742,9 +759,15 @@ pe_load_module:
|
||||||
mov ecx, [_current_size]
|
mov ecx, [_current_size]
|
||||||
mov esi, 0x90000
|
mov esi, 0x90000
|
||||||
call _himem_copy
|
call _himem_copy
|
||||||
|
%ifndef NDEBUG
|
||||||
mov ah,02h
|
mov ah,02h
|
||||||
mov dl,'$'
|
mov dl,'$'
|
||||||
int 021h
|
int 021h
|
||||||
|
%else
|
||||||
|
mov ah,02h
|
||||||
|
mov dl,'.'
|
||||||
|
int 021h
|
||||||
|
%endif
|
||||||
|
|
||||||
.do_round:
|
.do_round:
|
||||||
test di, 0xfff
|
test di, 0xfff
|
||||||
|
@ -771,7 +794,7 @@ pe_load_module:
|
||||||
;;
|
;;
|
||||||
;; On error print a message and return zero
|
;; On error print a message and return zero
|
||||||
;;
|
;;
|
||||||
.error:
|
.error:
|
||||||
mov ah, 0x9
|
mov ah, 0x9
|
||||||
int 0x21
|
int 0x21
|
||||||
mov eax, 0
|
mov eax, 0
|
||||||
|
@ -803,7 +826,7 @@ _himem_copy:
|
||||||
mov cr0, eax
|
mov cr0, eax
|
||||||
|
|
||||||
jmp .l1 ; Flush prefetch queue
|
jmp .l1 ; Flush prefetch queue
|
||||||
.l1:
|
.l1:
|
||||||
|
|
||||||
mov eax, KERNEL_DS ; Load DS with a suitable selector
|
mov eax, KERNEL_DS ; Load DS with a suitable selector
|
||||||
mov ds, ax
|
mov ds, ax
|
||||||
|
|
Loading…
Reference in a new issue