Skip to content

Commit

Permalink
controller: use offset instead of physical address
Browse files Browse the repository at this point in the history
When handling an nd_memcpy packet, treat the address as an offset rather than
a physical address.

Signed-off-by: Joel Nider <[email protected]>
  • Loading branch information
jnider committed Aug 9, 2023
1 parent 20fa2cf commit 8d1f51d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions runtime_lib/controller/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1636,8 +1636,7 @@ int stage_packet_nd_memcpy(dispatch_packet_t *pkt, uint32_t slot,
}
packet_set_active(pkt, true);

//uint64_t paddr = offset_to_phys(pkt->arg[1]);
uint64_t paddr = pkt->arg[1];
uint64_t paddr = offset_to_phys(pkt->arg[1]);
xil_printf("ND_MEMCPY: Got physical address 0x%lx\r\n", paddr);

if (memory_space == 2) {
Expand Down

0 comments on commit 8d1f51d

Please sign in to comment.