From owner-freebsd-arm@FreeBSD.ORG Sun Jan 7 21:41:43 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C23D416A40F for ; Sun, 7 Jan 2007 21:41:43 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id 54FDD13C448 for ; Sun, 7 Jan 2007 21:41:43 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id l07L2SXk018952; Sun, 7 Jan 2007 22:02:28 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id l07L2Erd000768 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 7 Jan 2007 22:02:14 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id l07L2EIC077379; Sun, 7 Jan 2007 22:02:14 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id l07L2Dpp077378; Sun, 7 Jan 2007 22:02:13 +0100 (CET) (envelope-from ticso) Date: Sun, 7 Jan 2007 22:02:13 +0100 From: Bernd Walter To: freebsd-arm@freebsd.org Message-ID: <20070107210212.GP58585@cicely12.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, BAYES_00=-2.599 autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on cicely12.cicely.de Cc: Bernd Walter , Hans Petter Selasky Subject: Strange assembler warning X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Jan 2007 21:41:43 -0000 I was trying to build Hans Petter's USB stack: cc -c -O2 -pipe -fno-strict-aliasing -mcpu=arm9 -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -fformat-extensions -nostdinc -I- -I. -I../../.. -I../../../contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mcpu=arm9 -ffreestanding -Werror ../../../dev/usb/ohci.c ../../../dev/usb/ohci.c:120:1: "PHYSADDR" redefined In file included from :5: ./opt_global.h:3:1: this is the location of the previous definition {standard input}: Assembler messages: {standard input}:6052: Warning: source register same as write-back base *** Error code 1 Stop in /usr/src/sys/arm/compile/FBOX. 98.000u 3.000s 2:01.33 83.8% 37057+84655k 1+12io 2pf+0w Exit 1 [86]arm9# Ok - the PHYADDR is a name collision with the kernel load address. After removing the clash it compiles. But the assembler warning remains. -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de From owner-freebsd-arm@FreeBSD.ORG Sun Jan 7 23:19:48 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B696516A403 for ; Sun, 7 Jan 2007 23:19:48 +0000 (UTC) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (cognet.ci0.org [80.65.224.102]) by mx1.freebsd.org (Postfix) with ESMTP id 1EE5613C455 for ; Sun, 7 Jan 2007 23:19:47 +0000 (UTC) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (localhost.ci0.org [127.0.0.1]) by dong.ci0.org (8.13.7/8.13.4) with ESMTP id l07Nb5XZ034105; Mon, 8 Jan 2007 00:37:05 +0100 (CET) (envelope-from mlfbsd@dong.ci0.org) Received: (from mlfbsd@localhost) by dong.ci0.org (8.13.7/8.13.4/Submit) id l07Nb426034104; Mon, 8 Jan 2007 00:37:04 +0100 (CET) (envelope-from mlfbsd) Date: Mon, 8 Jan 2007 00:37:04 +0100 From: Olivier Houchard To: ticso@cicely.de Message-ID: <20070107233704.GA34036@ci0.org> References: <20070107210212.GP58585@cicely12.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070107210212.GP58585@cicely12.cicely.de> User-Agent: Mutt/1.4.1i Cc: Bernd Walter , freebsd-arm@freebsd.org, Hans Petter Selasky Subject: Re: Strange assembler warning X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 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, 07 Jan 2007 23:19:48 -0000 On Sun, Jan 07, 2007 at 10:02:13PM +0100, Bernd Walter wrote: > I was trying to build Hans Petter's USB stack: > cc -c -O2 -pipe -fno-strict-aliasing -mcpu=arm9 -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -fformat-extensions -nostdinc -I- -I. -I../../.. -I../../../contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mcpu=arm9 -ffreestanding -Werror ../../../dev/usb/ohci.c > ../../../dev/usb/ohci.c:120:1: "PHYSADDR" redefined > In file included from :5: > ./opt_global.h:3:1: this is the location of the previous definition > {standard input}: Assembler messages: > {standard input}:6052: Warning: source register same as write-back base > *** Error code 1 > > Stop in /usr/src/sys/arm/compile/FBOX. > 98.000u 3.000s 2:01.33 83.8% 37057+84655k 1+12io 2pf+0w > Exit 1 > [86]arm9# > > Ok - the PHYADDR is a name collision with the kernel load address. > After removing the clash it compiles. > But the assembler warning remains. > Hi Bernd, Could you put the assembler file, as provided my cc -S, and ohci.c somewhere online ? This typically happens with gcc allocating the wrong registers with inline asm, so we need to figure out which code is at fault, and try to fix it or work around the problem. Thanks ! Olivier From owner-freebsd-arm@FreeBSD.ORG Sun Jan 7 23:53:27 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 169F216A584 for ; Sun, 7 Jan 2007 23:53:27 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id 9B1C013C45E for ; Sun, 7 Jan 2007 23:53:26 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id l07NrDMI020976; Mon, 8 Jan 2007 00:53:14 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id l07NqwLL001675 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 8 Jan 2007 00:52:59 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id l07Nqwop077820; Mon, 8 Jan 2007 00:52:58 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id l07NqwJR077819; Mon, 8 Jan 2007 00:52:58 +0100 (CET) (envelope-from ticso) Date: Mon, 8 Jan 2007 00:52:58 +0100 From: Bernd Walter To: Olivier Houchard Message-ID: <20070107235257.GS58585@cicely12.cicely.de> References: <20070107210212.GP58585@cicely12.cicely.de> <20070107233704.GA34036@ci0.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070107233704.GA34036@ci0.org> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, BAYES_00=-2.599 autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on cicely12.cicely.de Cc: Bernd Walter , freebsd-arm@freebsd.org, ticso@cicely.de, Hans Petter Selasky Subject: Re: Strange assembler warning X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Jan 2007 23:53:27 -0000 On Mon, Jan 08, 2007 at 12:37:04AM +0100, Olivier Houchard wrote: > On Sun, Jan 07, 2007 at 10:02:13PM +0100, Bernd Walter wrote: > > I was trying to build Hans Petter's USB stack: > > cc -c -O2 -pipe -fno-strict-aliasing -mcpu=arm9 -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -fformat-extensions -nostdinc -I- -I. -I../../.. -I../../../contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mcpu=arm9 -ffreestanding -Werror ../../../dev/usb/ohci.c > > ../../../dev/usb/ohci.c:120:1: "PHYSADDR" redefined > > In file included from :5: > > ./opt_global.h:3:1: this is the location of the previous definition > > {standard input}: Assembler messages: > > {standard input}:6052: Warning: source register same as write-back base > > *** Error code 1 > > > > Stop in /usr/src/sys/arm/compile/FBOX. > > 98.000u 3.000s 2:01.33 83.8% 37057+84655k 1+12io 2pf+0w > > Exit 1 > > [86]arm9# > > > > Ok - the PHYADDR is a name collision with the kernel load address. > > After removing the clash it compiles. > > But the assembler warning remains. > > > > Hi Bernd, > > Could you put the assembler file, as provided my cc -S, and ohci.c somewhere > online ? This typically happens with gcc allocating the wrong registers with > inline asm, so we need to figure out which code is at fault, and try to fix it > or work around the problem. I redid the file with -g. To get the new line numer in the assembly: [121]arm9# cc -c -g -O2 -pipe -fno-strict-aliasing -mcpu=arm9 -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -fformat-extensions -nostdinc -I- -I. -I../../.. -I../../../contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mcpu=arm9 -ffreestanding -Werror ../../../dev/usb/ohci.c {standard input}: Assembler messages: {standard input}:7356: Warning: source register same as write-back base http://www.bwct.de/~ticso/ohci.c http://www.bwct.de/~ticso/ohci.s -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de From owner-freebsd-arm@FreeBSD.ORG Mon Jan 8 11:45:32 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B97EF16A412 for ; Mon, 8 Jan 2007 11:45:32 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.swip.net [212.247.154.193]) by mx1.freebsd.org (Postfix) with ESMTP id 5A51313C459 for ; Mon, 8 Jan 2007 11:45:32 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [193.217.102.48] (account mc467741@c2i.net HELO [10.0.0.249]) by mailfe07.swip.net (CommuniGate Pro SMTP 5.0.12) with ESMTPA id 378057969; Mon, 08 Jan 2007 11:45:20 +0100 From: Hans Petter Selasky To: Olivier Houchard Date: Mon, 8 Jan 2007 11:44:55 +0100 User-Agent: KMail/1.7 References: <20070107210212.GP58585@cicely12.cicely.de> <20070107233704.GA34036@ci0.org> In-Reply-To: <20070107233704.GA34036@ci0.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701081144.57054.hselasky@c2i.net> Cc: Bernd Walter , freebsd-arm@freebsd.org, ticso@cicely.de Subject: Re: Strange assembler warning X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 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, 08 Jan 2007 11:45:32 -0000 On Monday 08 January 2007 00:37, Olivier Houchard wrote: > On Sun, Jan 07, 2007 at 10:02:13PM +0100, Bernd Walter wrote: > > I was trying to build Hans Petter's USB stack: > > cc -c -O2 -pipe -fno-strict-aliasing -mcpu=arm9 -std=c99 -Wall > > -Wredundant-decls -Wnested-externs -Wstrict-prototypes > > -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef > > -fformat-extensions -nostdinc -I- -I. -I../../.. -I../../../contrib/altq > > -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common > > -finline-limit=8000 --param inline-unit-growth=100 --param > > large-function-growth=1000 -mcpu=arm9 -ffreestanding -Werror > > ../../../dev/usb/ohci.c ../../../dev/usb/ohci.c:120:1: "PHYSADDR" > > redefined > > In file included from :5: > > ./opt_global.h:3:1: this is the location of the previous definition > > {standard input}: Assembler messages: > > {standard input}:6052: Warning: source register same as write-back base > > *** Error code 1 > > > > Stop in /usr/src/sys/arm/compile/FBOX. > > 98.000u 3.000s 2:01.33 83.8% 37057+84655k 1+12io 2pf+0w > > Exit 1 > > [86]arm9# > > > > Ok - the PHYADDR is a name collision with the kernel load address. > > After removing the clash it compiles. > > But the assembler warning remains. > > Hi Bernd, > > Could you put the assembler file, as provided my cc -S, and ohci.c > somewhere online ? This typically happens with gcc allocating the wrong > registers with inline asm, so we need to figure out which code is at fault, > and try to fix it or work around the problem. > > Thanks ! > > Olivier Hi Bernd, Could you send me a diff when you are finished, and I will look over the changes and integrate your work in my SVN and p4 tree. Oliver: Did you find the reason for the Assembler warning ? --HPS From owner-freebsd-arm@FreeBSD.ORG Mon Jan 8 22:53:50 2007 Return-Path: X-Original-To: arm@freebsd.org Delivered-To: freebsd-arm@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A790D16A40F for ; Mon, 8 Jan 2007 22:53:50 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id 6705113C457 for ; Mon, 8 Jan 2007 22:53:50 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp1.sentex.ca (smtp1c.sentex.ca [64.7.153.10]) by smarthost1.sentex.ca (8.13.6/8.13.6) with ESMTP id l08LxDPT087501; Mon, 8 Jan 2007 16:59:13 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp1.sentex.ca (8.13.8/8.13.8) with ESMTP id l08LxDLs015179; Mon, 8 Jan 2007 16:59:13 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 0683273034; Mon, 8 Jan 2007 16:59:12 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20070108215913.0683273034@freebsd-current.sentex.ca> Date: Mon, 8 Jan 2007 16:59:12 -0500 (EST) X-Virus-Scanned: ClamAV version 0.88.3, clamav-milter version 0.88.3 on clamscanner2 X-Virus-Scanned: ClamAV version devel-20070102, clamav-milter version devel-111206 on clamscanner5 X-Virus-Status: Clean Cc: Subject: [head tinderbox] failure on arm/arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jan 2007 22:53:50 -0000 TB --- 2007-01-08 21:05:00 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2007-01-08 21:05:00 - starting HEAD tinderbox run for arm/arm TB --- 2007-01-08 21:05:00 - cleaning the object tree TB --- 2007-01-08 21:05:33 - checking out the source tree TB --- 2007-01-08 21:05:33 - cd /tinderbox/HEAD/arm/arm TB --- 2007-01-08 21:05:33 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2007-01-08 21:15:55 - building world (CFLAGS=-O2 -pipe) TB --- 2007-01-08 21:15:55 - cd /src TB --- 2007-01-08 21:15:55 - /usr/bin/make -B buildworld >>> World build started on Mon Jan 8 21:15:57 UTC 2007 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] (cd /src/rescue/rescue/../../sbin/dhclient && /usr/bin/make -DRESCUE CRUNCH_CFLAGS=-DRESCUE DIRPRFX=rescue/rescue/dhclient/ -DRELEASE_CRUNCH -Dlint depend && /usr/bin/make -DRESCUE CRUNCH_CFLAGS=-DRESCUE DIRPRFX=rescue/rescue/dhclient/ -DRELEASE_CRUNCH -Dlint dhclient.o clparse.o alloc.o dispatch.o hash.o bpf.o options.o tree.o conflex.o errwarn.o inet.o packet.o convert.o tables.o parse.o privsep.o) rm -f .depend mkdep -f .depend -a -DRESCUE /src/sbin/dhclient/dhclient.c /src/sbin/dhclient/clparse.c /src/sbin/dhclient/alloc.c /src/sbin/dhclient/dispatch.c /src/sbin/dhclient/hash.c /src/sbin/dhclient/bpf.c /src/sbin/dhclient/options.c /src/sbin/dhclient/tree.c /src/sbin/dhclient/conflex.c /src/sbin/dhclient/errwarn.c /src/sbin/dhclient/inet.c /src/sbin/dhclient/packet.c /src/sbin/dhclient/convert.c /src/sbin/dhclient/tables.c /src/sbin/dhclient/parse.c /src/sbin/dhclient/privsep.c echo dhclient: /obj/arm/src/tmp/usr/lib/libc.a >> .depend cc -O2 -pipe -DRESCUE -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c /src/sbin/dhclient/dhclient.c In file included from /src/sbin/dhclient/dhclient.c:62: /obj/arm/src/tmp/usr/include/net80211/ieee80211_freebsd.h:151: warning: "struct ifqueue" declared inside parameter list /obj/arm/src/tmp/usr/include/net80211/ieee80211_freebsd.h:151: warning: its scope is only this definition or declaration, which is probably not what you want *** Error code 1 Stop in /src/sbin/dhclient. *** Error code 1 Stop in /obj/arm/src/rescue/rescue. *** Error code 1 Stop in /src/rescue/rescue. *** Error code 1 Stop in /src/rescue. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2007-01-08 21:59:12 - WARNING: /usr/bin/make returned exit code 1 TB --- 2007-01-08 21:59:12 - ERROR: failed to build world TB --- 2007-01-08 21:59:12 - tinderbox aborted TB --- 0.36 user 1.77 system 3251.99 real http://tinderbox.des.no/tinderbox-head-HEAD-arm-arm.full From owner-freebsd-arm@FreeBSD.ORG Thu Jan 11 10:15:38 2007 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B7C0816A407 for ; Thu, 11 Jan 2007 10:15:38 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id 4D62D13C442 for ; Thu, 11 Jan 2007 10:15:38 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id l0BAFaMQ081179 for ; Thu, 11 Jan 2007 11:15:37 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id l0BAFTxr031792 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 11 Jan 2007 11:15:29 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id l0BAFSW5090944; Thu, 11 Jan 2007 11:15:28 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id l0BAFS0d090943; Thu, 11 Jan 2007 11:15:28 +0100 (CET) (envelope-from ticso) Date: Thu, 11 Jan 2007 11:15:28 +0100 From: Bernd Walter To: freebsd-arm@freebsd.org Message-ID: <20070111101528.GV80390@cicely12.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, BAYES_00=-2.599 autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on cicely12.cicely.de Cc: Bernd Walter Subject: memcpy limitation X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jan 2007 10:15:38 -0000 I get a sigbus with the following: #0 0x00033158 in $a () at lcp.c:939 939 memcpy(&req, opt, sizeof req); (gdb) print req $1 = {hdr = {id = 0 '\0', len = 0 '\0'}, proto = 0, period = 0} (gdb) print &req $2 = (struct lqrreq *) 0xbfffe4a0 (gdb) print opt $3 = (struct fsm_opt *) 0xbfffe5b6 Shouldn't memcpy work with any alignment? -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de