core: clean up SerialIRQPort when uninstalling the interrupt system
authorH. Peter Anvin <hpa@zytor.com>
Sat, 5 Sep 2009 00:26:51 +0000 (17:26 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 5 Sep 2009 00:26:51 +0000 (17:26 -0700)
Make sure SerialIRQPort is zero when there is no active interrupt
system installed.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
core/serirq.inc

index 6babace..b7d79e0 100644 (file)
@@ -190,6 +190,9 @@ sirq_cleanup_nowipe:
                mov cx,8
                rep movsd
 
+               xor ax,ax
+               mov [SerialIRQPort],ax          ; No active interrupt system
+
 .done:
                pop es
                pop ds