summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/aim/machdep.c
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2011-06-02 14:21:20 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2011-06-02 14:21:20 +0000
commitd2c5118ddb9dcbba6011040b3a20e2fd7aa01ece (patch)
tree958405417762a9b17c042adaf9ff3db3194d623f /sys/powerpc/aim/machdep.c
parentafc1ac1ca6486a73a134101d3efd018fede9f821 (diff)
downloadFreeBSD-src-d2c5118ddb9dcbba6011040b3a20e2fd7aa01ece.zip
FreeBSD-src-d2c5118ddb9dcbba6011040b3a20e2fd7aa01ece.tar.gz
Explicitly initialize the first thread's MSR to PSL_KERNSET.
Diffstat (limited to 'sys/powerpc/aim/machdep.c')
-rw-r--r--sys/powerpc/aim/machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/powerpc/aim/machdep.c b/sys/powerpc/aim/machdep.c
index 9dd5f32..aa8885a 100644
--- a/sys/powerpc/aim/machdep.c
+++ b/sys/powerpc/aim/machdep.c
@@ -526,7 +526,7 @@ powerpc_init(vm_offset_t startkernel, vm_offset_t endkernel,
pmap_mmu_install(MMU_TYPE_OEA, BUS_PROBE_GENERIC);
pmap_bootstrap(startkernel, endkernel);
- mtmsr(mfmsr() | PSL_IR|PSL_DR|PSL_ME|PSL_RI);
+ mtmsr(PSL_KERNSET & ~PSL_EE);
isync();
/*
OpenPOWER on IntegriCloud