delete 43 sysfunction
git-svn-id: svn://kolibrios.org@9279 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
2ce4f2ee4d
commit
4003f26194
|
@ -79,8 +79,6 @@ align 4
|
||||||
shl eax, 2
|
shl eax, 2
|
||||||
add eax, [clipboard_main_list]
|
add eax, [clipboard_main_list]
|
||||||
mov [eax], edi
|
mov [eax], edi
|
||||||
push edi ;save pointer to data
|
|
||||||
push ecx ;save size data
|
|
||||||
; copy the data into the slot
|
; copy the data into the slot
|
||||||
mov esi, edx
|
mov esi, edx
|
||||||
mov eax, ecx
|
mov eax, ecx
|
||||||
|
@ -89,10 +87,6 @@ align 4
|
||||||
sub ecx, 4
|
sub ecx, 4
|
||||||
add esi, 4
|
add esi, 4
|
||||||
rep movsb ; store slot data
|
rep movsb ; store slot data
|
||||||
;copy ecx in Dword[clipboard_main_list+clipboard_slots*4]
|
|
||||||
pop ecx
|
|
||||||
pop eax
|
|
||||||
mov [eax], ecx
|
|
||||||
; increase the counter of slots
|
; increase the counter of slots
|
||||||
inc [clipboard_slots]
|
inc [clipboard_slots]
|
||||||
; unlock last slot
|
; unlock last slot
|
||||||
|
|
|
@ -141,7 +141,7 @@ iglobal
|
||||||
dd set_app_param ; 40-WantEvents
|
dd set_app_param ; 40-WantEvents
|
||||||
dd undefined_syscall ; 41- deprecated GetIrqOwner
|
dd undefined_syscall ; 41- deprecated GetIrqOwner
|
||||||
dd undefined_syscall ; 42- deprecated ReadIrqData
|
dd undefined_syscall ; 42- deprecated ReadIrqData
|
||||||
dd sys_outport ; 43-SendDeviceData
|
dd undefined_syscall ; 43-SendDeviceData
|
||||||
dd undefined_syscall ; 44- deprecated ProgramIrqs
|
dd undefined_syscall ; 44- deprecated ProgramIrqs
|
||||||
dd undefined_syscall ; 45- deprecated ReserveIrq and FreeIrq
|
dd undefined_syscall ; 45- deprecated ReserveIrq and FreeIrq
|
||||||
dd syscall_reserveportarea ; 46-ReservePortArea and FreePortArea
|
dd syscall_reserveportarea ; 46-ReservePortArea and FreePortArea
|
||||||
|
|
|
@ -1366,62 +1366,62 @@ set_variables:
|
||||||
|
|
||||||
align 4
|
align 4
|
||||||
;input eax=43,bl-byte of output, ecx - number of port
|
;input eax=43,bl-byte of output, ecx - number of port
|
||||||
sys_outport:
|
;sys_outport:
|
||||||
|
;
|
||||||
mov edi, ecx ; separate flag for read / write
|
; mov edi, ecx ; separate flag for read / write
|
||||||
and ecx, 65535
|
; and ecx, 65535
|
||||||
|
;
|
||||||
mov eax, [RESERVED_PORTS]
|
; mov eax, [RESERVED_PORTS]
|
||||||
test eax, eax
|
; test eax, eax
|
||||||
jnz .sopl8
|
; jnz .sopl8
|
||||||
inc eax
|
; inc eax
|
||||||
mov [esp+32], eax
|
; mov [esp+32], eax
|
||||||
ret
|
; ret
|
||||||
|
;
|
||||||
.sopl8:
|
; .sopl8:
|
||||||
mov edx, [TASK_BASE]
|
; mov edx, [TASK_BASE]
|
||||||
mov edx, [edx+0x4]
|
; mov edx, [edx+0x4]
|
||||||
;and ecx,65535
|
; ;and ecx,65535
|
||||||
;cld - set on interrupt 0x40
|
; ;cld - set on interrupt 0x40
|
||||||
.sopl1:
|
; .sopl1:
|
||||||
|
;
|
||||||
mov esi, eax
|
; mov esi, eax
|
||||||
shl esi, 4
|
; shl esi, 4
|
||||||
add esi, RESERVED_PORTS
|
; add esi, RESERVED_PORTS
|
||||||
cmp edx, [esi+0]
|
; cmp edx, [esi+0]
|
||||||
jne .sopl2
|
; jne .sopl2
|
||||||
cmp ecx, [esi+4]
|
; cmp ecx, [esi+4]
|
||||||
jb .sopl2
|
; jb .sopl2
|
||||||
cmp ecx, [esi+8]
|
; cmp ecx, [esi+8]
|
||||||
jg .sopl2
|
; jg .sopl2
|
||||||
.sopl3:
|
;.sopl3:
|
||||||
|
;
|
||||||
test edi, 0x80000000; read ?
|
; test edi, 0x80000000; read ?
|
||||||
jnz .sopl4
|
; jnz .sopl4
|
||||||
|
;
|
||||||
mov eax, ebx
|
; mov eax, ebx
|
||||||
mov dx, cx ; write
|
; mov dx, cx ; write
|
||||||
out dx, al
|
; out dx, al
|
||||||
and [esp+32], dword 0
|
; and [esp+32], dword 0
|
||||||
ret
|
; ret
|
||||||
|
;
|
||||||
.sopl2:
|
; .sopl2:
|
||||||
|
;
|
||||||
dec eax
|
; dec eax
|
||||||
jnz .sopl1
|
; jnz .sopl1
|
||||||
inc eax
|
; inc eax
|
||||||
mov [esp+32], eax
|
; mov [esp+32], eax
|
||||||
ret
|
; ret
|
||||||
|
;
|
||||||
|
;
|
||||||
.sopl4:
|
; .sopl4:
|
||||||
|
;
|
||||||
mov dx, cx ; read
|
; mov dx, cx ; read
|
||||||
in al, dx
|
; in al, dx
|
||||||
and eax, 0xff
|
; and eax, 0xff
|
||||||
and [esp+32], dword 0
|
; and [esp+32], dword 0
|
||||||
mov [esp+20], eax
|
; mov [esp+20], eax
|
||||||
ret
|
; ret
|
||||||
|
|
||||||
display_number:
|
display_number:
|
||||||
; add check pointers
|
; add check pointers
|
||||||
|
@ -2668,8 +2668,8 @@ sound_flag db 0
|
||||||
|
|
||||||
endg
|
endg
|
||||||
|
|
||||||
UID_NONE=0
|
;UID_NONE=0
|
||||||
UID_KOLIBRI=2 ;russian
|
;UID_KOLIBRI=2 ;russian
|
||||||
|
|
||||||
iglobal
|
iglobal
|
||||||
version_inf:
|
version_inf:
|
||||||
|
@ -4233,6 +4233,14 @@ set_io_access_rights:
|
||||||
; or [edi],byte bl ; disable access - ebp = 1
|
; or [edi],byte bl ; disable access - ebp = 1
|
||||||
pop eax edi
|
pop eax edi
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
align 4
|
||||||
|
syscall_reserveportarea: ; ReservePortArea and FreePortArea
|
||||||
|
|
||||||
|
call r_f_port_area
|
||||||
|
mov [esp+32], eax
|
||||||
|
ret
|
||||||
|
|
||||||
;reserve/free group of ports
|
;reserve/free group of ports
|
||||||
; * eax = 46 - number function
|
; * eax = 46 - number function
|
||||||
; * ebx = 0 - reserve, 1 - free
|
; * ebx = 0 - reserve, 1 - free
|
||||||
|
@ -5578,12 +5586,6 @@ syscall_drawline: ; DrawLine
|
||||||
jmp __sys_draw_line
|
jmp __sys_draw_line
|
||||||
|
|
||||||
|
|
||||||
align 4
|
|
||||||
syscall_reserveportarea: ; ReservePortArea and FreePortArea
|
|
||||||
|
|
||||||
call r_f_port_area
|
|
||||||
mov [esp+32], eax
|
|
||||||
ret
|
|
||||||
|
|
||||||
align 4
|
align 4
|
||||||
syscall_threads: ; CreateThreads
|
syscall_threads: ; CreateThreads
|
||||||
|
|
Loading…
Reference in New Issue