Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
macio: use address space API to dispatch aliased reads and writes
The memory_region_dispatch_read/write() APIs assume that they are dispatching to an IO region, and so fault when accessing RAM/ROM regions such as the PROM in the Sonic network adapter. Switch to using the address_space_read/write() APIs which will correctly handle ROM/RAM-based accesses accordingly.
- Loading branch information
Showing
1 changed file
with
36 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters