From owner-freebsd-arm@FreeBSD.ORG Mon May 6 05:44:43 2013 Return-Path: Delivered-To: freebsd-arm@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 A3995E43 for ; Mon, 6 May 2013 05:44:43 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from monday.kientzle.com (99-115-135-74.uvs.sntcca.sbcglobal.net [99.115.135.74]) by mx1.freebsd.org (Postfix) with ESMTP id 82A1AFE1 for ; Mon, 6 May 2013 05:44:43 +0000 (UTC) Received: (from root@localhost) by monday.kientzle.com (8.14.4/8.14.4) id r465ihvL032326 for freebsd-arm@freebsd.org; Mon, 6 May 2013 05:44:43 GMT (envelope-from kientzle@freebsd.org) Received: from [192.168.2.123] (CiscoE3000 [192.168.1.65]) by kientzle.com with SMTP id 4wnr7swhe5j67aqcgqf9djmhun; for freebsd-arm@freebsd.org; Mon, 06 May 2013 05:44:42 +0000 (UTC) (envelope-from kientzle@freebsd.org) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Apple Message framework v1283) Subject: Re: Is this related to the general panic discussed in freebsd-current? From: Tim Kientzle In-Reply-To: <724191A9-57F4-4D66-9E4A-EBBC13BDC0D1@freebsd.org> Date: Sun, 5 May 2013 22:44:42 -0700 Content-Transfer-Encoding: 7bit Message-Id: References: <51835891.4050409@thieprojects.ch> <03971BD1-4ADE-4435-BDD0-B94B62634F1D@bsdimp.com> <5183BF8C.4040406@thieprojects.ch> <6D0E82C9-79D1-4804-9B39-3440F99AA8FE@kientzle.com> <20130505140006.0d671ba5@bender> <20130505233729.63ac23bc@bender.lan> <724191A9-57F4-4D66-9E4A-EBBC13BDC0D1@freebsd.org> To: freebsd-arm@freebsd.org X-Mailer: Apple Mail (2.1283) 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: Mon, 06 May 2013 05:44:43 -0000 On May 5, 2013, at 10:39 PM, Tim Kientzle wrote: > > Here's a version of stack_capture that allows a Clang-built > OABI kernel with WITNESS enabled to boot: > > /* In sys/arm/arm/stack_machdep.c */ > static void > stack_capture(struct stack *st, u_int32_t *frame) > { > vm_offset_t callpc; > > stack_zero(st); > while (INKERNEL(frame)) { > callpc = frame[1]; > if (stack_put(st, callpc) == -1) > break; > frame = (u_int32_t *)(frame[0]); > } > } On a related note: With this change, a Crochet-built BeagleBone image does boot on BeagleBone Black. ;-) Tim