|
|
@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
|
|
|
@ae7d03c
|
7 years |
jiri |
Selected ccheck-proposed comment fixes.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@1cac875
|
7 years |
jiri.zarevucky |
Fix missing struct field initialization (my bad).
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@18b6a88
|
7 years |
jiri |
More ccheck fixes, sometimes with manual intervention.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@8ebe212
|
7 years |
jiri |
ccheck-fix a few files with for loops.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@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
|
|
|
@1abcf1d
|
7 years |
jiri.zarevucky |
puts() should append newline.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@57d44dd
|
7 years |
jiri.zarevucky |
Instead of using .interp section, determine loader by name.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@e3f819f
|
7 years |
jiri.zarevucky |
No sense reading sections in the kernel either.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@0a4667a7
|
7 years |
martin |
make sure workq is initialized
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@1433ecda
|
7 years |
jiri |
Fix cstyle: make ccheck-fix and commit only files where all the …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@f303afc6
|
7 years |
jiri |
Fix oops.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@bf2042f9
|
7 years |
jiri |
Yet more magic.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@eb748a0
|
7 years |
jiri |
Three more loop fixes.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@af60409
|
7 years |
jiri |
Modify PADDn macros so that their use is easier to parse.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@eed4139
|
7 years |
jakub |
Fix some comments mentioning 'call IDs'
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@eadaeae8
|
7 years |
jakub |
Make capability handles type-safe
Define distinct pointer types for …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@67f11a0
|
7 years |
jakub |
Merge branch 'noreclaimers'
This commit removes the left-over from …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@30f1a25
|
7 years |
jakub |
Make hash_table_find_next immune to livelocks
By giving …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@963037b0
|
7 years |
jakub |
Do not consider the bucket head as a table element
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@a36f442
|
7 years |
jakub |
Account the active call to callerbox if it exists
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@aadde10
|
7 years |
jakub |
Update comment on IPC resource management
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@fce9b19
|
7 years |
jakub |
Print number of answerbox' active calls
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@f40237f
|
7 years |
jakub |
Fix diagnostic message
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@8e3153b
|
7 years |
jakub |
Fix cstyle
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@34316d4
|
7 years |
jakub |
Hang up phones connected during ipc_cleanup()
If an answer to …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@87e7a18
|
7 years |
jakub |
Publish capability only after phone connects
In IPC_M_CONNECT_TO_ME …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@334c103
|
7 years |
jakub |
Allow phone_alloc to not publish the capability
This makes it …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@50dd854
|
7 years |
jakub |
Publish capability only after phone connects
In IPC_M_CONNECT_ME_TO …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@1b4196d
|
7 years |
jakub |
Allow only connecting phones to connect
If a phone is not in the …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@0c509d0
|
7 years |
jakub |
Remove dangerous assert
The task can manage to hangup the expected …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@6c87f3a
|
7 years |
jakub |
Remove superfluous assert
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@de1074b
|
7 years |
jakub |
Handle race condition in phone_connect
Do not panic if the phone is …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@bde48fa
|
7 years |
jakub |
Fix race condition
The capability created by phone_alloc() may get …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@ca61894
|
7 years |
jakub |
Streamline code
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@e618885
|
7 years |
jakub |
Remove dead code
The phone_cap_wait_cb was never called as all phone …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@70327bb
|
7 years |
jakub |
Track number of answers expected by answerbox
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@c25a39e
|
7 years |
jakub |
Destroy the phone capability on hangup
The capability must be …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@cdc4334
|
7 years |
jakub |
Rename ipc_phone_0 to ipc_box_0 for consistency
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@314f4b59
|
7 years |
jakub |
Remove dead code
Hungup phones with zero active calls are …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@df1cbb3
|
7 years |
jakub |
Give reference to phone for each active call
This effectively removes …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@9fc776c7
|
7 years |
jakub |
Remove support for capability reclaiming
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@84239b1
|
7 years |
jiri |
And there was much fixing.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@850fd32a
|
7 years |
jiri |
Fix mischievious semicolons.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@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
|
|
|
@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
|
|
|
@4ed41b3
|
7 years |
martin |
use a dedicated cache for the per-CPU magazines of caches
This avoids …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@b2e121a
|
7 years |
martin |
rename func.{c|h} to halt.{c|h}
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@b5746a2
|
7 years |
martin |
include str.h explicitly, do not rely on transitive inclusion
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@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
|
|
|
@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
|
|
|
@cde999a
|
7 years |
zarevucky.jiri |
Fix comments to stop referring to error codes as negative.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@ee6f434
|
7 years |
zarevucky.jiri |
A few more minor errno tweaks.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@a1026da
|
8 years |
jakub |
Introduce IPC_CALL_AUTO_REPLY call flag
Calls that never make it to …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@897fd8f1
|
8 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
|
|
|
@7f11dc6
|
8 years |
zarevucky.jiri |
Numerous minor error code tweaks in kernel.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@89ea2dc
|
8 years |
zarevucky.jiri |
Functions that return true/false should have bool as a return type.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@7565a4b
|
8 years |
zarevucky.jiri |
Return error code from ipc_phone_hangup().
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@62ca560
|
8 years |
zarevucky.jiri |
Add str_error() and str_error_name() to kernel, and use it to print …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@09d01f2
|
8 years |
zarevucky.jiri |
Return phones/capabilities separately from error codes.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@6a32cc5f
|
8 years |
zarevucky.jiri |
Handle allocation failure in task_create().
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@90f20cf
|
8 years |
zarevucky.jiri |
Fix pagein. Oops.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@6abda242
|
8 years |
zarevucky.jiri |
pagein_request_process() should be pagein_request_preprocess().
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@b2a1fd92
|
8 years |
jiri |
Separate error code from output parameter in udebug_begin().
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@c81132d
|
8 years |
zarevucky.jiri |
Replace casts from non-bool to bool with explicit equality check.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@bd253241
|
8 years |
zarevucky.jiri |
Revert "Only return error code from udebug_begin()."
This reverts …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@0016674
|
8 years |
zarevucky.jiri |
Properly handle errors in SYS_IPC_KBOX.
Also, merge the separate …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@569a51a
|
8 years |
zarevucky.jiri |
Return phone handle in SYS_IPC_CONNECT_KBOX separately from error code.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@9233e9d
|
8 years |
zarevucky.jiri |
Return capability handle in SYS_IPC_IRQ_SUBSCRIBE separately from …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@6deb2cd
|
8 years |
zarevucky.jiri |
Return capability handle in SYS_IPC_WAIT via call data structure, …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@9246016
|
8 years |
zarevucky.jiri |
In SYS_KLOG, pass number of bytes read separately from error code.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@86bbca4
|
8 years |
zarevucky.jiri |
Only return error code from udebug_begin().
Nobody should ever need …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@addbce4
|
8 years |
jakub |
Remove IPC_CALLID_* macros
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@82d515e9
|
8 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
|
|
|
@d7e245a
|
8 years |
jakub |
Use ordinary errors instead of IPC_CALLRET_FATAL
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@474c68b
|
8 years |
jakub |
Do not leak call address in sys_ipc_call_async_*()
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@96258fc
|
8 years |
jakub |
Free up all call capabilities when task exits
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@ce4a21a0
|
8 years |
jakub |
Mention IPC calls in the comment on capabilities
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@01c3bb4
|
8 years |
jakub |
Convert call-handling syscalls to capabilities
This commit modifies …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@f571ca49
|
8 years |
jakub |
Add CAP_NIL
Sometimes it is useful to have a capability analogy of NULL.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@503ffce
|
8 years |
jakub |
Return IPC_CALLID_* in call data instead of callid
Callid will be …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@7c0e1f5
|
8 years |
jakub |
Rework userspace call tracking
Setting the address of the userspace …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@d51a0d6
|
8 years |
jakub |
Associate a kobject_t with a call_t
Let all the reference counting be …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@14741a0
|
8 years |
Hlavaty.Ondrej |
ddi: do not assume arguments are correct
When an uspace app requests …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@706b4de
|
8 years |
jakub |
Remove support for IPC_CALLRET_TEMPORARY
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@d432c02
|
8 years |
jakub |
Make kernel IPC fail hard if maximum number of calls reached
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@c1f68b0
|
8 years |
jakub |
Use recursive mutex to protect task_t::cap_info
This makes it …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@15d9fe6
|
8 years |
jakub |
Implement recursive mutex
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@7cf8522
|
8 years |
jakub |
Unpublish and free phone and IRQ capabilities in ipc_cleanup()
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@3dab10ae
|
8 years |
jakub |
Drop phone kobject reference when slamming the phone in answer_preprocess
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@d470ec8
|
8 years |
jakub |
Maintain phone kobject reference for call_t::caller_phone
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@d088616
|
8 years |
jakub |
Provide locked versions of cap_unpublish() and cap_free()
This is …
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@37e8c4a
|
8 years |
zarevucky.jiri |
Disallow common symbols. They are never needed.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@8ddaaac
|
8 years |
zarevucky.jiri |
Support intmax_t in printf ('j' modifier).
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@35ebd42
|
8 years |
zarevucky.jiri |
Fix up some type casts and format strings.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@002fd5f
|
8 years |
zarevucky.jiri |
Replace parts of system headers with <_bits/…>.
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@ce732e74
|
8 years |
jakub |
Allocate capabilities from a dedicated slab cache
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@c46bfbc
|
8 years |
jakub |
Allow caps_task_alloc() to fail
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@05913fe7
|
8 years |
jakub |
Allow virtually unlimited number of capabilities per task
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|
@02667d9
|
8 years |
jakub |
Resource arenas should be destructible
lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
|
|