POST does the most of the work. It allocates the free base addresses to the devices, based on their size requirements. The OS or Linux has the liberty to override it. PCI is much more flexible than ISA and therefore can be set on runtime without any hardcoded values. Thanks, Sumit ----- Original Message ----- From: "bharani" <bharanis@future.futsoft.com> Date: Tuesday, April 23, 2002 8:48 pm Subject: Base addr & Irq of PCI devices > Hi all, > > I have a doubt on PCI driver initialisation. > > 1.How is the base address allocated for a PCI device > and what is its range? Is it similar to ISA devices > where we specify the base addr ranges and irq to be > assigned. > > 2. Does PCI has its own range of base addresses or is it > equivalent to ISA buses? > > 3. Which part of PCI code handles the base addr and irq > registration ? > > Thanks in advance, > Bharani. > > > -----Original Message----- > From: kernelnewbies-bounce@nl.linux.org > [mailto:kernelnewbies-bounce@nl.linux.org]On Behalf Of Momchil Velikov > Sent: Tuesday, 23 April 2002 6:51 PM > To: Sridhar N (by way of Sridhar N<srin@srin.homelinux.net>) > Cc: Mailing List:Kernel Newbies; Erik Mouw > Subject: Re: User-level threads and preemption > > > >>>>> "Sridhar" == Sridhar N <<srin@symonds.net> (by way of > Sridhar N > <srin@srin.homelinux.net>)> writes: > > Sridhar> On Monday 22 April 2002 05:02 am, Erik Mouw wrote: > >> > If one userspace thread is doing a system call and is pre- > empted, can > >> > the process execute another of its own thread that also > executes a > >> > system call ? > >> > >> Sure, why not? Threads and processes are almost the same on > linux, so > >> if a process can be preempted, a thread can also be preempted. > > Sridhar> Sorry, i suppose i didn't say it right. I wasn't talking > about the > threads > Sridhar> that you create using a system call ( eg. clone() ), but > i was > referring to > Sridhar> user-space libs ( like pthread,etc, ) > > _Usually_ it is not possible, as the kernel is unaware of the > existance of some user space date structures, which the user use to > call "threads" ;). Thus, a blocked userspace thread blocks the entire > process. In GNU/Linux that's the case with GNU Pth, as they are pure > userspace, unlike Linuxthreads, which are pure kernelspace. > > Why "usually" ? :) > > Because there are systems, where the userland is notified when a > thread is put to sleep, thus given the chance to run another one. This > is usually called "scheduler activations" with the most notable > (or of > most practical interest) example being the upcoming FreeBSD 5.0 > kernel. > > Regards, > -velco > -- > Kernelnewbies: Help each other learn about the Linux kernel. > Archive: http://mail.nl.linux.org/kernelnewbies/ > FAQ: http://kernelnewbies.org/faq/ > > ************************************************************************ *** > This message is proprietary to Future Software Limited (FSL) > and is intended solely for the use of the individual to whom it > is addressed. It may contain privileged or confidential > information > and should not be circulated or used for any purpose other than > for > what it is intended. > > If you have received this message in error, please notify the > originator immediately. If you are not the intended recipient, > you are notified that you are strictly prohibited from using, > copying, altering, or disclosing the contents of this message. > FSL accepts no responsibility for loss or damage arising from > the use of the information transmitted by this email including > damage from virus. > ************************************************************************ *** > -- > Kernelnewbies: Help each other learn about the Linux kernel. > Archive: http://mail.nl.linux.org/kernelnewbies/ > FAQ: http://kernelnewbies.org/faq/ > >
begin:vcard n:Agarwal;Sumit fn:Sumit Agarwal tel;cell:+919845205210 tel;fax:+91-80-5732696 tel;home:+919845205210 tel;work:+91-805732296 / 93 extn. 5243 url:www.wipro.com org:Wipro Technologies;SIDC, Embedded and Internet Division adr:;;Wipro Technologies, Chamundi Complex, No.26, Hosur Main Road, Bommanahalli;Bangalore;Karnataka;560068;INDIA version:2.1 email;internet:sumit.agarwal@wipro.com title:Senior Software Engineer end:vcard
**************************Disclaimer************************************ Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. ********************************************************************