tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bus_space_physload(9)

On Wed, Mar 24, 2010 at 10:35:20AM -0700, Matt Thomas wrote:
> > bus_space_physload(9) is to replace bus_space_mmap(9).
> Then where is bus_space_unphysload?  You have to be able to undo it when
> you start talking about devices.

You're right, bus_space_unphysload(9) (or *_physunload?) is needed.  We'll
need uvm_page_unphysload() too.

Unlike bus_space_mmap(9), bus_space_physload(9) is called when a device is
attached.  It prepares a context (struct vm_physseg internally) which is used
in fault handling (trap -> uvm_fault -> pmap_enter).


Masao Uebayashi / Tombi Inc. / Tel: +81-90-9141-4635

Home | Main Index | Thread Index | Old Index