|
|
@597fa24
|
4 months |
zarevucky.jiri |
Enable static initialization of kernel synchronization primitives
|
|
|
@f35749e
|
5 months |
jiri |
System restart via shutdown -r
|
|
|
@3fcea34
|
10 months |
zarevucky.jiri |
Simplify the SYS_THREAD_CREATE syscall interface
Removed the beefy …
|
|
|
@f8b69a1e
|
18 months |
zarevucky.jiri |
Fix a reference leak introduced by previous commit
Oddly, prior to …
|
|
|
@07d4271
|
18 months |
zarevucky.jiri |
Fix some unsound task reference manipulation and locking
In some …
|
|
|
@d23712e
|
18 months |
zarevucky.jiri |
Use thread state variable instead of a cpu local variable to pass state
|
|
|
@dfa4be62
|
18 months |
zarevucky.jiri |
Thread lock is no longer necessary
|
|
|
@a3d87b9
|
18 months |
zarevucky.jiri |
We don't need to check thread state to wait for thread exit
|
|
|
@9fbdeca
|
18 months |
zarevucky.jiri |
The initialization value for priority is actually irrelevant
|
|
|
@3fa4e22a
|
18 months |
zarevucky.jiri |
Only do fpu_cleanup() once we are sure we are switching
|
|
|
@11909ce3
|
18 months |
zarevucky.jiri |
Make thread cycle statistics atomic
|
|
|
@33e15a0
|
18 months |
zarevucky.jiri |
Make thread→btrace weakly atomic, to avoid need for thread lock
|
|
|
@7364e2d1
|
18 months |
zarevucky.jiri |
Don't try to determine internal thread state when requesting stack …
|
|
|
@41bfc64
|
18 months |
zarevucky.jiri |
Make thread→state weakly atomic so we don't need to hold thread lock
|
|
|
@3d84734
|
18 months |
zarevucky.jiri |
Make thread→priority weakly atomic to avoid need for locking
|
|
|
@efed95a3
|
18 months |
zarevucky.jiri |
Make thread→cpu weakly atomic, to avoid need for thread lock
|
|
|
@286da52
|
18 months |
zarevucky.jiri |
Streamline requeuing threads
Split thread_ready() into different …
|
|
|
@6a0e568
|
18 months |
zarevucky.jiri |
Allow fast-switch to another runnable thread
When a thread is …
|
|
|
@c1eaec4
|
18 months |
zarevucky.jiri |
Shuffle some locks around
|
|
|
@25939997
|
18 months |
zarevucky.jiri |
Make separate-stack-scheduler a loop with persistent context
We can …
|
|
|
@29029ac0
|
18 months |
zarevucky.jiri |
Call after_thread_ran_arch() before context switch
This is only used …
|
|
|
@ed7e057
|
19 months |
zarevucky.jiri |
Add functions context_create(), context_replace() and context_swap()
…
|
|
|
@4ed7870
|
19 months |
zarevucky.jiri |
Revert part of commit 5861b602
|
|
|
@e82879c
|
19 months |
zarevucky.jiri |
Remove unnecessary function
|
|
|
@0f4f1b2
|
19 months |
zarevucky.jiri |
Add (and use) functions thread_start() and thread_detach()
Mostly …
|
|
|
@a064d4f
|
19 months |
zarevucky.jiri |
Make thread_join() imply thread_put()
This makes the function more …
|
|
|
@5861b60
|
19 months |
zarevucky.jiri |
Lift actions that do not need separate context out of …
|
|
|
@151c050
|
19 months |
zarevucky.jiri |
Rethink scheduler entry points
Changes the way scheduler is entered, …
|
|
|
@8996582
|
19 months |
zarevucky.jiri |
Move context switch preparation to a new separate function
This puts …
|
|
|
@6e49dab
|
19 months |
zarevucky.jiri |
Extract post-thread cleanup into a separate function
|
|
|
@23f36a3
|
19 months |
zarevucky.jiri |
Wrap fpu handling code in named functions
|
|
|
@5663872
|
19 months |
zarevucky.jiri |
Move stuff around for thread sleep
Only mark the thread as ready for …
|
|
|
@4760793
|
19 months |
zarevucky.jiri |
Add CPU_LOCAL alongside CPU and segregate fields that are only used …
|
|
|
@3b68542
|
19 months |
zarevucky.jiri |
Eliminate an undefined behavior in scheduler debug printout
The …
|
|
|
@40eab9f
|
21 months |
zarevucky.jiri |
Print symbol names and line numbers in stacktraces for init tasks
…
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@fdfb24e
|
21 months |
zarevucky.jiri |
Deduplicate string related functions
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@b169619
|
21 months |
zarevucky.jiri |
Deduplicate mem functions
There are a number of functions which are …
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@ec8ef12
|
2 years |
zarevucky.jiri |
Split find_best_thread() into two functions
try_find_thread() …
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@117ad5a2
|
2 years |
zarevucky.jiri |
Get thread priority from find_best_thread(), instead of locking thread …
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@f3dbe27
|
2 years |
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
|
|
|
@06f81c4
|
2 years |
zarevucky.jiri |
Check cpu_t::fpu_owner directly instead of …
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@fbaf6ac
|
2 years |
zarevucky.jiri |
Streamline thread load-balancing
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@169815e
|
2 years |
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
|
|
|
@dd218ea
|
2 years |
zarevucky.jiri |
Remove unnecessary thread_t::wired
There's already …
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@c680333
|
2 years |
zarevucky.jiri |
Move task switch handling into a separate function
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@3118355
|
2 years |
zarevucky.jiri |
Optimize relink_rq()
Iterate backwards and only lock each runqueue …
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@bea6233
|
2 years |
zarevucky.jiri |
Replace cpu_sleep() with cpu_interruptible_sleep()
The new function …
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@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
|
|
|
@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
|
|
|
@11d2c983
|
2 years |
zarevucky.jiri |
Reorganize locking in thread_destroy()
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@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
|
|
|
@daadfa6
|
2 years |
zarevucky.jiri |
Remove unnecessary context field from cpu_t structure
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@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
|
|
|
@78acbc72
|
2 years |
zarevucky.jiri |
Remove unused thread_interrupted(), make thread_interrupt() useful
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@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
|
|
|
@5110d0a
|
2 years |
zarevucky.jiri |
Turn a bunch of macros into regular functions
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@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
|
|
|
@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
|
|
|
@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
|
|
|
@e86f568
|
2 years |
zarevucky.jiri |
Initialize CURRENT→mutex_locks
It is not used anywhere yet, but will …
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@011c79a
|
2 years |
zarevucky.jiri |
Replace CPU→needs_relink with CPU→relink_deadline
This removes a …
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@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
|
|
|
@31e15be
|
4 years |
5887334+jxsvoboda |
kernel: deprecate atomic_t
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@583c2a3
|
5 years |
jiri |
Avoid most cases of direct used of list_t.prev/next in kernel
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@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
|
|
|
@f8fb03b
|
6 years |
martin |
propagate the elf_load() return value out of program_create_loader()
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@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
|
|
|
@bdca26a
|
6 years |
jakub |
Removing printf when failing from lib/rtld
If rtld failed a message …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@8df5f20
|
6 years |
zarevucky.jiri |
Rename NO_TRACE to _NO_TRACE
<trace.h> may end up transitively …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@c477c80
|
7 years |
jiri |
Fix some common misspellings
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@ca4c5596
|
7 years |
jakub |
Remove leftover mentions of B+tree
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@c483fca
|
7 years |
noreply |
Merge pull request #68 from maurizio-lombardi/sched_fix_typo
…
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@c742954
|
7 years |
mlombard |
scheduler: fix compile error in kcpulb() when KCPULB_VERBOSE is defined.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@ca21f1e2
|
7 years |
jakub |
Provide only one way to destroy address spaces
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@0b5203b
|
7 years |
jakub |
Remove futex support from kernel
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@d314571
|
7 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
|
|
|
@aafed15
|
7 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
|
|
|
@95d45482
|
7 years |
zarevucky.jiri |
XXX to NOTE
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@abf6c01
|
7 years |
zarevucky.jiri |
Add FRAME_ATOMIC to some allocations
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@ba9a150
|
7 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
|
|
|
@deacd722
|
7 years |
zarevucky.jiri |
Allow thread_create_arch() to fail
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@88e43bc
|
7 years |
zarevucky.jiri |
Mark unreachable consistently in kernel
At least in places that were …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@1892d2c
|
7 years |
jakub |
Rename the.c to current.c
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@aae365bc
|
7 years |
jakub |
Remove RCU and CHT support
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@947ab77e
|
7 years |
jakub |
Stop using CHT in futexes
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@b294126
|
7 years |
noreply |
Merge pull request #52 from jermar/asrefcnt
Fix as_t reference counting
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@ac9e79d
|
7 years |
jakub |
Fix as_t reference counting
Commit …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@88cc71c0
|
7 years |
jiri |
Replace as_area_btree with ordered dictionary.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@6f7071b
|
7 years |
jiri |
Use ordered dictionary for kernel pareas instead of B+ tree.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@aab5e46
|
7 years |
jiri |
Thread and task iterator functions.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@ef1eab7
|
7 years |
jiri |
Replace AVL trees in kernel with ordered dictionary.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@2e4343b
|
7 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
|
|
|
@d1da1ff2
|
7 years |
zarevucky.jiri |
Fix kernel stack allocation
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@a6e55886
|
7 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
|
|
|
@bab75df6
|
7 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
|
|
|
@174156fd
|
7 years |
jakub |
Disambiguate doxygroup generic*
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@3cfe2b8
|
7 years |
jiri.zarevucky |
Convert atomic_t to atomic_size_t (6): Replace atomic_count_t with size_t
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@e3306d04
|
7 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
|
|
|
@036e97c
|
7 years |
jiri.zarevucky |
Convert atomic_t to atomic_size_t (3): Use atomic_load instead of …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@077842c
|
7 years |
jiri.zarevucky |
Convert atomic_t to atomic_size_t (1): remove PRIua macro
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|