bdk: util: use volatile base for reg_write_array

This commit is contained in:
CTCaer
2025-12-18 11:50:00 +02:00
parent 998053f8db
commit 67140d026c
3 changed files with 27 additions and 27 deletions

View File

@@ -195,7 +195,7 @@ int atoi(const char *nptr)
return (int)strtol(nptr, (char **)NULL, 10);
}
void reg_write_array(u32 *base, const reg_cfg_t *cfg, u32 num_cfg)
void reg_write_array(vu32 *base, const reg_cfg_t *cfg, u32 num_cfg)
{
// Expected register offset is a u32 array index.
for (u32 i = 0; i < num_cfg; i++)