Re: [U-Boot-Users] [Q] memtest doubt

2008-02-07 Thread Guennadi Liakhovetski
On Thu, 7 Feb 2008, Jerry Van Baren wrote: > Your original question/concept still used the name "addr_mask" which caused > confusion on my part. Ahhh, that's just a variable name:-) > It really should be a length, not a mask. Of course. > Illustrating > with a hand-generated patch, what I am n

Re: [U-Boot-Users] [Q] memtest doubt

2008-02-07 Thread Jerry Van Baren
Guennadi Liakhovetski wrote: > Hi Jerry > > On Thu, 7 Feb 2008, Jerry Van Baren wrote: > >> Guennadi Liakhovetski wrote: >>> Hi all, >>> >>> looking through the common/cmd_mem.c::do_mem_mtest() function, I couldn't >>> understand the following place: >>> >>> addr_mask = ((ulong)end -

Re: [U-Boot-Users] [Q] memtest doubt

2008-02-07 Thread Guennadi Liakhovetski
Hi Jerry On Thu, 7 Feb 2008, Jerry Van Baren wrote: > Guennadi Liakhovetski wrote: > > Hi all, > > > > looking through the common/cmd_mem.c::do_mem_mtest() function, I couldn't > > understand the following place: > > > > addr_mask = ((ulong)end - (ulong)start)/sizeof(vu_long); > > .

Re: [U-Boot-Users] [Q] memtest doubt

2008-02-07 Thread Jerry Van Baren
Guennadi Liakhovetski wrote: > Hi all, > > looking through the common/cmd_mem.c::do_mem_mtest() function, I couldn't > understand the following place: > > addr_mask = ((ulong)end - (ulong)start)/sizeof(vu_long); > ... > for (offset = 1; (offset & addr_mask) != 0; offs

[U-Boot-Users] [Q] memtest doubt

2008-02-06 Thread Guennadi Liakhovetski
Hi all, looking through the common/cmd_mem.c::do_mem_mtest() function, I couldn't understand the following place: addr_mask = ((ulong)end - (ulong)start)/sizeof(vu_long); ... for (offset = 1; (offset & addr_mask) != 0; offset <<= 1) { start