location independent kernel loading support/fixes

This commit is contained in:
Blaise Tine 2024-04-17 01:00:38 -07:00
parent 69fdb4bd04
commit 8fa28bfca1
30 changed files with 248 additions and 84 deletions

View file

@ -95,6 +95,12 @@ int vx_dcr_write(vx_device_h hdevice, uint32_t addr, uint32_t value);
////////////////////////////// UTILITY FUNCTIONS //////////////////////////////
// upload bytes to device
int vx_upload_kernel_bytes(vx_device_h hdevice, const void* content, uint64_t size, uint64_t* addr);
// upload file to device
int vx_upload_kernel_file(vx_device_h hdevice, const char* filename, uint64_t* addr);
// upload bytes to device
int vx_upload_bytes(vx_device_h hdevice, const void* content, uint64_t size, uint64_t* addr);