Make sure to disable interrupts in the Interrupt Enable register as soon

as we've mapped it.
This commit is contained in:
pk 1997-03-12 11:04:35 +00:00
parent b197276005
commit 6e3c9f3b59
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: autoconf.c,v 1.67 1997/03/11 01:01:59 pk Exp $ */
/* $NetBSD: autoconf.c,v 1.68 1997/03/12 11:04:35 pk Exp $ */
/*
* Copyright (c) 1996
@ -343,6 +343,8 @@ bootstrap()
pmap_enter(pmap_kernel(), INTRREG_VA,
INT_ENABLE_REG_PHYSADR | PMAP_NC | PMAP_OBIO,
VM_PROT_READ | VM_PROT_WRITE, 1);
/* Disable all interrupts */
*((unsigned char *)INTRREG_VA) = 0;
}
}