From bb6bf261e7455eae8e3ffddea4c4cc7604098c8a Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Fri, 2 May 2008 07:27:54 +0000 Subject: [PATCH] fix irq_owner in attach_int_handler git-svn-id: svn://kolibrios.org@797 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/core/dll.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel/trunk/core/dll.inc b/kernel/trunk/core/dll.inc index 54e44c8ee0..253c0b8ff0 100644 --- a/kernel/trunk/core/dll.inc +++ b/kernel/trunk/core/dll.inc @@ -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]