aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrea Bastoni <bastoni@cs.unc.edu>2009-12-17 16:04:01 -0500
committerAndrea Bastoni <bastoni@cs.unc.edu>2009-12-17 16:04:01 -0500
commitcf944fa062e7cae8da8940e3bbc2b25d4764ab6d (patch)
tree58895c16ac5ed26f9d7efde0a2642503eb8eb8d0 /src
parent120595a6d8031d740df752f32b54f4e48a11981e (diff)
Temporary remove non-preemptive CS
Diffstat (limited to 'src')
-rw-r--r--src/kernel_iface.c6
1 files changed, 6 insertions, 0 deletions
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;
29int init_kernel_iface(void) 29int init_kernel_iface(void)
30{ 30{
31 int ret = 0; 31 int ret = 0;
32#ifdef FALSE
32#ifndef __sparc__ /* currently not supported in sparc64 */ 33#ifndef __sparc__ /* currently not supported in sparc64 */
33 np_flag.preemptivity = RT_PREEMPTIVE; 34 np_flag.preemptivity = RT_PREEMPTIVE;
34 np_flag.ctr = 0; 35 np_flag.ctr = 0;
35 ret = register_np_flag(&np_flag); 36 ret = register_np_flag(&np_flag);
36 check("register_np_flag()"); 37 check("register_np_flag()");
37#endif 38#endif
39#endif
38 return ret; 40 return ret;
39} 41}
40 42
41void enter_np(void) 43void enter_np(void)
42{ 44{
45#ifdef FALSE
43#ifndef __sparc__ 46#ifndef __sparc__
44 if (++np_flag.ctr == 1) 47 if (++np_flag.ctr == 1)
45 { 48 {
@@ -50,11 +53,13 @@ void enter_np(void)
50#else 53#else
51 fprintf(stderr, "enter_np: not implemented!\n"); 54 fprintf(stderr, "enter_np: not implemented!\n");
52#endif 55#endif
56#endif
53} 57}
54 58
55 59
56void exit_np(void) 60void exit_np(void)
57{ 61{
62#ifdef FALSE
58#ifndef __sparc__ 63#ifndef __sparc__
59 if (--np_flag.ctr == 0) 64 if (--np_flag.ctr == 0)
60 { 65 {
@@ -66,5 +71,6 @@ void exit_np(void)
66#else 71#else
67 fprintf(stderr, "exit_np: not implemented!\n"); 72 fprintf(stderr, "exit_np: not implemented!\n");
68#endif 73#endif
74#endif
69} 75}
70 76