forked from KolibriOS/kolibrios
fix irq_owner in attach_int_handler
git-svn-id: svn://kolibrios.org@797 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
cc1adaa2dd
commit
bb6bf261e7
@ -12,6 +12,7 @@ DRV_COMPAT equ 5 ;minimal required drivers version
|
||||
DRV_CURRENT equ 5 ;current drivers model version
|
||||
|
||||
DRV_VERSION equ (DRV_COMPAT shl 16) or DRV_CURRENT
|
||||
PID_KERNEL equ 1 ;os_idle thread
|
||||
|
||||
align 4
|
||||
proc attach_int_handler stdcall, irq:dword, handler:dword, access_rights:dword
|
||||
@ -39,9 +40,9 @@ proc attach_int_handler stdcall, irq:dword, handler:dword, access_rights:dword
|
||||
;push eax
|
||||
;mov eax, [TASK_BASE]
|
||||
;mov eax, [eax + TASKDATA.pid] ; faster or smaller? :)
|
||||
call get_pid
|
||||
;call get_pid
|
||||
|
||||
mov [irq_owner + 4 * ebx], eax
|
||||
mov [irq_owner + 4 * ebx], PID_KERNEL ;eax
|
||||
;pop eax
|
||||
|
||||
stdcall enable_irq, [irq]
|
||||
|
Loading…
Reference in New Issue
Block a user