Date: Tue, 26 Sep 2017 22:01:52 -0600 From: Warner Losh <imp@bsdimp.com> To: Mori Hiroki <yamori813@yahoo.co.jp>, Mateusz Guzik <mjguzik@gmail.com> Cc: "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org> Subject: Re: Hang up at boot on armv5t Message-ID: <CANCZdfo46j=jCV8uu=x4p2bqTaJitoMb7tobXBbMOd5R0SZUsg@mail.gmail.com> In-Reply-To: <317452.45869.qm@web101717.mail.ssk.yahoo.co.jp> References: <509836.65470.qm@web101704.mail.ssk.yahoo.co.jp> <CANCZdfo8hAYHn79=mXqcyE85ghWs1FQHK=LBcf1p7nQSQDeusQ@mail.gmail.com> <818825.27559.qm@web101705.mail.ssk.yahoo.co.jp> <323129.32331.qm@web101720.mail.ssk.yahoo.co.jp> <317452.45869.qm@web101717.mail.ssk.yahoo.co.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
Well, you could do something cheezy like #ifndef arm :) If you do that in the latest sources, does it solve the problem? diff --git a/sys/sys/systm.h b/sys/sys/systm.h index ddebe0a6843..484784466a3 100644 --- a/sys/sys/systm.h +++ b/sys/sys/systm.h @@ -258,12 +258,14 @@ void hexdump(const void *ptr, int length, const char *hdr, int flags); #define ovbcopy(f, t, l) bcopy((f), (t), (l)) void bcopy(const void * _Nonnull from, void * _Nonnull to, size_t len); void bzero(void * _Nonnull buf, size_t len); +#ifndef arm #define bzero(buf, len) ({ \ if (__builtin_constant_p(len) && (len) <= 64) \ __builtin_memset((buf), 0, (len)); \ else \ bzero((buf), (len)); \ }) +#endif void explicit_bzero(void * _Nonnull, size_t); void *memcpy(void * _Nonnull to, const void * _Nonnull from, size_t len); And is this built with gcc or clang? What version? Warner On Tue, Sep 26, 2017 at 9:55 PM, Mori Hiroki <yamori813@yahoo.co.jp> wrote: > Hi. > > I found out hang up problem cause of this commit. > > commit 20b4bc44be9bc985b74f8d5a01a24e302e2a44ff > Author: mjg <mjg@FreeBSD.org> > Date: Fri Sep 8 20:09:14 2017 +0000 > > How to fix these commit ? > > Hiroki Mori > > > ----- Original Message ----- > > From: Mori Hiroki <yamori813@yahoo.co.jp> > > To: "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org> > > Cc: > > Date: 2017/9/27, Wed 10:42 > > Subject: Re: Hang up at boot on armv5t > > > > Hi. > > > > I still investigate this problem. > > > > I found other problem. > > > > This commit make panic on armv5t(RT1310). > > > > commit 1db0a229476afafe06f2bc9749f6738e6cc6d047 > > Author: markj <markj@FreeBSD.org> > > Date: Thu Sep 7 21:43:39 2017 +0000 > > > > https://gist.github.com/yamori813/dc3740085996af505d6694461751706f > > > > > > Hiroki Mori > > > > > > ----- Original Message ----- > >> From: Mori Hiroki <yamori813@yahoo.co.jp> > >> To: Warner Losh <imp@bsdimp.com> > >> Cc: "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org> > >> Date: 2017/9/19, Tue 15:27 > >> Subject: Re: Hang up at boot on armv5t > >> > >> Hi > >> > >> ----- Original Message ----- > >>> From: Warner Losh <imp@bsdimp.com> > >>> To: Mori Hiroki <yamori813@yahoo.co.jp> > >>> Cc: "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org> > >>> Date: 2017/9/19, Tue 00:32 > >>> Subject: Re: Hang up at boot on armv5t > >>> > >>> > >>> > >>> > >>> > >>> > >>> On Mon, Sep 18, 2017 at 12:59 AM, Mori Hiroki > > <yamori813@yahoo.co.jp> > >> wrote: > >>> > >>> Hi > >>>> > >>>> Now head is hung up at boot on armv5t. > >>>> > >>>> KDB: debugger backends: ddb > >>>> KDB: current backend: ddb > >>>> Copyright (c) 1992-2017 The FreeBSD Project. > >>>> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, > > 1994 > >>>> The Regents of the University of California. All rights > >> reserved. > >>>> FreeBSD is a registered trademark of The FreeBSD Foundation. > >>>> FreeBSD 12.0-CURRENT #2 a3dbcdd(zrouter)-dirty: Mon Sep 11 18:04:22 > > JST > >> 2017 > >>>> hiroki@microserver:/storage/ home/hiroki/obj/storage/home/ > >> hiroki/zrouter/tmp/ > >>>> arm.arm/storage/home/hiroki/ freebsd/sys/Buffalo_WZR2-G300N arm > >>>> FreeBSD clang version 5.0.0 (tags/RELEASE_500/final 312559) (based > > on > >> LLVM 5.0.0 > >>>> svn) > >>>> > >>>> Last month build is fine. > >>>> > >>>> https://gist.github.com/ yamori813/ 88224f1c96c9c592fb611b12a15e4a > > b5 > >>> > >>> > >>> You might want to do a binary search between the working and broken > > builds > >> to see where it breaks. Without that, it's hard to make progress. > >>> > >>> > >>> Warner > >> > >> > >> This is RT1310 build by sys/arm/ralink. > >> > >> I get debug log by VERBOSE_SYSINIT. > >> > >> > >> Copyright (c) 1992-2017 The FreeBSD Project. > >> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, > 1994 > >> The Regents of the University of California. All rights > reserved. > >> FreeBSD is a registered trademark of The FreeBSD Foundation. > >> FreeBSD 12.0-CURRENT #1 a3dbcdd(zrouter)-dirty: Tue Sep 19 15:03:43 JST > > 2017 > >> > > hiroki@microserver:/storage/home/hiroki/obj/storage/home/ > hiroki/zrouter/tmp/ > >> arm.arm/storage/home/hiroki/freebsd/sys/Buffalo_WZR2-G300N arm > >> FreeBSD clang version 5.0.0 (tags/RELEASE_500/final 312559) (based on > LLVM > > 5.0.0 > >> svn) > >> subsystem 1000000 > >> 0xc01c1674(0)... done. > >> 0xc01d3a0c(0)... done. > >> subsystem 1800000 > >> 0xc00b9cb4(0)... done. > >> 0xc0097fc4(0)... done. > >> 0xc0097c00(0xc0280580)... > >> > >> I checked last address by objdump -D. > >> > >> c0097c00 <malloc_init>: > >> c0280580 <M_GEOM>: > >> > >> What is wrong ? > >> > >> I use git repository on build. If I change git branch then arm > platform is > > build > >> take > >> > >> 6 hour by my server. It is very hard debugging. > >> > >> Hiroki Mori > >> > >> _______________________________________________ > >> freebsd-arm@freebsd.org mailing list > >> https://lists.freebsd.org/mailman/listinfo/freebsd-arm > >> To unsubscribe, send any mail to > > "freebsd-arm-unsubscribe@freebsd.org" > >> > > _______________________________________________ > > freebsd-arm@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > > > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfo46j=jCV8uu=x4p2bqTaJitoMb7tobXBbMOd5R0SZUsg>