Merge pull request #9 from pulp-platform/fix-putc

Make access to reg volatile
This commit is contained in:
bluew 2020-07-08 16:09:38 +02:00 committed by GitHub
commit 012fd1be12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}