From owner-freebsd-ppc@FreeBSD.ORG Wed Jan 16 11:29:43 2013 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 60A0FC89 for ; Wed, 16 Jan 2013 11:29:43 +0000 (UTC) (envelope-from adutkowski@gmail.com) Received: from mail-oa0-f52.google.com (mail-oa0-f52.google.com [209.85.219.52]) by mx1.freebsd.org (Postfix) with ESMTP id 32BC4EF2 for ; Wed, 16 Jan 2013 11:29:43 +0000 (UTC) Received: by mail-oa0-f52.google.com with SMTP id o6so1239808oag.25 for ; Wed, 16 Jan 2013 03:29:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:date:x-google-sender-auth:message-id :subject:from:to:content-type; bh=KN+g3j5xFtZqOHAV/keENcxpVuIp9+s7hZK0npZd+TU=; b=pOlftZh2oRfQLoSV3ecfx9KlxFNnH+yRBRCSjrgeM/W0kXVmyETfs8Mmvvd6ffY3Nk 5YobyUB7bLqdyC//at1STz/Kn4aa/KPiCHwuKTwG3Dr5RlKY0m5IYwBzyDKkFTXd8eE6 QdnwxH2Pk7SK4H3tmlpdF9ditaOFfkufbqweff5CDmXPWiERyhJsqiqxJMsi1gMAvcY8 WfMvs8CJTz5o7gba24/0i1vN37IFCYTqfDdEcXktenrAabGM6IkphpWRFeo8p1iMdvdE HDkUScMonMB7rTrayYJvLYjjaqTwzjldBLaq8ZLN7j+OAFgs8ziQAVy719wjd71kjttA yiFQ== MIME-Version: 1.0 X-Received: by 10.60.172.113 with SMTP id bb17mr524839oec.110.1358335782494; Wed, 16 Jan 2013 03:29:42 -0800 (PST) Sender: adutkowski@gmail.com Received: by 10.76.135.103 with HTTP; Wed, 16 Jan 2013 03:29:42 -0800 (PST) Date: Wed, 16 Jan 2013 12:29:42 +0100 X-Google-Sender-Auth: NjVhTs-En_HxHiD791Hhi72aCUw Message-ID: Subject: booke pmap.c bugfix From: Aleksander Dutkowski To: freebsd-ppc@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jan 2013 11:29:43 -0000 hello! Every occurence of variable bp_ntlbls is in #ifdef SMP macro. The only pmap_bootstrap_ap function call is also in #ifdef SMP macro. So the definition and declaration of function pmap_bootstrap_ap should also be in this macro, otherwise, complation crashes without option SMP diff --git a/sys/powerpc/booke/pmap.c b/sys/powerpc/booke/pmap.c index f6e5f9c..f30e99d 100644 --- a/sys/powerpc/booke/pmap.c +++ b/sys/powerpc/booke/pmap.c @@ -264,7 +264,9 @@ static vm_offset_t ptbl_buf_pool_vabase; /* Pointer to ptbl_buf structures. */ static struct ptbl_buf *ptbl_bufs; +#ifdef SMP void pmap_bootstrap_ap(volatile uint32_t *); +#endif /* * Kernel MMU interface @@ -1271,7 +1273,7 @@ mmu_booke_bootstrap(mmu_t mmu, vm_offset_t start, vm_offset_t kernelend) debugf("mmu_booke_bootstrap: exit\n"); } - +#ifdef SMP void pmap_bootstrap_ap(volatile uint32_t *trcp __unused) { @@ -1292,6 +1294,7 @@ pmap_bootstrap_ap(volatile uint32_t *trcp __unused) set_mas4_defaults(); } +#endif /* * Get the physical page address for the given pmap/virtual address. -- regards aleek