Freeing Volatile Pointer

2005-01-03 Thread Tejas Sumant
Hi, I have a volatile pointer declared in my device driver. I am allocating memory using kernel malloc function. host_mem_resp_ptr = (volatile unsigned long *)malloc(sizeof(volatile unsigned long), M_DEVBUF, M_NOWAIT); When I try to free it, I get following warning while compiling the driver. "

Re: Freeing Volatile Pointer

2005-01-03 Thread Peter Pentchev
On Mon, Jan 03, 2005 at 06:09:45PM +0530, Tejas Sumant wrote: > Hi, > > I have a volatile pointer declared in my device driver. > I am allocating memory using kernel malloc function. > > host_mem_resp_ptr = (volatile unsigned long *)malloc(sizeof(volatile > unsigned long), M_DEVBUF, M_NOWAIT); >

Slow transition from X to vesa

2005-01-03 Thread Mervin McDougall
I recently applied a patch from current to adjust the console settings for my laptop. Previously my console was limited to 1/3 rd of my screen, however due to the new current-vesa patch I can now view my console using the entire screen with only one problem. I have noticed that there is a small

Determining userland return address (from syscall)

2005-01-03 Thread Rojer
Greetings, much respected FreeBAS Hackers! :) I am developing a kernel module that implements a custom syscall and needs to know from what exact userland address was the call made. Being concerned about choosing the most correct approach, I turned to this list for help. Please provide as much inf

Re: Freeing Volatile Pointer

2005-01-03 Thread Joerg Sonnenberger
On Mon, Jan 03, 2005 at 02:53:51PM +0200, Peter Pentchev wrote: >free((void *)host_mem_resp_ptr, M_DEVBUF) > > ...and you should be okay, unless you specifically pass -Wcast-qual to > the compiler. If you do, it will again give this warning, just because > you have explicitly asked it to :)

7520/7530 chipset support for 4.x

2005-01-03 Thread Tm4528
Are there any efforts underway to support the now prevalent 7520/7530 intel chipsets in Freebsd 4.x? They seem to work ok with 5.x, but its been widely reported that 4.x has serious problems. Given that 5.x is still a ways off from matching the performance of 4.x, those of us with production ne

Re: Using PCMCIA ATA adaptor

2005-01-03 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Dave Horsfall <[EMAIL PROTECTED]> writes: : I have a Kingston StrataDrive Plus adaptor, which in conjunction with a : Windoze driver (and Kingston drives *only*) allow a 2nd ATA drive to be : connected to a laptop. Any chance that it can be used with F

Supported SATA Cards

2005-01-03 Thread Justin Bennett
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I was looking into getting an Adaptec 2410SA SATA (Serial ATA RAID card). I just wanted to ensure this is supported by FreeBSD. I looked at the hardware list, and there is a card listed under the aac driver as a SCSI device, but with the 2410SA des

Re: Using PCMCIA ATA adaptor

2005-01-03 Thread Dave Horsfall
On Mon, 3 Jan 2005, M. Warner Losh wrote: > : I have a Kingston StrataDrive Plus adaptor, which in conjunction with a > : Windoze driver (and Kingston drives *only*) allow a 2nd ATA drive to be > : connected to a laptop. Any chance that it can be used with FreeBSD? > : > : 5.3-STABLE says "ata

Re: Using PCMCIA ATA adaptor

2005-01-03 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Dave Horsfall <[EMAIL PROTECTED]> writes: : ata2: at port 0x180-0x187,0x386-0x387 irq 11 function 0 config 37 on pccard0 Is the drive master or slave? Warner ___ freebsd-hackers@freebsd.org mailing list http

Re: Using PCMCIA ATA adaptor

2005-01-03 Thread Dave Horsfall
On Mon, 3 Jan 2005, M. Warner Losh wrote: > : ata2: at port > 0x180-0x187,0x386-0x387 irq 11 function 0 config 37 on pccard0 > > Is the drive master or slave? Master. I'm starting to think that although it claims to be an ATA adaptor, it will only recognise Kingston-brand disks (it was desig

Re: Determining userland return address (from syscall)

2005-01-03 Thread Steve Watt
In article <[EMAIL PROTECTED]> you write: [ snip ] >The solution I am about to implement is based on a custom setuid >syscall, that would allow limited list of processes to obtain root >privileges from a limited set of locations (supposedly, the trusted >ones, originating in the httpd's .text se

Re: Using PCMCIA ATA adaptor

2005-01-03 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Dave Horsfall <[EMAIL PROTECTED]> writes: : On Mon, 3 Jan 2005, M. Warner Losh wrote: : : > : ata2: at port 0x180-0x187,0x386-0x387 irq 11 function 0 config 37 on pccard0 : > : > Is the drive master or slave? : : Master. I'm starting to think that a

Re: Freeing Volatile Pointer

2005-01-03 Thread Tejas Sumant
> > Still better is using __DEVOLATILE from sys/cdefs.h, which does a cast to > uintptr_t first. This way, you even avoid this warning :) Is it available with FreeBSD4.10 release? I am working on 4.10. I couldnt find this __DEVOLATILE. OR Is it defined in any other file for 4.10 release? Tejas