From: bernie Date: Wed, 3 Sep 2008 08:54:10 +0000 (+0000) Subject: This makes proc_test actually compile and pass: X-Git-Tag: 2.0.0~159 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=b133b352362d998b403b32169e21dfc937d1b413;p=bertos.git This makes proc_test actually compile and pass: - use emul_idle() only when we have Qt - enable CONFIG_KERN_PREEMPT in generic config Not sure why preemption was disabled in the first place. It's required to pass proc_test. Will commit this change if noone complains within the next 24h. This patch comes to you from Doha's airport with love! git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1775 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cfg/cfg_kern.h b/bertos/cfg/cfg_kern.h index 23bcd40c..fffc9ca7 100644 --- a/bertos/cfg/cfg_kern.h +++ b/bertos/cfg/cfg_kern.h @@ -54,7 +54,7 @@ #define CONFIG_KERN_HEAP 0 ///< Dynamic memory allocation #define CONFIG_KERN_SEMAPHORES 1 ///< Re-entrant mutual exclusion primitives #define CONFIG_KERN_MONITOR 1 ///< Process monitor -#define CONFIG_KERN_PREEMPT 0 ///< Preemptive process scheduling +#define CONFIG_KERN_PREEMPT 1 ///< Preemptive process scheduling #define CONFIG_KERN_PRI 1 ///< Priority-based scheduling policy /*\}*/ diff --git a/bertos/cpu/frame.h b/bertos/cpu/frame.h index 2a9680a2..c9635156 100644 --- a/bertos/cpu/frame.h +++ b/bertos/cpu/frame.h @@ -226,7 +226,7 @@ * in hosted environments such as emulators. */ #ifndef CPU_IDLE - #if defined(ARCH_EMUL) && (ARCH & ARCH_EMUL) + #if defined(ARCH_QT) && (ARCH & ARCH_QT) /* This emulator hook should yield the CPU to the host. */ EXTERN_C_BEGIN void emul_idle(void);