From 99866a00a0172f3aba1e49c9c15f0afcf166a3e8 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 26 Mar 2017 00:32:51 +0300 Subject: py/nlrx86: Better check for Zephyr (requires 1.7). --- py/nlrx86.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'py/nlrx86.c') diff --git a/py/nlrx86.c b/py/nlrx86.c index 07ba72628..58aaa1a57 100644 --- a/py/nlrx86.c +++ b/py/nlrx86.c @@ -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 -- cgit v1.2.3