This system call is going away in favor of `getpid` from the C library, which just retrieves the PID from the __procinfo region. Remove references to it.
Change-Id: I25e5ea28647bc25a726985c01511e00d2d816285 Signed-off-by: Dan Cross <[email protected]> --- tests/mhello.c | 4 ++-- tests/old/arsc_mt.c | 2 +- tests/old/arsc_test.c | 2 +- tests/old/manycore_test.c | 2 +- tests/old/mproctests.c | 2 +- tests/old/proctests.c | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/mhello.c b/tests/mhello.c index 8d0d09c..ffbd2d0 100644 --- a/tests/mhello.c +++ b/tests/mhello.c @@ -85,7 +85,7 @@ int main(int argc, char** argv) temp = 0xdeadbeef; printf("Hello from vcore %d with temp addr = %p and temp = %p\n", vcoreid, &temp, temp); - printf("Multi-Goodbye, world, from PID: %d!\n", sys_getpid()); + printf("Multi-Goodbye, world, from PID: %d!\n", getpid()); printf("Requesting %d vcores\n", max_vcores() - 1); vcore_request_total(max_vcores()); printf("This is vcore0, right after vcore_request\n"); @@ -103,7 +103,7 @@ int main(int argc, char** argv) udelay(5000000); printf("Vcore 0 notifying itself with notif 6!\n"); msg.ev_type = 6; - sys_notify(sys_getpid(), 6, &msg); + sys_notify(getpid(), 6, &msg); udelay(1000000); //#endif diff --git a/tests/old/arsc_mt.c b/tests/old/arsc_mt.c index ae0af98..20aed08 100644 --- a/tests/old/arsc_mt.c +++ b/tests/old/arsc_mt.c @@ -33,7 +33,7 @@ void *syscall_thread(void* arg) } int main(int argc, char** argv){ - int pid = sys_getpid(); + int pid = getpid(); pthread_t *my_threads = malloc(sizeof(pthread_t) * NUM_THREADS); char testme = 't'; printf ("multi thread - init arsc \n"); diff --git a/tests/old/arsc_test.c b/tests/old/arsc_test.c index 9b896de..c46deef 100644 --- a/tests/old/arsc_test.c +++ b/tests/old/arsc_test.c @@ -20,7 +20,7 @@ syscall_desc_t* sys_cputs_async(const char *s, size_t len, } int main(int argc, char** argv){ - int pid = sys_getpid(); + int pid = getpid(); char testme = 't'; printf ("single thread - init arsc \n"); syscall_desc_t* sysdesc[2]; diff --git a/tests/old/manycore_test.c b/tests/old/manycore_test.c index d33a740..e48bf70 100644 --- a/tests/old/manycore_test.c +++ b/tests/old/manycore_test.c @@ -10,7 +10,7 @@ mcs_barrier_t b; void do_work_son(int vcoreid) { int pcoreid = sys_getpcoreid(); - int pid = sys_getpid(); + int pid = getpid(); printf("Hello! My Process ID: %d My VCoreID: %d My CPU: %d\n", pid, vcoreid, pcoreid); mcs_barrier_wait(&b,vcoreid); diff --git a/tests/old/mproctests.c b/tests/old/mproctests.c index aacd4af..3776757 100644 --- a/tests/old/mproctests.c +++ b/tests/old/mproctests.c @@ -33,7 +33,7 @@ int main(int argc, char** argv) printf("Should never see me! (from vcore %d)\n", vcoreid); } else { // core 0 printf("Hello from else vcore 0\n"); - printf("Multi-Goodbye, world, from PID: %d!\n", sys_getpid()); + printf("Multi-Goodbye, world, from PID: %d!\n", getpid()); switch (test) { case TEST_MMAP: printf("Testing MMAP\n"); diff --git a/tests/old/proctests.c b/tests/old/proctests.c index 9af0274..9bc592a 100644 --- a/tests/old/proctests.c +++ b/tests/old/proctests.c @@ -7,7 +7,7 @@ * to make progress. */ int main(int argc, char** argv) { - int pid = sys_getpid(); + int pid = getpid(); /* first instance. this is ghetto, since it relies on being the first proc * ever. fix this when we can pass arguments. (TODO) */ #define NUM_KIDS 5 -- 2.8.0.rc3.226.g39d4020 -- You received this message because you are subscribed to the Google Groups "Akaros" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. For more options, visit https://groups.google.com/d/optout.
