From owner-freebsd-wireless@FreeBSD.ORG Mon Jul 29 15:00:08 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 8A03FBD0 for ; Mon, 29 Jul 2013 15:00:08 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-pd0-f176.google.com (mail-pd0-f176.google.com [209.85.192.176]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 58BF82C50 for ; Mon, 29 Jul 2013 15:00:08 +0000 (UTC) Received: by mail-pd0-f176.google.com with SMTP id q10so2382883pdj.35 for ; Mon, 29 Jul 2013 08:00:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=/2GrrONhHpRxqzZJzTZ3b8Zgtqq5e6SITrAppwxThDo=; b=b2TOTVJAe8iVWPPd+/URhcQMB2VCqO3xW01kn6/WmTDvh9mQ5jyMc7wIQzGyWtWjUn xW+BG/qK0MAbnHhTxP0iSNWgp2bqvN2mQ9djT/x+Vy5AXD1RZ/7H+M/lynP/dRSqrrrZ imxtgIPicyFIhxDWsnuAj4vNi7qjmJeS9eB9IzuX3tvXG0K3PRfjuHsAYe3HFQoYsOxZ ipE4FAlMrOJv786wPKCBXGi+a7WNGMrLViSasX0Nfs/jJ4m246NzeWfM7QhoC6ttzARb PzLCwOsYhp/VAUh+qsZ3ZusPXoWDfJCumo2ncVbnyq9ExqkxKvOTJ6+nbPdt7dB9DLzg 4BQg== X-Received: by 10.68.232.225 with SMTP id tr1mr67434098pbc.143.1375110001910; Mon, 29 Jul 2013 08:00:01 -0700 (PDT) Received: from 53.imp.bsdimp.com (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPSA id qf7sm335819pac.14.2013.07.29.07.59.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Jul 2013 08:00:00 -0700 (PDT) Sender: Warner Losh Subject: Re: My WLI-UC-GNM up crash Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <51F4F3E9.9010605@bitfrost.no> Date: Mon, 29 Jul 2013 08:59:58 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1374573600-2351360719.d37ada5f86@bliksem.vehosting.nl> <201307231220.52817.Daan@vitsch.nl> <51F4F3E9.9010605@bitfrost.no> To: Hans Petter Selasky X-Mailer: Apple Mail (2.1085) X-Gm-Message-State: ALoCoQlwVqsJIj+nLrlX2VHdsyWNDJ8veQJgANt247YgRjXOuYyj1YW3lxstlXfc/kDudO4zWMTw Cc: freebsd-wireless@freebsd.org, freebsd-arm X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jul 2013 15:00:08 -0000 The __aligned(8) likely isn't going to do anything. It says that you are = guaranteeing to the compiler that you'll only ever allocate / cast = pointers to this data type on a 8-byte boundary. __packed might help, = but likely won't because that's for on-wire things and anything thing = that wasn't already not marked packed that should be would already be = broken, but broken giving bad data, not broken segfaulting. __aligned(1) is what you want. But that has other performance = problems... Warner On Jul 28, 2013, at 4:35 AM, Hans Petter Selasky wrote: > Hi, >=20 > Can you try the attached patch? >=20 > --HPS > _______________________________________________ > 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"