From owner-freebsd-arm@FreeBSD.ORG Sun Apr 14 18:51:12 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D0370E49 for ; Sun, 14 Apr 2013 18:51:12 +0000 (UTC) (envelope-from damjan.marion@gmail.com) Received: from mail-ee0-f47.google.com (mail-ee0-f47.google.com [74.125.83.47]) by mx1.freebsd.org (Postfix) with ESMTP id 691C7D6C for ; Sun, 14 Apr 2013 18:51:11 +0000 (UTC) Received: by mail-ee0-f47.google.com with SMTP id t10so1881871eei.6 for ; Sun, 14 Apr 2013 11:51:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :cc:content-transfer-encoding:message-id:references:to:x-mailer; bh=UHeCy0yBHTLLPtiluOPsJdnDZTPdkU5R9iqrtyyUHTQ=; b=cLOOajTi9uSgpxYt85zmbJahXAFnWBYR6kV8pP6WxX4GroqBxGn3I50r6pV4p8r/av g47erTRM9PeAURw5nnKmN5tHxBvIsONaK2iaxgV2nNY6EzdNAcZxOFdPWkGWRTP6OG+I Xj2uqUKOfqEmsByhM3x68cToGqrttI/Dl+7BnN+AP3n2Au654RUjLN35My/WMOA6xwEv 1+jW6u2PWVNm1xRvQ3l6iSRkmhgD+TSuuWHD4sC/qZrYsRk0IcKNWAY6qv5XRCYbpdvo kthARpESwEZLXnQBzrIX4tMp60CmZkzwm+1T5opwl4nODfsLnvQPeoryxLt+JQsMauSQ Ak0A== X-Received: by 10.14.89.69 with SMTP id b45mr53744412eef.10.1365965464724; Sun, 14 Apr 2013 11:51:04 -0700 (PDT) Received: from ?IPv6:2001:470:72bb::12c? ([2001:470:72bb::12c]) by mx.google.com with ESMTPS id u44sm22889119eel.7.2013.04.14.11.51.02 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 14 Apr 2013 11:51:03 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: __rw_wlock_hard panic on 1st malloc From: Damjan Marion In-Reply-To: <8DE83B01-4508-41C5-B2BD-95A72D0AD963@bsdimp.com> Date: Sun, 14 Apr 2013 20:51:01 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <8DE83B01-4508-41C5-B2BD-95A72D0AD963@bsdimp.com> To: Warner Losh X-Mailer: Apple Mail (2.1503) Cc: "freebsd-arm@FreeBSD.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Apr 2013 18:51:12 -0000 I doubt. init_dynamic_kenv() is called by sysinit as part of standard = sysinit sequence and=20 it is called after kmeminit(). There is no my custom code except standard parts of initarm = initialisation. Damjan On Apr 14, 2013, at 7:19 PM, Warner Losh wrote: > Maybe you are calling malloc before these locks are initialized? >=20 > Warner >=20 > On Apr 14, 2013, at 5:03 AM, Damjan Marion wrote: >=20 >>=20 >> Hi, >>=20 >> I'm playing a bit with i.MX6 based board (wandboard) and I have = serial console working but >> now it panics in init_dynamic_kenv() with the following error: >>=20 >> panic: __rw_wlock_hard: recursing but non-recursive rw pmap pv global = @ /usr/src/sys/arm/arm/pmap-v6.c:1187 >>=20 >> It looks like this is the 1st place where malloc() is called, an = malloc returns valid VA >> but 1st attempt to access that address produces panic above. >>=20 >> Any idea what can be the reason for this or any other hint? >>=20 >> Thanks, >>=20 >> Damjan >> _______________________________________________ >> freebsd-arm@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-arm >> To unsubscribe, send any mail to = "freebsd-arm-unsubscribe@freebsd.org" >=20