diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2009-12-17 16:04:01 -0500 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2009-12-17 16:04:01 -0500 |
commit | cf944fa062e7cae8da8940e3bbc2b25d4764ab6d (patch) | |
tree | 58895c16ac5ed26f9d7efde0a2642503eb8eb8d0 /src | |
parent | 120595a6d8031d740df752f32b54f4e48a11981e (diff) |
Temporary remove non-preemptive CS
Diffstat (limited to 'src')
-rw-r--r-- | src/kernel_iface.c | 6 |
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; | |||
29 | int init_kernel_iface(void) | 29 | int 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 | ||
41 | void enter_np(void) | 43 | void 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 | ||
56 | void exit_np(void) | 60 | void 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 | ||