mirror of
https://github.com/saymrwulf/pulp-runtime.git
synced 2026-05-14 20:48:09 +00:00
Merge pull request #9 from pulp-platform/fix-putc
Make access to reg volatile
This commit is contained in:
commit
012fd1be12
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)
|
||||
{
|
||||
*(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