Subversion Repositories Kolibri OS

Rev

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

Rev 1992 Rev 2089
Line 9... Line 9...
9
;;  Distributed under GPL. See file COPYING for details.        ;;
9
;;  Distributed under GPL. See file COPYING for details.        ;;
10
;;  Copyright 2003 Ville Turjanmaa                              ;;
10
;;  Copyright 2003 Ville Turjanmaa                              ;;
11
;;                                                              ;;
11
;;                                                              ;;
12
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
12
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 13... Line 13...
13
 
13
 
Line 14... Line 14...
14
$Revision: 1992 $
14
$Revision: 2089 $
15
 
15
 
16
 
16
 
Line 673... Line 673...
673
        jnz     @f
673
        jnz     @f
674
        and     [bgrlockpid], 0
674
        and     [bgrlockpid], 0
675
        and     [bgrlock], 0
675
        and     [bgrlock], 0
676
@@:
676
@@:
Line 677... Line -...
677
 
-
 
678
    pusha ; remove all irq reservations
-
 
679
    mov   eax,esi
-
 
680
    shl   eax, 5
-
 
681
    mov   eax,[eax+CURRENT_TASK+TASKDATA.pid]
-
 
682
    mov   edi,irq_owner
-
 
683
    xor   ebx, ebx
-
 
684
    xor   edx, edx
-
 
685
  newirqfree:
-
 
686
    cmp   [edi + 4 * ebx], eax
-
 
687
    jne   nofreeirq
-
 
688
    mov   [edi + 4 * ebx], edx                          ; remove irq reservation
-
 
689
    mov   [irq_tab + 4 * ebx], edx                      ; remove irq handler
-
 
690
    mov   [irq_rights + 4 * ebx], edx                   ; set access rights to full access
-
 
691
  nofreeirq:
-
 
692
    inc   ebx
-
 
693
    cmp   ebx, 16
-
 
694
    jb    newirqfree
-
 
695
    popa
-
 
696
 
677
 
697
    pusha                     ; remove all port reservations
678
    pusha                     ; remove all port reservations
698
    mov   edx,esi
679
    mov   edx,esi
699
    shl   edx, 5
680
    shl   edx, 5
700
    add   edx,CURRENT_TASK
681
    add   edx,CURRENT_TASK