From c4be8acc8cc0731ed148a49108fbd2043962f3cd Mon Sep 17 00:00:00 2001 From: "Evgeny Grechnikov (Diamond)" Date: Fri, 4 Apr 2008 17:36:17 +0000 Subject: [PATCH] Restored normal IRQ handling broken in rev. 769 git-svn-id: svn://kolibrios.org@787 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/core/sys32.inc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/kernel/trunk/core/sys32.inc b/kernel/trunk/core/sys32.inc index d94d39a2d9..a08292c704 100644 --- a/kernel/trunk/core/sys32.inc +++ b/kernel/trunk/core/sys32.inc @@ -183,12 +183,20 @@ macro irqh [num] { forward p_irq#num : + save_ring3_context mov edi, num - jmp irqhandler + jmp irq_c } irqh 2,3,4,5,7,8,9,10,11 +irq_c: + mov ax, app_data + mov ds, ax + mov es, ax + call irqhandler + restore_ring3_context + iret p_irq6: save_ring3_context