svn commit: r222068 - head/sys/powerpc/booke
Attilio Rao
attilio at FreeBSD.org
Wed May 18 16:41:38 UTC 2011
Author: attilio
Date: Wed May 18 16:41:38 2011
New Revision: 222068
URL: http://svn.freebsd.org/changeset/base/222068
Log:
Fix newly introduced code.
Reported by: sbruno
Modified:
head/sys/powerpc/booke/platform_bare.c
Modified: head/sys/powerpc/booke/platform_bare.c
==============================================================================
--- head/sys/powerpc/booke/platform_bare.c Wed May 18 16:28:28 2011 (r222067)
+++ head/sys/powerpc/booke/platform_bare.c Wed May 18 16:41:38 2011 (r222068)
@@ -241,7 +241,7 @@ bare_smp_start_cpu(platform_t plat, stru
int timeout;
eebpcr = ccsr_read4(OCP85XX_EEBPCR);
- if ((eebpcr & (pc->pc_cpumask << 24)) != 0) {
+ if ((eebpcr & (1 << (pc->pc_cpuid + 24))) != 0) {
printf("%s: CPU=%d already out of hold-off state!\n",
__func__, pc->pc_cpuid);
return (ENXIO);
@@ -259,7 +259,8 @@ bare_smp_start_cpu(platform_t plat, stru
/*
* Release AP from hold-off state
*/
- eebpcr |= (pc->pc_cpumask << 24);
+
+ eebpcr |= (1 << (pc->pc_cpuid + 24));
ccsr_write4(OCP85XX_EEBPCR, eebpcr);
__asm __volatile("isync; msync");
More information about the svn-src-all
mailing list