Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 8592 → Rev 8593

/kernel/trunk/core/taskman.inc
82,7 → 82,7
locals
cmdline rd 1
flags rd 1
slot rd 1 ; number of new thread slot
slot rd 1 ; index of new thread slot
slot_base rd 1 ; base address of it
; app header data
hdr_cmdline rd 1
112,7 → 112,7
mov [file_base], eax
mov [file_size], ebx
lea ebx, [hdr_cmdline]
call test_app_header ; fill our app header data locals with values from given application header (if its correct)
call test_app_header ; fill our app header data locals with values from header of given program (if its correct)
mov esi, -0x1F
test eax, eax
jz .err_hdr
846,6 → 846,8
push esi
test edi, edi
jz @f
stdcall is_region_userspace, edi, [ebp+APP_HDR.filename_size]
jz @f
mov al, '/'
stosb
rep movsb
871,6 → 873,10
@@:
mov [APP_HEADER_01_.i_param], edi
.copy_cmdline:
inc ecx ; keep in mind about 0 in the end
stdcall is_region_userspace, edi, ecx
jz .check_tls_header
dec ecx
rep movsb
mov byte [edi], 0
.check_tls_header: