summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2003-03-19 08:33:21 +0000
committergrehan <grehan@FreeBSD.org>2003-03-19 08:33:21 +0000
commit96619aa7632745629d0d246a734063eb228edb99 (patch)
tree08fe8437bd6946ba3ecc2c93a32ed1b5368a3a88
parenta2cbf4fe43cc6277ee36f49d3c69d72217c3a028 (diff)
downloadFreeBSD-src-96619aa7632745629d0d246a734063eb228edb99.zip
FreeBSD-src-96619aa7632745629d0d246a734063eb228edb99.tar.gz
Add machine check handler. While generally useful, it's required when
issuing PCI config cycles on MPC106-based PowerMacs, which cause machine checks when accessing non-existent/empty slots.
-rw-r--r--sys/powerpc/aim/machdep.c2
-rw-r--r--sys/powerpc/powerpc/machdep.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/powerpc/aim/machdep.c b/sys/powerpc/aim/machdep.c
index b745756..92cc11e 100644
--- a/sys/powerpc/aim/machdep.c
+++ b/sys/powerpc/aim/machdep.c
@@ -292,10 +292,10 @@ powerpc_init(u_int startkernel, u_int endkernel, u_int basekernel, void *mdp)
#ifdef DDB
kdb_init();
#endif
-
/*
* XXX: Initialize the interrupt tables.
*/
+ bcopy(&trapcode, (void *)EXC_MCHK, (size_t)&trapsize);
bcopy(&dsitrap, (void *)EXC_DSI, (size_t)&dsisize);
bcopy(&isitrap, (void *)EXC_ISI, (size_t)&isisize);
bcopy(&trapcode, (void *)EXC_EXI, (size_t)&trapsize);
diff --git a/sys/powerpc/powerpc/machdep.c b/sys/powerpc/powerpc/machdep.c
index b745756..92cc11e 100644
--- a/sys/powerpc/powerpc/machdep.c
+++ b/sys/powerpc/powerpc/machdep.c
@@ -292,10 +292,10 @@ powerpc_init(u_int startkernel, u_int endkernel, u_int basekernel, void *mdp)
#ifdef DDB
kdb_init();
#endif
-
/*
* XXX: Initialize the interrupt tables.
*/
+ bcopy(&trapcode, (void *)EXC_MCHK, (size_t)&trapsize);
bcopy(&dsitrap, (void *)EXC_DSI, (size_t)&dsisize);
bcopy(&isitrap, (void *)EXC_ISI, (size_t)&isisize);
bcopy(&trapcode, (void *)EXC_EXI, (size_t)&trapsize);
OpenPOWER on IntegriCloud