bootloader: change flash_cache addresses to uintptr_t

To fix comilation errors on 64 bit platforms

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
Jukka Laitinen
2021-05-26 12:57:37 -07:00
committed by David Sidrane
parent 071eaef884
commit 675a5a2b2c
4 changed files with 16 additions and 16 deletions
@@ -58,12 +58,12 @@
// Cache line
typedef struct flash_cache_line_t {
uint32_t index; // Index of word written
uint32_t start_address; // cache tag (address in FLASH this is buffering)
uintptr_t start_address; // cache tag (address in FLASH this is buffering)
uint32_t words[FC_NUMBER_WORDS]; // Buffered data
} flash_cache_line_t;
// Resets the cache - all lines flashed and cache_line[0] start_address == APP_LOAD_ADDRESS
void fc_reset(void);
// Cache operations
uint32_t fc_read(uint32_t address);
int fc_write(uint32_t address, uint32_t word);
uint32_t fc_read(uintptr_t address);
int fc_write(uintptr_t address, uint32_t word);