Re: nginx + passenger = segv in _rtld_error on restart on FreeBSD8.0?

2010-05-07 Thread Matt Reimer
On Wed, Dec 9, 2009 at 4:20 AM, Steven Hartland wrote: > > - Original Message - From: "Kostik Belousov" > To: "Steven Hartland" > Cc: ; > Sent: Wednesday, December 09, 2009 10:21 AM > Subject: Re: nginx + passenger = segv in _rtld_error on restart on > FreeBSD8.0? > > This is the trace

hifn(4) DMA fix for review

2010-05-07 Thread Oleksandr Tymoshenko
Proposed patch addresses hifn(4) problems on FreeBSD/mips. Current implementation keeps some of the state information (indexes in buffers, etc) in DMA-mapped memory and bus_dma code invalidates them during sync operations. This fix moves data that doesn't belong to DMA ring to softc structure.

Re: Moving from FreeBSD7 to FreeBSD8 (cdev, minor, dev2unit)

2010-05-07 Thread Benjamin Kaduk
On Fri, 7 May 2010, Dmitry Krivenok wrote: It looks like dev2unit is exactly what I need to fix compilation issue. I changed the code of all modules as follows: - int dev_num = minor(dev); + int dev_num = minor(dev2unit(dev)); and now it compiles and works well. Is this the proper way of sol

Re: nginx + passenger = segv in _rtld_error on restart on FreeBSD 8.0?

2010-05-07 Thread Matt Reimer
On Tue, Dec 8, 2009 at 6:48 PM, Steven Hartland wrote: > I'm currently testing nginx + passenger on FreeBSD 8.0 and I'm seeing a > strange > segv which seems to indicate a core library error in _rtld_error. Could this > be the case or is the stack just badly corrupted? > > (gdb) bt > #0  0x000

Moving from FreeBSD7 to FreeBSD8 (cdev, minor, dev2unit)

2010-05-07 Thread Dmitry Krivenok
Hello Hackers, I'm working on porting some kernel modules written for FreeBSD7 to FreeBSD8. Some of these modules contain the following code: struct cdev *dev; ... int dev_num = minor(dev); This code doesn't compile on FreeBSD8. I found that in FreeBSD7 minor() was defined as follows: 515 int

Re: How to get data from kernel module ?

2010-05-07 Thread Lukáš Czerner
On Thu, 6 May 2010, Ivan Voras wrote: > Date: Thu, 06 May 2010 20:12:07 +0200 > From: Ivan Voras > To: freebsd-hackers@freebsd.org > Subject: Re: How to get data from kernel module ? > > On 05/06/10 15:38, Lukáš Czerner wrote: > > Hi, > > > > I am creating a kernel module and I need to get some

Re: Converting pointer to vm_offset_t

2010-05-07 Thread Garrett Cooper
2010/5/6 Fernando Apesteguía : > 2010/5/7 Garrett Cooper : >> 2010/5/5 Fernando Apesteguía : >>> Hi all, >>> >>> Is there a way to convert a (char *) pointer (or in general any >>> pointer) to a vm_offset_t type? >> >> Be wary that char * is not compat layer friendly though :(... > > Ummm... I'm as