Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
99866a00
Commit
99866a00
authored
Mar 26, 2017
by
Paul Sokolovsky
Browse files
py/nlrx86: Better check for Zephyr (requires 1.7).
parent
fa17eabc
Changes
2
Hide whitespace changes
Inline
Side-by-side
py/nlrx86.c
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
...
...
zephyr/mpconfigport.h
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
...
...
Write
Preview
Supports
Markdown
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