Initialise the undefined-instruction handler at startup.
This commit is contained in:
parent
d1fdb92ff8
commit
db1f089718
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: start.c,v 1.8 2001/01/22 22:10:43 bjh21 Exp $ */
|
||||
/* $NetBSD: start.c,v 1.9 2001/03/13 20:20:43 bjh21 Exp $ */
|
||||
/*-
|
||||
* Copyright (c) 1998, 2000 Ben Harris
|
||||
* All rights reserved.
|
||||
@ -32,7 +32,7 @@
|
||||
|
||||
#include <sys/param.h>
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: start.c,v 1.8 2001/01/22 22:10:43 bjh21 Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: start.c,v 1.9 2001/03/13 20:20:43 bjh21 Exp $");
|
||||
|
||||
#include <sys/msgbuf.h>
|
||||
#include <sys/user.h>
|
||||
@ -40,6 +40,7 @@ __KERNEL_RCSID(0, "$NetBSD: start.c,v 1.8 2001/01/22 22:10:43 bjh21 Exp $");
|
||||
#include <sys/systm.h>
|
||||
|
||||
#include <arm/armreg.h>
|
||||
#include <arm/undefined.h>
|
||||
#include <machine/boot.h>
|
||||
#include <machine/machdep.h>
|
||||
#include <machine/memcreg.h>
|
||||
@ -188,6 +189,9 @@ start(initbootconfig)
|
||||
/* Get the MEMC set up and map zero page */
|
||||
pmap_bootstrap(bootconfig.npages, ZP_PHYSADDR);
|
||||
|
||||
/* Set up the undefined instruction handlers. */
|
||||
undefined_init();
|
||||
|
||||
/*
|
||||
* This is a nasty bit. Because the kernel uses a 26-bit APCS
|
||||
* variant, the CPU interrupt disable flags get munged on
|
||||
|
Loading…
Reference in New Issue
Block a user