[driver] Fix bug in addr range check for upload/download

Device address should not be compared against LOCAL_MEM_SIZE but against
an absolute max address.  Introduce new DEVICE_MAX_ADDR for this.
This commit is contained in:
Hansung Kim
2023-10-07 21:18:27 -07:00
parent 6ffb8c37e9
commit 46a60cf58e
3 changed files with 8 additions and 7 deletions

View File

@@ -8,4 +8,5 @@ bool is_aligned(uint64_t addr, uint64_t alignment);
#define CACHE_BLOCK_SIZE 64
#define ALLOC_BASE_ADDR 0x00000000
#define LOCAL_MEM_SIZE 4294967296 // 4 GB
#define LOCAL_MEM_SIZE 4294967296 // 4 GB
#define DEVICE_MAX_ADDR 0xfffffffful