Trouble with copyout, memcpy....

2009-09-28 Thread Leunam Elebek
Hey list,I currently code a driver under Current 8.0 for Current 8.0.But there are some problems with kernel/user-space interaction.I've the following structure:struct daq_kitinfo {        uint32_t ki_maxdata;        uint32_t ki_flags;        uint32_t ki_rng_type;        int           ki_type; 

Trouble with copyout, memcpy.... Plain-Text version =)

2009-09-28 Thread Leunam Elebek
Hey list, I currently code a driver under Current 8.0 for Current 8.0. But there are some problems with kernel/user-space interaction. I've the following structure: struct daq_kitinfo {         uint32_t ki_maxdata;         uint32_t ki_flags;         uint32_t ki_rng_type;         int      ki_type

Re: Trouble with copyout, memcpy.... Plain-Text version =)

2009-09-28 Thread Dag-Erling Smørgrav
Leunam Elebek writes: > /* The same as in user-space... */ > size = sizeof(*info) * kit.k_nkits; > info = malloc(sz, M_DAQ, M_NOWAIT | M_ZERO); You shouldn't use M_NOWAIT unless there is absolutely no way around it. > if (info == NULL) > Unne

Help debugging: Fatal kernel mode data abort: 'External Linefetch Abort (P)'

2009-09-28 Thread Tom Judge
Hi, I am working on getting FreeBSD to boot on a new ARM based board, and am hitting this issue any time I load a driver for the PCI based devices on the board. My current code can be found here: http://www.tomjudge.com/tmp/em7210.patch Here is the back trace of the problem (which i can repe

Re: Help debugging: Fatal kernel mode data abort: 'External Linefetch Abort (P)'

2009-09-28 Thread Olivier Houchard
On Mon, Sep 28, 2009 at 06:55:38PM +, Tom Judge wrote: > Hi, > > I am working on getting FreeBSD to boot on a new ARM based board, and am > hitting this issue any time I load a driver for the PCI based devices on > the board. > > My current code can be found here: > > http://www.tomjudge.c

Re: Help debugging: Fatal kernel mode data abort: 'External Linefetch Abort (P)'

2009-09-28 Thread Tom Judge
Olivier Houchard wrote: On Mon, Sep 28, 2009 at 06:55:38PM +, Tom Judge wrote: Hi, I am working on getting FreeBSD to boot on a new ARM based board, and am hitting this issue any time I load a driver for the PCI based devices on the board. My current code can be found here: http://w

Re: Help debugging: Fatal kernel mode data abort: 'External Linefetch Abort (P)'

2009-09-28 Thread Tom Judge
Tom Judge wrote: Olivier Houchard wrote: On Mon, Sep 28, 2009 at 06:55:38PM +, Tom Judge wrote: Hi, I am working on getting FreeBSD to boot on a new ARM based board, and am hitting this issue any time I load a driver for the PCI based devices on the board. My current code can be foun