diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-07 01:54:59 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-07 01:54:59 +0000 |
commit | 0a143e4c2dfae5e5b9e1000fd83ce5d05a84d6aa (patch) | |
tree | 655d2b930b49f60fb64154d8be99e45612987f15 /apps/examples | |
parent | 20ff4c56d20fe8c22d6ac44c02efd1252b32ade6 (diff) | |
download | px4-nuttx-0a143e4c2dfae5e5b9e1000fd83ce5d05a84d6aa.tar.gz px4-nuttx-0a143e4c2dfae5e5b9e1000fd83ce5d05a84d6aa.tar.bz2 px4-nuttx-0a143e4c2dfae5e5b9e1000fd83ce5d05a84d6aa.zip |
Fix AVR build, Add hooks for kernel threads
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3477 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps/examples')
-rwxr-xr-x | apps/examples/thttpd/content/tasks/tasks.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/apps/examples/thttpd/content/tasks/tasks.c b/apps/examples/thttpd/content/tasks/tasks.c index 13ba5cbb6..780569090 100755 --- a/apps/examples/thttpd/content/tasks/tasks.c +++ b/apps/examples/thttpd/content/tasks/tasks.c @@ -1,7 +1,7 @@ /**************************************************************************** * examples/thttpd/tasks/tasks.c * - * Copyright (C) 2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -77,6 +77,14 @@ static const char *g_statenames[] = #endif }; +static const char *g_ttypenames[4] = +{ + "TASK ", + "PTHREAD", + "KTHREAD", + "--?-- " +}; + /**************************************************************************** * Public Data ****************************************************************************/ @@ -104,7 +112,7 @@ static const char *g_statenames[] = printf("%5d %3d %4s %7s%c%c %8s ", tcb->pid, tcb->sched_priority, tcb->flags & TCB_FLAG_ROUND_ROBIN ? "RR " : "FIFO", - tcb->flags & TCB_FLAG_PTHREAD ? "PTHREAD" : "TASK ", + g_ttypenames[(tcb->flags & TCB_FLAG_TTYPE_MASK) >> TCB_FLAG_TTYPE_SHIFT], tcb->flags & TCB_FLAG_NONCANCELABLE ? 'N' : ' ', tcb->flags & TCB_FLAG_CANCEL_PENDING ? 'P' : ' ', g_statenames[tcb->task_state]); |