Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 1343 → Rev 1342

//uspace/trunk/init/init.c
28,7 → 28,6
 
#include "version.h"
#include <ipc.h>
#include <services.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
40,7 → 39,6
#include <as.h>
#include <ddi.h>
#include <string.h>
#include <errno.h>
#include <kbd.h>
 
int a;
204,7 → 202,7
got_answer_2);
callid = ipc_wait_for_call(&data, NULL);
printf("Received ping\n");
ipc_answer_fast(callid, 0, 0, 0);
ipc_answer(callid, 0, 0, 0);
}
// callid = ipc_wait_for_call(&data, NULL);
}
302,7 → 300,7
int phoneid;
 
printf("Test: Starting connect...\n");
while ((phoneid = ipc_connect_me_to(PHONE_NS, SERVICE_KEYBOARD, 0)) < 0) {
while ((phoneid = ipc_connect_me_to(PHONE_NS, 30, 60)) < 0) {
};
printf("Test: Connected: %d\n", res);
317,14 → 315,6
ipc_hangup(phoneid);
}
 
static void test_pci()
{
int phone;
while ((phone = ipc_connect_me_to(PHONE_NS, SERVICE_PCI, 0)) < 0)
;
printf("Connected to PCI service through phone %d.\n", phone);
}
 
static int test_as_send()
{
char *as;
364,7 → 354,6
// test_hangup();
// test_slam();
// test_as_send();
test_pci();
test_kbd();
 
/*
388,7 → 377,7
}
 
int i;
 
for (i = 0; i < 50000000; i++)
;
411,6 → 400,5
 
printf("Main thread exiting.\n");
*/
 
return 0;
}