mirror of
https://github.com/saymrwulf/pulp-runtime.git
synced 2026-11-17 08:41:03 +00:00
Make access to reg volatile
Compiler removes this store on some optimization levels
This commit is contained in:
parent
961edb14af
commit
fadddd1f4f
1 changed files with 1 additions and 1 deletions
|
|
@ -223,7 +223,7 @@ char *strchr(const char *s, int c)
|
||||||
|
|
||||||
static void pos_libc_putc_stdout(char c)
|
static void pos_libc_putc_stdout(char c)
|
||||||
{
|
{
|
||||||
*(uint32_t *)(long)(ARCHI_STDOUT_ADDR + STDOUT_PUTC_OFFSET + (hal_core_id()<<3) + (hal_cluster_id()<<7)) = c;
|
*(volatile uint32_t *)(long)(ARCHI_STDOUT_ADDR + STDOUT_PUTC_OFFSET + (hal_core_id()<<3) + (hal_cluster_id()<<7)) = c;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue