pussuw commented on a change in pull request #5782: URL: https://github.com/apache/incubator-nuttx/pull/5782#discussion_r830799766
########## File path: arch/risc-v/src/Makefile ########## @@ -24,15 +24,24 @@ ifeq ($(CONFIG_OPENSBI),y) include opensbi/Make.defs endif +# Kernel runs in supervisor mode or machine mode ? +ifeq ($(CONFIG_ARCH_USE_S_MODE),y) +ARCH_CMN_MODE_DIR = supervisor +else +ARCH_CMN_MODE_DIR = machine +endif + ARCH_SRCDIR = $(TOPDIR)$(DELIM)arch$(DELIM)$(CONFIG_ARCH)$(DELIM)src INCLUDES += ${shell $(INCDIR) "$(CC)" $(ARCH_SRCDIR)$(DELIM)chip} INCLUDES += ${shell $(INCDIR) "$(CC)" $(ARCH_SRCDIR)$(DELIM)common} +INCLUDES += ${shell $(INCDIR) "$(CC)" $(ARCH_SRCDIR)$(DELIM)common$(DELIM)$(ARCH_CMN_MODE_DIR)} INCLUDES += ${shell $(INCDIR) "$(CC)" $(TOPDIR)$(DELIM)sched} ifeq ($(CONFIG_OPENSBI),y) INCLUDES += $(shell $(INCDIR) "$(CC)" $(ARCH_SRCDIR)$(DELIM)opensbi$(DELIM)opensbi-3rdparty$(DELIM)include) endif + Review comment: Sure ########## File path: arch/risc-v/src/common/riscv_internal.h ########## @@ -32,6 +32,7 @@ # include <nuttx/arch.h> # include <sys/types.h> # include <stdint.h> +# include <arch/syscall.h> Review comment: Sure -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org