From cf944fa062e7cae8da8940e3bbc2b25d4764ab6d Mon Sep 17 00:00:00 2001 From: Andrea Bastoni Date: Thu, 17 Dec 2009 16:04:01 -0500 Subject: Temporary remove non-preemptive CS --- src/kernel_iface.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/kernel_iface.c b/src/kernel_iface.c index e5bf1ea..7cc676f 100644 --- a/src/kernel_iface.c +++ b/src/kernel_iface.c @@ -29,17 +29,20 @@ static __thread struct np_flag np_flag; int init_kernel_iface(void) { int ret = 0; +#ifdef FALSE #ifndef __sparc__ /* currently not supported in sparc64 */ np_flag.preemptivity = RT_PREEMPTIVE; np_flag.ctr = 0; ret = register_np_flag(&np_flag); check("register_np_flag()"); +#endif #endif return ret; } void enter_np(void) { +#ifdef FALSE #ifndef __sparc__ if (++np_flag.ctr == 1) { @@ -50,11 +53,13 @@ void enter_np(void) #else fprintf(stderr, "enter_np: not implemented!\n"); #endif +#endif } void exit_np(void) { +#ifdef FALSE #ifndef __sparc__ if (--np_flag.ctr == 0) { @@ -66,5 +71,6 @@ void exit_np(void) #else fprintf(stderr, "exit_np: not implemented!\n"); #endif +#endif } -- cgit v1.2.2