TO RESET: stack changes

Change-Id: I325420701dfa5e9eac294be086a9d1e7326d95bc
This commit is contained in:
Balazs Gerofi
2020-12-15 09:08:13 +09:00
committed by Masamichi Takagi
parent 0b82c8942b
commit 7145c4d383
4 changed files with 27 additions and 0 deletions

View File

@ -364,6 +364,15 @@ int translate_rva_to_rpa(ihk_os_t os, unsigned long rpt, unsigned long rva,
// page table to translation_table.
phys = ihk_device_map_memory(ihk_os_to_dev(os), rpt, PAGE_SIZE);
#ifdef ENABLE_FUGAKU_HACKS
if (!phys) {
pr_err("%s(): ERROR: VA: 0x%lx, rpt is NULL for PID %d\n",
__func__, rva, task_tgid_vnr(current));
error = -EFAULT;
goto out;
}
#endif
tbl = ihk_device_map_virtual(ihk_os_to_dev(os), phys, PAGE_SIZE, NULL, 0);
rpa = (unsigned long)tbl->tt_pa;