detect if we are the boot device (to fix generic kernel)

This commit is contained in:
chuck 1996-05-29 04:27:11 +00:00
parent c0e6f9b4f3
commit 5258929681
1 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_le.c,v 1.9 1996/05/08 05:55:04 thorpej Exp $ */
/* $NetBSD: if_le.c,v 1.10 1996/05/29 04:27:11 chuck Exp $ */
/*-
* Copyright (c) 1995 Charles M. Hannum. All rights reserved.
@ -57,6 +57,7 @@
#include <vm/vm.h>
#include <machine/autoconf.h>
#include <machine/cpu.h>
#include <machine/pmap.h>
@ -154,6 +155,10 @@ le_pcc_attach(parent, self, aux)
am7990_config(sc);
/* Are we the boot device? */
if (PCC_PADDR(pa->pa_offset) == bootaddr)
bootdv = self;
pccintr_establish(PCCV_LE, am7990_intr, pa->pa_ipl, sc);
sys_pcc->le_int = pa->pa_ipl | PCC_IENABLE;
}