Re: amd64 kernel modules: mapping sections to addresses

2010-06-21 Thread Andriy Gapon
on 22/06/2010 01:00 Navdeep Parhar said the following: > > I'm not so sure about this. There is code inside the second switch that runs > whether sh_size is 0 or not. Either all of it is pointless code (when sh_size > is 0) or or you'll make sure that it still runs, right? It's definitely point

Re: amd64 kernel modules: mapping sections to addresses

2010-06-21 Thread Navdeep Parhar
On Tue, Jun 22, 2010 at 12:34:49AM +0300, Andriy Gapon wrote: > on 21/06/2010 23:44 Navdeep Parhar said the following: > > On Mon, Jun 21, 2010 at 04:10:45PM -0400, John Baldwin wrote: > >> On Monday 21 June 2010 11:57:17 am Andriy Gapon wrote: > >>> on 21/06/2010 18:43 John Baldwin said the follow

Re: amd64 kernel modules: mapping sections to addresses

2010-06-21 Thread Andriy Gapon
on 21/06/2010 23:44 Navdeep Parhar said the following: > On Mon, Jun 21, 2010 at 04:10:45PM -0400, John Baldwin wrote: >> On Monday 21 June 2010 11:57:17 am Andriy Gapon wrote: >>> on 21/06/2010 18:43 John Baldwin said the following: np@ has a patch to gdb to fix this for kgdb. I haven't comm

Re: [patch] extending alloc_unr(9) to allocate specific unit numbers

2010-06-21 Thread Brooks Davis
On Mon, Jun 21, 2010 at 07:25:10PM +, Poul-Henning Kamp wrote: > In message <201006211109.11653@freebsd.org>, John Baldwin writes: > >On Saturday 19 June 2010 11:48:22 am Jaakko Heinonen wrote: > > >> As an example here is md(4) converted to use > >> alloc_unr() / alloc_unr_specific(): > >

Re: amd64 kernel modules: mapping sections to addresses

2010-06-21 Thread Navdeep Parhar
On Mon, Jun 21, 2010 at 04:10:45PM -0400, John Baldwin wrote: > On Monday 21 June 2010 11:57:17 am Andriy Gapon wrote: > > on 21/06/2010 18:43 John Baldwin said the following: > > > np@ has a patch to gdb to fix this for kgdb. I haven't committed it as > > > it > > > patched gdb internals and wa

Re: amd64 kernel modules: mapping sections to addresses

2010-06-21 Thread John Baldwin
On Monday 21 June 2010 11:57:17 am Andriy Gapon wrote: > on 21/06/2010 18:43 John Baldwin said the following: > > np@ has a patch to gdb to fix this for kgdb. I haven't committed it as it > > patched gdb internals and wasn't in a kgdb-specific place, but I'm not sure of > > a better way to fix

Re: [patch] extending alloc_unr(9) to allocate specific unit numbers

2010-06-21 Thread Poul-Henning Kamp
In message <201006211109.11653@freebsd.org>, John Baldwin writes: >On Saturday 19 June 2010 11:48:22 am Jaakko Heinonen wrote: >> As an example here is md(4) converted to use >> alloc_unr() / alloc_unr_specific(): >> >> http://people.freebsd.org/~jh/patches/md-alloc_unr.diff > >This soun

About Marvell Yukon drivers skgeinit and sky2

2010-06-21 Thread Anjali Kulkarni
Hi, As I understand, there are 2 flavors of the Marvel Yukon driver. One is for Yukon-I devices, and is called skgeinit, and other is for Yukon-II devices and called sky2 driver. Looking at the release notes for 7.0, it looks like this driver which was in sys/dev/yukon, is now present as the m

Re: amd64 kernel modules: mapping sections to addresses

2010-06-21 Thread Andriy Gapon
on 21/06/2010 18:43 John Baldwin said the following: > np@ has a patch to gdb to fix this for kgdb. I haven't committed it as it > patched gdb internals and wasn't in a kgdb-specific place, but I'm not sure > of > a better way to fix kgdb. Oh, yes, section mapping is done in common gdb code. P

Re: amd64 kernel modules: mapping sections to addresses

2010-06-21 Thread John Baldwin
On Monday 21 June 2010 10:39:08 am Andriy Gapon wrote: > > I've noticed that on amd64 addresses (sh_addr) of all sections in a kernel module > are zeros. > This is unlike kernel itself and i386 modules. > > Kernel linker maps SHT_PROGBITS and SHT_NOBITS sections sequentially starting at a > cer

Re: [patch] extending alloc_unr(9) to allocate specific unit numbers

2010-06-21 Thread John Baldwin
On Saturday 19 June 2010 11:48:22 am Jaakko Heinonen wrote: > > Hi, > > I wrote a patch to extend the kernel unit number allocator for > allocating specific unit numbers. The patch adds a new function > alloc_unr_specific() which returns the requested unit number if it is > free and -1 if the num

amd64 kernel modules: mapping sections to addresses

2010-06-21 Thread Andriy Gapon
I've noticed that on amd64 addresses (sh_addr) of all sections in a kernel module are zeros. This is unlike kernel itself and i386 modules. Kernel linker maps SHT_PROGBITS and SHT_NOBITS sections sequentially starting at a certain base address and taking into account their sizes and alignment

Re: "Checksum mismatch -- will transfer entire file"

2010-06-21 Thread Victor Sudakov
Gary Jennejohn wrote: > > > > > > > csup already has a CVS mode, at least in 9-current. I don't use older > > > > versions of FreeBSD so I don't know whether it supports CVS there. > > > > > > It does at least down to 7.x. > > > > High time to fix this botheration, isn't it? > > > > This has

Re: Are POSIX mqueues supposed to be functional on FreeBSD?

2010-06-21 Thread Kostik Belousov
On Mon, Jun 21, 2010 at 11:41:58AM +1200, Andrew Thompson wrote: > On 21 June 2010 10:11, Garrett Cooper wrote: > > On Sun, Jun 20, 2010 at 3:06 PM, Stathis Kamperis > > wrote: > >> 2010/6/21 Garrett Cooper : > >>>    Err... I ran an mqueue test and it popped up with ENOSYS. Which > >>> makes me

Re: "Checksum mismatch -- will transfer entire file"

2010-06-21 Thread Gary Jennejohn
On Mon, 21 Jun 2010 08:45:17 +0700 Victor Sudakov wrote: > Christian Weisgerber wrote: > > > > > csup already has a CVS mode, at least in 9-current. I don't use older > > > versions of FreeBSD so I don't know whether it supports CVS there. > > > > It does at least down to 7.x. > > High time t