source: mainline/kernel/generic/src/proc/thread.c

Revision Log Mode:


Legend:

Added
Modified
Copied or renamed
Diff Rev Age Author Log Message
(edit) @f3dbe27   22 months zarevucky.jiri Reduce locking further with lazy FPU It turns out we only need a lock … ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @06f81c4   22 months zarevucky.jiri Check cpu_t::fpu_owner directly instead of … ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @fbaf6ac   22 months zarevucky.jiri Streamline thread load-balancing ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @169815e   22 months zarevucky.jiri Split cpu_t::lock into fpu_lock and tlb_lock For all other purposes, … ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @dd218ea   22 months zarevucky.jiri Remove unnecessary thread_t::wired There's already … ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @c7326f21   2 years zarevucky.jiri Move some oddly placed accounting code Thread ucycles and kcycles … ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @111b9b9   2 years zarevucky.jiri Reimplement waitq using thread_wait/wakeup This adds a few functions … ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @11d2c983   2 years zarevucky.jiri Reorganize locking in thread_destroy() ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @1871118   2 years zarevucky.jiri Make thread_t reference counted This simplifies interaction between … ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @83789ea2   2 years zarevucky.jiri Simplify timeout handling Since timeout_unregister() now waits for … ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @78acbc72   2 years zarevucky.jiri Remove unused thread_interrupted(), make thread_interrupt() useful ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @0366d09d   2 years zarevucky.jiri Avoid separate allocation for FPU context With _Alignas, we can … ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @5110d0a   2 years zarevucky.jiri Turn a bunch of macros into regular functions ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @c030818   2 years zarevucky.jiri Move saved interrupt level from context_t to thread_t Unlike the rest … ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @c1b073b7   2 years zarevucky.jiri Remove some unnecessary #ifdefs %p does not care about specified … ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @661a5ac   2 years zarevucky.jiri Use panic() instead of an infinite loop at the unreachable end of … ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @aae2869   2 years zarevucky.jiri Replace THREAD→ticks with CPU→preempt_deadline This removes a bit … ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @128359eb   5 years martin Replace get_stack_base() with builtin_frame_address(0) The usage of … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @5a5269d   6 years noreply Change type of uspace pointers in kernel from pointer type to numeric … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @c477c80   6 years jiri Fix some common misspellings lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @0b5203b   6 years jakub Remove futex support from kernel lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @d314571   6 years jakub Turn wait queue into a kobject usable by uspace In order to provide … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @aafed15   6 years zarevucky.jiri Declare malloc() etc in standard <stdlib.h> rather than <mm/slab.h> lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @95d45482   6 years zarevucky.jiri XXX to NOTE lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @abf6c01   6 years zarevucky.jiri Add FRAME_ATOMIC to some allocations lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @ba9a150   6 years zarevucky.jiri Always allocate FPU context ahead of time, even when switching is lazy lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @deacd722   6 years zarevucky.jiri Allow thread_create_arch() to fail lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @aae365bc   6 years jakub Remove RCU and CHT support lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @aab5e46   6 years jiri Thread and task iterator functions. lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @ef1eab7   6 years jiri Replace AVL trees in kernel with ordered dictionary. lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @2e4343b   6 years zarevucky.jiri Fix comments get_current() refers to out of order local changes. lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @d1da1ff2   6 years zarevucky.jiri Fix kernel stack allocation lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @a6e55886   6 years noreply Rename THE/the_t to CURRENT/current_t (#50) Because the word "THE" … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @bab75df6   6 years jiri Let kernel code get printf via the standard stdio header. Clean up … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @174156fd   6 years jakub Disambiguate doxygroup generic* lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @e3306d04   6 years jiri.zarevucky Convert atomic_t to atomic_size_t (4): Use atomic_store instead of … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @edc64c0   7 years jakub Zero out new thread's register context This removes the information … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @b59318e   7 years jiri.zarevucky Make futex able to time out. lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @7c3fb9b   7 years jiri Fix block comment formatting (ccheck). lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @11b285d   7 years jiri.zarevucky Use standard signature for malloc() in kernel. The remaining … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @7473807   7 years jakub Use atomic malloc allocations We can safely use atomic allocations in … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @3bacee1   7 years jiri Make ccheck-fix again and commit more good files. lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @a35b458   7 years zarevucky.jiri style: Remove trailing whitespace on _all_ lines, including empty … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @1b20da0   7 years zarevucky.jiri style: Remove trailing whitespace on non-empty lines, in certain file … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @a53ed3a   7 years zarevucky.jiri Change (rc != 0) to (rc != EOK), where appropriate. lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @b7fd2a0   7 years zarevucky.jiri Use errno_t in all uspace and kernel code. Change type of every … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @897fd8f1   7 years zarevucky.jiri Use <errno.h> instead of special ESYNCH_xx error codes. lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @7f11dc6   7 years zarevucky.jiri Numerous minor error code tweaks in kernel. lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @82d515e9   7 years jakub Fix terminology Objects of slab_cache_t type are caches, not slabs. lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @e7c4115d   7 years jakub Return the actual number of freed frames lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @63e27ef   8 years jiri ASSERT → assert lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @44a7ee5   8 years jiri memxxx functions should be provided in the kernel via the same header … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @8ad7dd1   9 years jakub When readying a migrated thread, make sure it runs on the current CPU lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @b1c57a8   10 years jakub Merge from lp:~adam-hraska+lp/helenos/rcu/. Only merge from the … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @cd3b380   11 years martin due to the removal of FRAME_KA, the return value of frame_alloc*() … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @5df1963   11 years martin bitmap frame allocator does not keep track of the size of the … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @b0c2075   11 years martin new physical memory allocator supporting physical address constrains … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @8cbf1c3   11 years martin prepare the public API of the frame allocator for the new backend … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @669f3d32   12 years adam.hraska+hos Adapted the kernel futex subsystem to use CHT. lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @1066041   13 years adam.hraska+hos preemption_disable: Turned functions into macros. Moved THREAD, AS, … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @b23c88e   13 years adam.hraska+hos preemption_disable: Replaced memory barriers with compiler barriers. … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @181a746   13 years adam.hraska+hos rcu: Added preemptible RCU's core API implementation. lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @8a64e81e   13 years adam.hraska+hos workq: Add work queues: allow blocking work items, queuing items from … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @518dd43   13 years adam.hraska+hos thread: thread_ready() new prefers cpus where thread last ran. Added … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @f22dc820   13 years jakub Honour the prohibition of migration also in thread_ready(). lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @6eef3c4   13 years martin cleanup thread_create() and thread_t structure - remove 'flag' … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @f97f1e51   13 years martin unify slab cache naming scheme (according to the type name) lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @2902e1bb   13 years martin add support for variable uspace stack size create individual address … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @38ff925   13 years jakub Force kernel stacks to be allocated from the low-memory. lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @c0699467   13 years martin do not provide general access to kernel headers from uspace, only … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @55b77d9   14 years jiri Separate list_t typedef from link_t (kernel part). * list_t … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @43ac0cc   14 years jakub More lightweight implementation of delay() in kernel. lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @8d6c1f1   14 years jakub Merge USB support. Changes from … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @26aafe8   14 years martin cleanup the huge mess related to stacks, their sizes and locations use … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @7e7b791   14 years jano.vesely Implement SYS_THREAD_UDELAY syscall for short delays lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @ae0300b5   14 years martin fix wrong formatting arguments lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @577f042a   14 years martin * improve synchronization in sys_task_set_name() * improve printouts … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @5b7a107   14 years martin as the 'btrace' command depends on udebug, make it optional on … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @df58e44   14 years martin * add support for printing uspace stack traces from kernel console … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @96b02eb9   14 years martin more unification of basic types - use sysarg_t and native_t (unsigned … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @ee42e43   15 years jakub Retire kernel rwlocks. lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @48dcc69   15 years martin better printouts for threads lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @2d3ddad   15 years jakub Add more *_locked() assertions. lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @0ac99db   15 years jiri Make uspace threads stoppable before they exit. This fixes ticket #244. lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @1d432f9   15 years jakub Reflect assumptions about lock and interrupt state in functions themselves. lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @da1bafb   15 years martin major code revision - replace spinlocks taken with interrupts … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @7ed8530   15 years jakub Deploy task_hold() and task_release(). lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @e535eeb   15 years martin rename order() to order_suffix(), make it a generic libc string … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @e1b6742   15 years martin export threads to user space the "tasks" command can now print all … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @1ba37fa   15 years stanislav.kozina Removed useless cycles sum, using ucycles + kcycles instead. lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @07640dfd   15 years stanislav.kozina Small changes on kernel & user accounting. lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @a2a00e8   15 years stanislav.kozina Accounting separated to kernel and user time. lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @137691a   15 years martin remove unused variables and operations (as suggested by Clang static … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @a000878c   15 years martin make sure that all statically allocated strings are declared as "const … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @22e6802   15 years martin fix kernel thread_sleep() not to overflow thread_usleep() introduce … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @d9ece1cb   15 years jakub Introduce SYS_THREAD_USLEEP and use it to implement usleep() in uspace. lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @b60c582   16 years martin update for string changes lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @0f81ceb7   16 years martin remove platform dependent constructs from generic code lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @7217199   16 years martin coding style lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
(edit) @13964ef   16 years jirik.svoboda Fix race that allowed Udebug to report THREAD_B events for threads … lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Note: See TracRevisionLog for help on using the revision log.