From d3dce63c131bb3c02691bca5eaae4839b6ed8400 Mon Sep 17 00:00:00 2001 From: Peter Grehan Date: Thu, 19 Sep 2002 04:28:45 +0000 Subject: [PATCH] - removed unnecessary includes - converted inline asm to C for int enable - shifted clearing of 'cold' to end of routine Approved by: benno --- sys/powerpc/powerpc/autoconf.c | 35 +++++++--------------------------- 1 file changed, 7 insertions(+), 28 deletions(-) diff --git a/sys/powerpc/powerpc/autoconf.c b/sys/powerpc/powerpc/autoconf.c index a5f86c708f4..6bafc1159c8 100644 --- a/sys/powerpc/powerpc/autoconf.c +++ b/sys/powerpc/powerpc/autoconf.c @@ -35,28 +35,9 @@ static const char rcsid[] = #include #include -#include -#include -#include /* for BASE_SLICE, MAX_SLICES */ -#include -#include -#include -#include #include -#include #include - -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include +#include static void configure(void *); SYSINIT(configure, SI_SUB_CONFIGURE, SI_ORDER_THIRD, configure, NULL) @@ -84,16 +65,14 @@ cpu_rootconf() static void configure(void *dummy) { - unsigned int msr; - - cold = 0; - device_add_child(root_bus, "nexus", 0); root_bus_configure(); - msr = mfmsr(); - msr = PSL_EE|PSL_FP|PSL_ME|PSL_IR|PSL_DR|PSL_RI; - mtmsr(msr); - msr = mfmsr(); + /* + * Enable device interrupts + */ + mtmsr(mfmsr() | PSL_EE | PSL_RI); + + cold = 0; }