From owner-svn-src-projects@FreeBSD.ORG Wed May 18 16:56:36 2011 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D03E7106566B; Wed, 18 May 2011 16:56:36 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id C13708FC1B; Wed, 18 May 2011 16:56:36 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p4IGuapp000690; Wed, 18 May 2011 16:56:36 GMT (envelope-from attilio@svn.freebsd.org) Received: (from attilio@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p4IGuauQ000688; Wed, 18 May 2011 16:56:36 GMT (envelope-from attilio@svn.freebsd.org) Message-Id: <201105181656.p4IGuauQ000688@svn.freebsd.org> From: Attilio Rao Date: Wed, 18 May 2011 16:56:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r222071 - projects/largeSMP/sys/powerpc/booke X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2011 16:56:36 -0000 Author: attilio Date: Wed May 18 16:56:36 2011 New Revision: 222071 URL: http://svn.freebsd.org/changeset/base/222071 Log: Fix usage of cpumask that cannot be used like that anymore. Reported by: pluknet Modified: projects/largeSMP/sys/powerpc/booke/platform_bare.c Modified: projects/largeSMP/sys/powerpc/booke/platform_bare.c ============================================================================== --- projects/largeSMP/sys/powerpc/booke/platform_bare.c Wed May 18 16:50:13 2011 (r222070) +++ projects/largeSMP/sys/powerpc/booke/platform_bare.c Wed May 18 16:56:36 2011 (r222071) @@ -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,7 @@ 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");