From 7be4f30c5a0ae2177423c38235fd6b4c11c83f82 Mon Sep 17 00:00:00 2001 From: Patrick Rudolph Date: Tue, 25 Jun 2019 19:36:27 +0200 Subject: [PATCH] arch/riscv/mcall: Drop debug code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The printk has no effect as console_init() hasn't been called. Also drop unused variables and headers. Change-Id: I5bf5a8822c69bbcc3de1de460d19585b8330649f Signed-off-by: Patrick Rudolph Reviewed-on: https://review.coreboot.org/c/coreboot/+/33786 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki Reviewed-by: Philipp Hug --- src/arch/riscv/mcall.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/arch/riscv/mcall.c b/src/arch/riscv/mcall.c index eaef6442c5..afb17c1043 100644 --- a/src/arch/riscv/mcall.c +++ b/src/arch/riscv/mcall.c @@ -25,24 +25,15 @@ * MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. */ -#include -#include -#include #include #include #include -int mcalldebug; // set this interactively for copious debug. - void hls_init(uint32_t hart_id, void *fdt) { - printk(BIOS_SPEW, "hart %d: HLS is %p\n", hart_id, HLS()); memset(HLS(), 0, sizeof(*HLS())); HLS()->fdt = fdt; HLS()->hart_id = hart_id; mtime_init(); - - printk(BIOS_SPEW, "Time is %p and timecmp is %p\n", - HLS()->time, HLS()->timecmp); }