automatically generate hfi structs from dwarf info

This commit is contained in:
Dominique Martinet
2017-10-04 09:11:26 +09:00
committed by Balazs Gerofi
parent 6279f69f5c
commit 03fed4d1c8
8 changed files with 780 additions and 404 deletions

View File

@@ -573,8 +573,8 @@ int hfi1_map_device_addresses(struct hfi1_filedata *fd)
/*
* Map device addresses if not mapped or mapping changed.
*/
if (proc->hfi1_kregbase != dd->kregbase) {
void *hfi1_kregbase = dd->kregbase;
if (proc->hfi1_kregbase != dd->kregbase1) {
void *hfi1_kregbase = dd->kregbase1;
phys = dd->physaddr;
attr = PTATTR_UNCACHABLE | PTATTR_WRITABLE;