From d945621b5dbe59e6eea153a8f376c42ad3d6664c Mon Sep 17 00:00:00 2001 From: Xiang Wang Date: Thu, 19 Jul 2018 16:33:59 +0800 Subject: riscv: fix issues (timestrap & PRIu64) When I tried to compile the RISC-V code (202e7d4f3c), I found some errors: `PRIu64` is undefined src/arch/riscv/timestamp.c does not exist Currently RISC-V does not have the implementation and use of timestamp, so I temporarily delete the code related to timestamp in the Makefile. And define PRIu64. Change-Id: I7f1a0793113bce7c1411e39f102cf20dbadda5d6 Signed-off-by: Xiang Wang Reviewed-on: https://review.coreboot.org/27543 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- src/arch/riscv/include/stdint.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/arch/riscv/include') diff --git a/src/arch/riscv/include/stdint.h b/src/arch/riscv/include/stdint.h index 446a1367e9..19808662eb 100644 --- a/src/arch/riscv/include/stdint.h +++ b/src/arch/riscv/include/stdint.h @@ -73,4 +73,7 @@ typedef uint8_t bool; typedef s64 intptr_t; typedef u64 uintptr_t; +/* FIXME: This is used in some print code and may be removed in the future. */ +#define PRIu64 "llu" + #endif /* RISCV_STDINT_H */ -- cgit v1.2.3