Subversion Repositories Kolibri OS

Rev

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

Rev 379 Rev 380
Line 267... Line 267...
267
;           cmp [eax+CURSOR.size], CURSOR_SIZE
267
;           cmp [eax+CURSOR.size], CURSOR_SIZE
268
;           jne .fail
268
;           jne .fail
269
           mov ebx, [CURRENT_TASK]
269
           mov ebx, [CURRENT_TASK]
270
           shl ebx, 8
270
           shl ebx, 8
271
           xchg eax, [ebx+PROC_BASE+APPDATA.cursor]
271
           xchg eax, [ebx+SLOT_BASE+APPDATA.cursor]
272
           ret
272
           ret
273
.fail:
273
.fail:
274
           mov eax, [def_cursor]
274
           mov eax, [def_cursor]
275
           mov ebx, [CURRENT_TASK]
275
           mov ebx, [CURRENT_TASK]
276
           shl ebx, 8
276
           shl ebx, 8
277
           xchg eax, [ebx+PROC_BASE+APPDATA.cursor]
277
           xchg eax, [ebx+SLOT_BASE+APPDATA.cursor]
278
           ret
278
           ret
279
endp
279
endp
280
 
280
 
Line 281... Line 281...
281
; param
281
; param
282
;  eax= pid
282
;  eax= pid
Line 398... Line 398...
398
           jne .fail
398
           jne .fail
399
 
399
 
Line 400... Line 400...
400
           mov ebx, [CURRENT_TASK]
400
           mov ebx, [CURRENT_TASK]
401
           shl ebx, 8
401
           shl ebx, 8
402
           cmp esi, [ebx+PROC_BASE+APPDATA.cursor]
402
           cmp esi, [ebx+SLOT_BASE+APPDATA.cursor]
403
           jne @F
403
           jne @F
404
           mov eax, [def_cursor]
404
           mov eax, [def_cursor]
405
           mov [ebx+PROC_BASE+APPDATA.cursor], eax
405
           mov [ebx+SLOT_BASE+APPDATA.cursor], eax
406
@@:
406
@@:
407
           mov eax, [hcursor]
407
           mov eax, [hcursor]
408
           call [eax+APPOBJ.destroy]
408
           call [eax+APPOBJ.destroy]
409
.fail:
409
.fail:
410
           ret
410
           ret