Subversion Repositories HelenOS-historic

Rev

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

Rev 1596 Rev 1618
Line 58... Line 58...
58
    printf("a - send async message to other service\n");
58
    printf("a - send async message to other service\n");
59
    printf("s - send sync message to other service\n");
59
    printf("s - send sync message to other service\n");
60
    printf("d - answer message that we have received\n");
60
    printf("d - answer message that we have received\n");
61
    printf("j - jump to endless loop\n");
61
    printf("j - jump to endless loop\n");
62
    printf("p - page fault\n");
62
    printf("p - page fault\n");
-
 
63
    printf("u - unaligned read\n");
63
}
64
}
64
 
65
 
65
static void callback(void *private, int retval, ipc_call_t *data)
66
static void callback(void *private, int retval, ipc_call_t *data)
66
{
67
{
67
    printf("Received response to msg %d - retval: %d.\n", private,
68
    printf("Received response to msg %d - retval: %d.\n", private,
Line 174... Line 175...
174
        phones[phid] = 1;
175
        phones[phid] = 1;
175
    } else
176
    } else
176
        printf("error: %d\n", phid);
177
        printf("error: %d\n", phid);
177
}
178
}
178
 
179
 
-
 
180
 
-
 
181
 
179
int main(void)
182
int main(void)
180
{
183
{
181
    ipcarg_t phonead;
184
    ipcarg_t phonead;
182
    int i;
185
    int i;
183
    char c;
186
    char c;
184
    int res;
187
    int res;
-
 
188
    volatile long long var;
-
 
189
    volatile int var1;
185
 
190
   
186
    printf("********************************\n");
191
    printf("********************************\n");
187
    printf("***********IPC Tester***********\n");
192
    printf("***********IPC Tester***********\n");
188
    printf("********************************\n");
193
    printf("********************************\n");
189
 
194
 
190
   
195
   
Line 226... Line 231...
226
                ;
231
                ;
227
        case 'p':
232
        case 'p':
228
            printf("Doing page fault\n");
233
            printf("Doing page fault\n");
229
            *((char *)0) = 1;
234
            *((char *)0) = 1;
230
            printf("done\n");
235
            printf("done\n");
-
 
236
        case 'u':
-
 
237
            var1=*( (int *) ( ( (char *)(&var) ) + 1 ) );
-
 
238
            break;
231
        }
239
        }
232
    }
240
    }
233
}
241
}