Adding semihosting support for bmsp
This commit is contained in:
@ -3,9 +3,14 @@
|
||||
#include <errno.h>
|
||||
#include "stub.h"
|
||||
#include "weak_under_alias.h"
|
||||
#include "semihosting.h"
|
||||
|
||||
int __wrap_open(const char* name, int flags, int mode)
|
||||
{
|
||||
#if defined(SEMIHOSTING)
|
||||
int fd = sh_open(name, mode);
|
||||
return fd;
|
||||
#endif
|
||||
return _stub(ENOENT);
|
||||
}
|
||||
weak_under_alias(open);
|
||||
|
Reference in New Issue
Block a user