Re: CVS commit: src/sys/arch/atari/stand/installboot

2014-11-15 Thread Christos Zoulas
On Nov 16, 1:20pm, tsut...@ceres.dti.ne.jp (Izumi Tsutsui) wrote: -- Subject: Re: CVS commit: src/sys/arch/atari/stand/installboot | Christos, could you please at least compile before commit? I compiled, but not with the right flags (obviously). | http://mail-index.netbsd.org/source-changes/201

Re: CVS commit: src/sys/arch/atari/stand/installboot

2014-11-15 Thread Izumi Tsutsui
christos@ wrote: > | Program received signal SIGSEGV, Segmentation fault. > | 0x0007d662 in mbrtowc (ps=0x0, max_sz=1, str=0xffefdc27 "0123456789", > wc=0x0) > | at /r/work/netbsd-7/src/distrib/utils/libhack/multibyte.c:15 > | 15 return str == NULL || (*wc = (unsigned char)*str)

Re: CVS commit: src/sys/arch/atari/stand/installboot

2014-11-15 Thread Izumi Tsutsui
>- uint16_t sum; >+ union { >+ struct bootblock *bbp; >+ uint16_t *word; /* to fill cksum word */ >+ } bbsec; >... >- sum = 0; >- memcpy(bb->bb_xxboot + 255 * sizeof(sum), &sum, sizeof(sum)); >- sum = 0x1234 - abcksum(bb->b

Re: CVS commit: src/sys

2014-11-15 Thread Takeshi Nakayama
>>> Takeshi Nakayama wrote > >>> Justin Cormack wrote > > > Er, you can't do that. > > > > 1. It breaks the rump builds on most platforms > > http://build.myriabit.eu:8012/waterfall as the prototypes dont match > > eg see > > http://build.myriabit.eu:8012/builders/ppc64-cross/builds/5585/step

Re: CVS commit: src/sys

2014-11-15 Thread Takeshi Nakayama
>>> Justin Cormack wrote > Er, you can't do that. > > 1. It breaks the rump builds on most platforms > http://build.myriabit.eu:8012/waterfall as the prototypes dont match > eg see > http://build.myriabit.eu:8012/builders/ppc64-cross/builds/5585/steps/shell_3/logs/stdio It seems that posix say

Re: CVS commit: src/sys/arch/atari/stand/installboot

2014-11-15 Thread Taylor R Campbell
Date: Sat, 15 Nov 2014 13:43:16 +0900 From: Izumi Tsutsui -uint16_t sum; +union { +struct bootblock *bbp; +uint16_t *word; /* to fill cksum word */ +} bbsec; ... -sum = 0; -memcpy(bb->bb_xxboot + 255 * sizeo

Re: CVS commit: src/sys

2014-11-15 Thread Justin Cormack
On Sat, Nov 15, 2014 at 6:49 PM, Takeshi Nakayama wrote: > Module Name:src > Committed By: nakayama > Date: Sat Nov 15 18:49:05 UTC 2014 > > Modified Files: > src/sys/netsmb: iconv.c > src/sys/rump/dev/lib/libnetsmb: Makefile > Added Files: > src/sys/rump/de

Re: CVS commit: src/sys/arch/atari/stand/installboot

2014-11-15 Thread Christos Zoulas
On Nov 15, 10:46pm, tsut...@ceres.dti.ne.jp (Izumi Tsutsui) wrote: -- Subject: Re: CVS commit: src/sys/arch/atari/stand/installboot | Program received signal SIGSEGV, Segmentation fault. | 0x0007d662 in mbrtowc (ps=0x0, max_sz=1, str=0xffefdc27 "0123456789", wc=0x0) | at /r/work/netbsd-7/src/d

Re: CVS commit: src/sys/arch/atari/stand/installboot

2014-11-15 Thread Christos Zoulas
On Nov 15, 1:43pm, tsut...@ceres.dti.ne.jp (Izumi Tsutsui) wrote: -- Subject: Re: CVS commit: src/sys/arch/atari/stand/installboot | How about this one? (cksum seems updated properly on the real machine) That looks nicer, go for it! christos | | --- installboot/installboot.c 2014-11-14 13:21:1

Re: CVS commit: src/sys/arch/atari/stand/installboot

2014-11-15 Thread Izumi Tsutsui
I wrote: > With unstripped binary, it looks distrib/utils/libhack issue? > > --- > (gdb) run y/0123456789/abcdefghij/ > Starting program: > /r/work/netbsd-7/src/distrib/atari/floppies/install/obj.atari/sed/sed > y/0123456789/abcdefghij/ > > Program received signal SIGSEGV, Segmentation fault.

Re: CVS commit: src/sys/arch/atari/stand/installboot

2014-11-15 Thread Izumi Tsutsui
martin@ wrote: > I still don't see the segmentation violation - what am I missing? > Gdb is a bit confused about the stack: > > (gdb) bt > #0 0x0008c2b8 in ?? () > #1 0xaba4 in ?? () > #2 0xbc34 in ?? () > #3 0x0006fce8 in ?? () > #4 0x in ?? () With unstripped binary, it lo