Re: writing/finding pci bar0



Tim Roberts wrote:

gobo20@xxxxxxxxx wrote:

Tim Roberts wrote:

No. The BAR addresses are assigned by the BIOS at boot time, and
possibly modified later by the Linux kernel.

i understand the bios sets the five base addr's initially. but if the
kernel can change them, why can't i (using setpci for example)?

Because when YOU change them, the kernel isn't told about it, so it's
tables are no longer correct.

Plus, you don't have enough information to know whether the I/O port you
want is already assigned to something else.

Thank you Tim for expressing clearly what i had partially figured out but
could not express, i just knew it would be really, really bad idea.

--
JosephKK
Gegen dummheit kampfen die Gotter Selbst, vergebens.  
--Schiller
.



Relevant Pages

  • Re: SetSystemColor()
    ... Tim Roberts wrote: ... > Looking just at the newsgroup name, ... There's no such thing as the "Win32 kernel", ...
    (microsoft.public.win32.programmer.kernel)
  • Re: writing drivers using C++
    ... Tim Roberts wrote in ... The Windows kernel is also a straight C ... one does not carry state as "globals" (at least not ...
    (comp.os.linux.development.system)
  • Re: writing/finding pci bar0
    ... modified later by the Linux kernel. ... i understand the bios sets the five base addr's initially. ... Tim Roberts, timr@xxxxxxxxx ...
    (comp.os.linux.development.system)
  • Re: Why is an OS kernel usually written in C?
    ... Tim Roberts wrote: ... Huh? ... I don't recall anybody including myself making this argument ... kernel" argument. ...
    (microsoft.public.win32.programmer.kernel)
  • 2.6.25-rc1 panics on boot
    ... unable to handle kernel NULL pointer dereference at 0000010c ... # Automatically generated make config: ... # Linux kernel version: 2.6.25-rc1 ... # PCI IDE chipsets support ...
    (Linux-Kernel)