Subversion Repositories Kolibri OS

Rev

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

Rev 774 Rev 797
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2008. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2008. All rights reserved. ;;
4
;; Distributed under terms of the GNU General Public License    ;;
4
;; Distributed under terms of the GNU General Public License    ;;
5
;;                                                              ;;
5
;;                                                              ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision: 774 $
8
$Revision: 797 $
9
 
9
 
Line 10... Line 10...
10
 
10
 
-
 
11
DRV_COMPAT   equ  5  ;minimal required drivers version
Line 11... Line 12...
11
DRV_COMPAT   equ  5  ;minimal required drivers version
12
DRV_CURRENT  equ  5  ;current drivers model version
12
DRV_CURRENT  equ  5  ;current drivers model version
13
 
Line 13... Line 14...
13
 
14
DRV_VERSION equ (DRV_COMPAT shl 16) or DRV_CURRENT
Line 37... Line 38...
37
	 mov  eax, [access_rights]
38
	 mov  eax, [access_rights]
38
	 mov  [irq_rights + 4 * ebx], eax
39
	 mov  [irq_rights + 4 * ebx], eax
39
	 ;push eax
40
	 ;push eax
40
	 ;mov  eax, [TASK_BASE]
41
	 ;mov  eax, [TASK_BASE]
41
	 ;mov  eax, [eax + TASKDATA.pid]          ; faster or smaller? :)
42
	 ;mov  eax, [eax + TASKDATA.pid]          ; faster or smaller? :)
42
	 call  get_pid
43
         ;call  get_pid
Line 43... Line 44...
43
 
44
 
44
	 mov  [irq_owner + 4 * ebx], eax
45
         mov  [irq_owner + 4 * ebx], PID_KERNEL   ;eax
Line 45... Line 46...
45
	 ;pop  eax
46
	 ;pop  eax
46
 
47
 
47
	 stdcall enable_irq, [irq]
48
	 stdcall enable_irq, [irq]