Subversion Repositories HelenOS-historic

Rev

Rev 534 | Rev 1062 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 534 Rev 827
Line 45... Line 45...
45
static waitq_t can_start;
45
static waitq_t can_start;
46
 
46
 
47
static void testit1(void *data)
47
static void testit1(void *data)
48
{
48
{
49
    int i;
49
    int i;
50
    volatile long long j;
-
 
51
    double e,d,le,f;
-
 
52
    int arg __attribute__((aligned(16))) = (int)((__native) data);
50
    int arg __attribute__((aligned(16))) = (int)((__native) data);
53
    int after_arg __attribute__((aligned(16)));
51
    int after_arg __attribute__((aligned(16)));
54
   
52
   
55
    waitq_sleep(&can_start);
53
    waitq_sleep(&can_start);
56
 
54
 
Line 75... Line 73...
75
}
73
}
76
 
74
 
77
static void testit2(void *data)
75
static void testit2(void *data)
78
{
76
{
79
    int i;
77
    int i;
80
    volatile long long j;
-
 
81
    double e,d,le,f;
-
 
82
    int arg __attribute__((aligned(16))) = (int)((__native) data);
78
    int arg __attribute__((aligned(16))) = (int)((__native) data);
83
    int after_arg __attribute__((aligned(16)));
79
    int after_arg __attribute__((aligned(16)));
84
   
80
   
85
    waitq_sleep(&can_start);
81
    waitq_sleep(&can_start);
86
 
82
 
Line 127... Line 123...
127
    printf("ok\n");
123
    printf("ok\n");
128
   
124
   
129
    thread_sleep(1);
125
    thread_sleep(1);
130
    waitq_wakeup(&can_start, WAKEUP_ALL);
126
    waitq_wakeup(&can_start, WAKEUP_ALL);
131
 
127
 
132
    while (threads_ok != THREADS)
128
    while (atomic_get(&threads_ok) != THREADS)
133
        ;
129
        ;
134
       
130
       
135
    printf("Test passed.\n");
131
    printf("Test passed.\n");
136
}
132
}