Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
uPython-mirror
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TASTE
uPython-mirror
Commits
298c110d
Commit
298c110d
authored
Feb 20, 2018
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
leon: Update mputil.c to compile on non-SPARC targets.
parent
ab1a13cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
leon-common/mputil.c
leon-common/mputil.c
+8
-0
No files found.
leon-common/mputil.c
View file @
298c110d
...
...
@@ -6,6 +6,8 @@
* MicroPython to LEON platforms", contract number 4000114080/15/NL/FE/as.
*/
#include <string.h>
#include "py/nlr.h"
#include "py/compile.h"
#include "py/runtime.h"
...
...
@@ -282,6 +284,8 @@ mp_import_stat_t mp_import_stat(const char *path) {
return
MP_IMPORT_STAT_FILE
;
}
}
#else
(
void
)
path
;
#endif
// the requested file is not found
...
...
@@ -296,12 +300,15 @@ mp_raw_code_t *mp_raw_code_load_file(const char *filename) {
return
rf
->
raw_code
;
}
}
#else
(
void
)
filename
;
#endif
// the requested file is not found
nlr_raise
(
mp_obj_new_exception_msg
(
&
mp_type_RuntimeError
,
"can't import"
));
}
#if defined(MICROPY_SPARC_NUM_REG_WINDOWS)
// This is called by the memory manager when a garbage collection is needed.
void
gc_collect
(
void
)
{
gc_collect_start
();
...
...
@@ -326,6 +333,7 @@ void gc_collect(void) {
gc_collect_end
();
}
#endif
// This is called if there is no exception handler registered to catch an exception.
void
nlr_jump_fail
(
void
*
val
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment