arch/risc-v/src: Cleanups for opensbi

- remove some unneeded includes
- tab/space fixes
- change DEBUGPANIC to PANIC in noreturn function, otherwise it compiles only in DEBUG builds

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
Jukka Laitinen 2022-01-24 15:57:08 +02:00 committed by Xiang Xiao
parent 5bb3936212
commit 49085eebae
3 changed files with 5 additions and 12 deletions

View File

@ -38,9 +38,9 @@ INCLUDES += ${shell $(INCDIR) "$(CC)" $(ARCH_SRCDIR)$(DELIM)chip}
INCLUDES += ${shell $(INCDIR) "$(CC)" $(ARCH_SRCDIR)$(DELIM)common}
INCLUDES += ${shell $(INCDIR) "$(CC)" $(ARCH_SRCDIR)$(DELIM)$(ARCH_SUBDIR)}
INCLUDES += ${shell $(INCDIR) "$(CC)" $(TOPDIR)$(DELIM)sched}
#ifeq ($(CONFIG_OPENSBI),y)
ifeq ($(CONFIG_OPENSBI),y)
INCLUDES += $(shell $(INCDIR) "$(CC)" $(ARCH_SRCDIR)$(DELIM)opensbi$(DELIM)opensbi-3rdparty$(DELIM)include)
#endif
endif
CPPFLAGS += $(INCLUDES)
CFLAGS += $(INCLUDES)

View File

@ -26,7 +26,7 @@
#include <assert.h>
#include <errno.h>
#include <stdint.h>
#include <riscv_arch.h>
#include "riscv_arch.h"
#include <hardware/mpfs_plic.h>
#include <hardware/mpfs_memorymap.h>
@ -41,16 +41,9 @@
#undef NULL
#endif
#include <sbi/sbi_types.h>
#include <sbi/riscv_atomic.h>
#include <sbi/riscv_asm.h>
#include <sbi/riscv_io.h>
#include <sbi/riscv_encoding.h>
#include <sbi/sbi_hart.h>
#include <sbi/sbi_console.h>
#include <sbi/sbi_platform.h>
#include <sbi/sbi_domain.h>
#include <sbi/sbi_timer.h>
#include <sbi/sbi_init.h>
#include <sbi/sbi_scratch.h>
#include <sbi_utils/irqchip/plic.h>
@ -563,5 +556,5 @@ void __attribute__((noreturn)) mpfs_opensbi_setup(void)
/* Will never get here */
DEBUGPANIC();
PANIC();
}

View File

@ -9,4 +9,4 @@ config OPENSBI
default n
---help---
Enable or disable Open Source Supervisor Binary Interface (OpenSBI) features
for RISC-V.
for RISC-V.