1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-28 23:49:47 +01:00
RIOT/cpu/riscv_common
Sören Tempel e7325ec02a riscv_common: Use unsiged long format specifier for printing CSR values
The read_csr macro returns the CSR value as a `unsigned long`. However,
the format specifier presently treats it as a `uint32_t`. This causes
a -Wformat error to be emitted by Clang 18:

	cpu/riscv_common/irq_arch.c:149:49: error: format specifies type 'unsigned int'
			   but the argument has type 'unsigned long' [-Werror,-Wformat]
	  149 |             printf("  mepc:   0x%" PRIx32 "\n", read_csr(mepc));
2024-08-12 15:09:00 +02:00
..
include cpu/riscv: Add PMP driver 2023-06-28 11:55:34 +02:00
ldscripts Revert "cpu/riscv_common: extend flashpage API" 2024-04-04 17:37:16 +02:00
periph Revert "cpu/riscv_common: extend flashpage API" 2024-04-04 17:37:16 +02:00
context_frame.c treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
irq_arch.c riscv_common: Use unsiged long format specifier for printing CSR values 2024-08-12 15:09:00 +02:00
Kconfig *Kconfig*: Modify Kconfig to remove dep model 2024-03-27 10:28:12 +01:00
Makefile riscv_common: Refactor common fe310 code to riscv_common 2021-02-05 09:32:19 +01:00
Makefile.dep cpu/riscv_common: move C lib selection to common place 2021-08-25 10:53:00 +02:00
Makefile.features cpu/riscv_common: allow to define AUX slot on flash 2024-02-28 11:49:05 +01:00
Makefile.include cpu/riscv_common: allow to define AUX slot on flash 2024-02-28 11:49:05 +01:00
panic.c riscv_common: Refactor common fe310 code to riscv_common 2021-02-05 09:32:19 +01:00
riscv_init.c cpu/riscv: Add PMP driver 2023-06-28 11:55:34 +02:00
start.S riscv: Reduce reset trampoline code size by 2 bytes 2022-12-08 13:26:07 +01:00
thread_arch.c cpu/riscv_common: convert to uword_t usage 2023-03-03 22:16:25 +01:00