Skip to content

Commit

Permalink
Disable Semihosting
Browse files Browse the repository at this point in the history
  • Loading branch information
lupyuen committed Jul 15, 2023
1 parent 6ed2880 commit c994f46
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arch/risc-v/src/common/riscv_hostfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <syscall.h>
#include <unistd.h>
#include <debug.h>////
#include <assert.h>////

/****************************************************************************
* Pre-processor Definitions
Expand All @@ -53,7 +54,9 @@

static long host_call(unsigned int nbr, void *parm, size_t size)
{
_info("host_call: nbr=0x%x, parm=%p, size=%ld\n", nbr, parm, size);////
_info("nbr=0x%x, parm=%p, size=%ld\n", nbr, parm, size);////
DEBUGPANIC();//// Semihosting not supported

#ifdef CONFIG_RISCV_SEMIHOSTING_HOSTFS_CACHE_COHERENCE
up_clean_dcache(parm, parm + size);
#endif
Expand Down

0 comments on commit c994f46

Please sign in to comment.