Changeset 1affcdf3 in mainline for kernel/generic/src/proc/thread.c
- Timestamp:
- 2011-06-10T19:33:41Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1878386
- Parents:
- 13ecdac9 (diff), 79a141a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/thread.c
r13ecdac9 r1affcdf3 55 55 #include <time/clock.h> 56 56 #include <time/timeout.h> 57 #include <time/delay.h> 57 58 #include <config.h> 58 59 #include <arch/interrupt.h> … … 67 68 #include <syscall/copy.h> 68 69 #include <errno.h> 69 70 71 #ifndef LOADED_PROG_STACK_PAGES_NO72 #define LOADED_PROG_STACK_PAGES_NO 173 #endif74 75 70 76 71 /** Thread states */ … … 300 295 301 296 /* Not needed, but good for debugging */ 302 memsetb(thread->kstack, THREAD_STACK_SIZE * 1 << STACK_FRAMES, 0);297 memsetb(thread->kstack, STACK_SIZE, 0); 303 298 304 299 irq_spinlock_lock(&tidlock, true); … … 308 303 context_save(&thread->saved_context); 309 304 context_set(&thread->saved_context, FADDR(cushion), 310 (uintptr_t) thread->kstack, THREAD_STACK_SIZE);305 (uintptr_t) thread->kstack, STACK_SIZE); 311 306 312 307 the_initialize((the_t *) thread->kstack); … … 605 600 printf("%-8" PRIu64 " %-14s %10p %-8s %10p %-5" PRIu32 "\n", 606 601 thread->tid, name, thread, thread_states[thread->state], 607 thread->task, thread->task->cont ext);602 thread->task, thread->task->container); 608 603 #endif 609 604 … … 617 612 printf("%-8" PRIu64 " %-14s %18p %-8s %18p %-5" PRIu32 "\n", 618 613 thread->tid, name, thread, thread_states[thread->state], 619 thread->task, thread->task->cont ext);614 thread->task, thread->task->container); 620 615 #endif 621 616 … … 658 653 else 659 654 printf("[id ] [name ] [address ] [state ] [task ]" 660 " [ct x]\n");655 " [ctn]\n"); 661 656 #endif 662 657 … … 667 662 } else 668 663 printf("[id ] [name ] [address ] [state ]" 669 " [task ] [ct x]\n");664 " [task ] [ctn]\n"); 670 665 #endif 671 666 … … 918 913 } 919 914 915 sysarg_t sys_thread_udelay(uint32_t usec) 916 { 917 delay(usec); 918 return 0; 919 } 920 920 921 /** @} 921 922 */
Note:
See TracChangeset
for help on using the changeset viewer.