- move file back to the directory tasks
git-svn-id: http://svn.lfbs.rwth-aachen.de/svn/scc/trunk/MetalSVM@91 315a16e6-25f9-4109-90ae-ca3045a26c18
This commit is contained in:
parent
734836af9f
commit
c3bb3b7c89
1 changed files with 17 additions and 2 deletions
|
@ -29,8 +29,6 @@ static sem_t consuming, producing;
|
|||
static mailbox_int32_t mbox;
|
||||
static int val = 0;
|
||||
|
||||
int STDCALL userfoo(void* arg);
|
||||
|
||||
static int STDCALL consumer(void* arg)
|
||||
{
|
||||
int i, m = 0;
|
||||
|
@ -85,6 +83,23 @@ static int STDCALL foo(void* arg)
|
|||
return 42;
|
||||
}
|
||||
|
||||
static int STDCALL userfoo(void* arg)
|
||||
{
|
||||
int i;
|
||||
|
||||
if (!arg)
|
||||
return 0;
|
||||
|
||||
for (i = 0; i < 5; i++)
|
||||
SYSCALL3(__NR_write, 0, (char*)arg, strlen((char*)arg));
|
||||
|
||||
// demo of a general protection fault
|
||||
//kprintf("test user\n");
|
||||
|
||||
/* task exit */
|
||||
SYSCALL1(__NR_exit, 0);
|
||||
}
|
||||
|
||||
static int STDCALL join_test(void* arg)
|
||||
{
|
||||
tid_t id;
|
Loading…
Add table
Reference in a new issue