From 01e30016d6f399f3a6f9b79f1403ac8a640d4bdd Mon Sep 17 00:00:00 2001 From: Ludwig Ortmann Date: Wed, 13 Nov 2013 23:43:26 +0100 Subject: [PATCH] add lpm syscall barrier for native w/out UART --- cpu/native/lpm_cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpu/native/lpm_cpu.c b/cpu/native/lpm_cpu.c index f8975831ad..a690665946 100644 --- a/cpu/native/lpm_cpu.c +++ b/cpu/native/lpm_cpu.c @@ -71,7 +71,9 @@ void _native_lpm_sleep() /* otherwise select was interrupted because of a signal, continue below */ #else + _native_in_syscall++; // no switching here pause(); + _native_in_syscall--; #endif if (_native_sigpend > 0) {