tech-kern archive

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

Re: EFI system table mapping




> On Oct 11, 2019, at 4:54 PM, Emmanuel Dreyfus <manu%netbsd.org@localhost> wrote:
> 
> I got it working by doing it the way we map the ACPI tables:
> 
>       rv = _x86_memio_map(x86_bus_space_mem, pa,     
>           PAGE_SIZE, 0, (bus_space_handle_t *)&va); 
> 
> Is this new version right? The x86 prefix suggests the code is less
> portable, andd the bus_space stuff suggests we highjack an unrelated
> API. But at least it works.

This is fine.  You're in machdep code and need to do a machdep thing -- I don't see any issue with this solution.

-- thorpej



Home | Main Index | Thread Index | Old Index