Adding semihosting support for bmsp
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include <unistd.h>
|
||||
#include "platform.h"
|
||||
#include "weak_under_alias.h"
|
||||
#include "semihosting.h"
|
||||
|
||||
#if defined(BOARD_hifive1)
|
||||
static volatile uint32_t tohost;
|
||||
@@ -16,6 +17,10 @@ void write_hex(int fd, uint32_t hex);
|
||||
|
||||
void __wrap_exit(int code)
|
||||
{
|
||||
#if defined(SEMIHOSTING)
|
||||
sh_exit();
|
||||
return;
|
||||
#endif
|
||||
//volatile uint32_t* leds = (uint32_t*) (GPIO_BASE_ADDR + GPIO_OUT_OFFSET);
|
||||
const char message[] = "\nProgam has exited with code:";
|
||||
//*leds = (~(code));
|
||||
|
Reference in New Issue
Block a user