Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
99866a00
Commit
99866a00
authored
8 years ago
by
Paul Sokolovsky
Browse files
Options
Downloads
Patches
Plain Diff
py/nlrx86: Better check for Zephyr (requires 1.7).
parent
fa17eabc
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
py/nlrx86.c
+1
-2
1 addition, 2 deletions
py/nlrx86.c
zephyr/mpconfigport.h
+2
-0
2 additions, 0 deletions
zephyr/mpconfigport.h
with
3 additions
and
2 deletions
py/nlrx86.c
+
1
−
2
View file @
99866a00
...
...
@@ -49,10 +49,9 @@ unsigned int nlr_push(nlr_buf_t *nlr) {
__asm
volatile
(
// Check for Zephyr, which uses a different calling convention
// by default.
// TODO: Better check for Zephyr.
// TODE: Better support for various x86 calling conventions
// (unfortunately, __attribute__((naked)) is not supported on x86).
#ifndef
CONFIG_SOC_IA32
#ifndef
__ZEPHYR__
"pop %ebp
\n
"
// undo function's prelude
#endif
"mov 4(%esp), %edx
\n
"
// load nlr_buf
...
...
This diff is collapsed.
Click to expand it.
zephyr/mpconfigport.h
+
2
−
0
View file @
99866a00
...
...
@@ -27,6 +27,8 @@
// Include Zephyr's autoconf.h, which should be made first by Zephyr makefiles
#include
"autoconf.h"
// Included here to get basic Zephyr environment (macros, etc.)
#include
<zephyr.h>
// Usually passed from Makefile
#ifndef MICROPY_HEAP_SIZE
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment