Martin Stein
e0419b2401
hw: clearer naming scheme in kernel API
...
Rename kernel syscall in kernel call and the kernel-API
files in kernel/interface* .
ref #953
2013-11-25 09:45:30 +01:00
Alexander Boettcher
a6af6c80ab
base: count caps replied by a rpc function
...
Issue #905
2013-11-18 11:01:45 +01:00
Martin Stein
e450602196
hw: missing initialization in signal handler
...
fix #951
2013-11-18 11:01:45 +01:00
Martin Stein
653e14b74f
hw: adjust SIGNAL SLAB sizes to new conditions
...
fix #950
2013-11-18 11:01:45 +01:00
Martin Stein
909ab8dcd0
hw: communicate page faults via signals
...
Enable routing of thread events to signal contexts via
Kernel::route_thread_event.
Replace Kernel::set_pager by Kernel::route_thread_event.
In base-hw a pager object is a signal context and a pager activation
is a signal receiver. If a thread wants to start communicating its page
faults via a pager object, the thread calls Kernel::route_thread_event with
its thread ID, event ID "FAULT", and the signal context ID of the pager object.
If a pager activation wants to start handling page faults of a pager object,
the pager activation assigns the corresponding signal context to its signal
receiver. If a pager activation wants to stop handling page faults of a pager
object, the pager activation dissolves the corresponding signal context from
its signal receiver. If a thread wants to start communicating its page faults
via a pager object, the thread calls Kernel::route_thread_event with its
thread ID, event ID "FAULT", and the invalid signal context ID.
Remove Kernel::resume_faulter.
Move all page fault related code from generic kernel sources to CPU
specific cpu_support.h and cpu_support.cc.
fix #935
2013-11-14 19:57:31 +01:00
Martin Stein
ba52529bd6
hw: beautify scheduling-priority code
...
ref #935
2013-11-14 19:57:31 +01:00
Martin Stein
da49f86f5b
hw: provide placement via dedicated header
...
ref #935
2013-11-14 19:57:30 +01:00
Martin Stein
15a56bd682
hw: provide and use syscall access_thread_regs
...
ref #935
2013-11-14 19:57:30 +01:00
Martin Stein
20e91d0b60
base: individual implementations of pager-object
...
ref #935
2013-11-14 19:57:30 +01:00
Martin Stein
d24ed9783b
hw: get rid of kernel_support.cc
...
ref #935
2013-11-14 19:57:30 +01:00
Martin Stein
f4b46fe55c
hw: move kernel.cc to core/kernel/
...
ref #935
2013-11-14 19:57:30 +01:00
Martin Stein
9c1ae1f149
hw: no overloading of Signal_context constructor
...
ref #935
2013-11-14 19:57:30 +01:00
Martin Stein
47744e0019
hw: handle interrupts via signals
...
fix #874
2013-11-14 19:57:30 +01:00
Martin Stein
002a5b8978
hw: distinct pagefault and IPC message type
...
ref #874
2013-11-14 19:56:39 +01:00
Martin Stein
6f935af278
hw: communicate message type through UTCB
...
ref #874
2013-11-14 19:56:38 +01:00
Martin Stein
1e7eb4512e
hw: manage UTCB through use-case specific structs
...
ref #874
2013-11-14 19:56:38 +01:00
Martin Stein
96bbca6191
hw: send reply size & receive request size by UTCB
...
ref #874
2013-11-14 19:56:38 +01:00
Martin Stein
45d37e275d
hw: send request size through UTCB
...
ref #874
2013-11-14 19:56:38 +01:00
Martin Stein
6b9376bb01
hw: clean up interface of Kernel::Thread
...
ref #874
2013-11-14 19:56:38 +01:00
Martin Stein
ffb26eb501
hw: make syscall backend private to Kernel::Thread
...
ref #874
2013-11-14 19:56:38 +01:00
Martin Stein
5cd2f6ee0b
hw: make Kernel::mtc() global
...
ref #874
2013-11-14 19:56:38 +01:00
Martin Stein
0bb6ffa98d
hw: header and source file for Kernel::Vm
...
ref #874
2013-11-14 19:56:38 +01:00
Martin Stein
22d61c241e
hw: remove useless function handle_invalid_excpt
...
ref #874
2013-11-14 19:56:38 +01:00
Martin Stein
059aba0916
hw: remove unused function handle_invalid_syscall
...
ref #874
2013-11-14 19:56:38 +01:00
Stefan Kalkowski
265ec48c20
hw: implement priority-based scheduling ( fix #945 )
2013-11-12 15:01:54 +01:00
Stefan Kalkowski
c95f11418a
i.MX53: fit into u-boot's memory layout on tablet
...
Fixes #917
2013-10-22 08:00:14 +02:00
Martin Stein
c56927b76e
hw: differ ID allocators even with same size
...
Previously, if two ID allocators for different kernel objects had the
same size, the kernel-object framework managed both objects types
through the same allocator instance. This is caused by the use of
unsynchronized singletons in the accessor functions and can be avoided
by creating new types through inheritance instead of using typedefs.
Anyways, this fix is a little bit ugly and should replaced by avoiding
the use of unsynchronized singletons in the future.
fix #906
2013-10-22 08:00:14 +02:00
Josef Söntgen
afdabe9df8
hw: enable performance counter on ARMv6 and ARMv7
...
To actually enable the performance counter 'perf_counter' has to be
added to the SPECS make variable.
Fixes #893 .
2013-10-17 11:05:53 +02:00
Martin Stein
c117516296
hw: relax signal limits for resource_request test
...
ref #912
2013-10-16 09:26:11 +02:00
Martin Stein
f88fd35f22
hw: avoid upgrade need of 8192 in signal session
...
ref #912
2013-10-16 09:26:11 +02:00
Martin Stein
b5c6f2c260
hw: avoid generic exceptions in signal framework
...
ref #912
2013-10-16 09:26:11 +02:00
Martin Stein
bb9fa16a5e
hw: throw expressive exceptions in signal session
...
ref #912
2013-10-16 09:26:11 +02:00
Martin Stein
0ad655f4be
hw: return error code on IPC replies
...
ref #899
2013-10-16 09:26:10 +02:00
Martin Stein
ae76e441b1
hw: fix bug in Kernel::Thread::resume
...
ref #899
2013-10-16 09:26:10 +02:00
Martin Stein
b85126a638
hw: enable verbose thread starts
...
ref #899
2013-10-16 09:26:10 +02:00
Martin Stein
d961b9ae1e
hw: enable multiple compilation units in kernel
...
ref #899
2013-10-16 09:26:10 +02:00
Martin Stein
d6d4938916
hw: fix bug in Kernel::yield_thread
...
ref #899
2013-10-16 09:26:10 +02:00
Martin Stein
6912e638fb
hw: kill signal receivers
...
ref #899
2013-10-16 09:26:10 +02:00
Martin Stein
26db598fc0
hw: cancel waiting for IPC requests
...
ref #899
2013-10-16 09:26:10 +02:00
Martin Stein
327cdfdf36
hw: always remove RM client on thread destruction
...
ref #589
2013-09-26 16:09:56 +02:00
Martin Stein
36111587be
hw: don't use assertions in Kernel::get_thread
...
ref #589
2013-09-26 16:09:56 +02:00
Martin Stein
e5ea660e2e
hw: enable to destruct thread after its RM client
...
ref #589
2013-09-26 16:09:55 +02:00
Martin Stein
d86bf3db64
hw: destruct protection domains
...
ref #589
2013-09-26 16:09:55 +02:00
Martin Stein
a4f52bec19
hw: enable direct unmap
...
ref #589
2013-09-26 16:09:55 +02:00
Martin Stein
4f4738427d
hw: release pagers from faulting threads
...
ref #589
2013-09-26 16:09:55 +02:00
Martin Stein
c3be0b417a
hw: fix bug in Kernel::Thread::crash
...
ref #589
2013-09-26 16:09:55 +02:00
Martin Stein
a596fa56a6
hw: destruct scheduling contexts
...
ref #589
2013-09-26 15:58:05 +02:00
Martin Stein
52ec56c060
hw: destruct abstract interfaces of signal backend
...
ref #589
2013-09-26 15:58:05 +02:00
Martin Stein
611cd95eb3
hw: destruct IPC end-nodes
...
ref #589
2013-09-26 15:58:05 +02:00
Martin Stein
de87fa1b5c
hw: avoid address overflow in Tlb::remove_region()
...
ref #589
2013-09-26 15:58:05 +02:00
Martin Stein
909c2dbc95
hw: remove note feature from IPC framework
...
ref #589
2013-09-26 15:58:04 +02:00
Martin Stein
349262a655
hw: handle pagefaults via IPC request/reply
...
ref #589
2013-09-26 15:58:04 +02:00
Martin Stein
6d03292a1e
hw: destruct signal sessions
...
ref #589
2013-09-26 15:58:04 +02:00
Martin Stein
84c31a7ea1
hw: destruct signal receivers
...
ref #589
2013-09-26 15:58:04 +02:00
Martin Stein
e07781dc1c
base: destruct signal receiver platform specific
...
This is made for future signal framework in base-hw
wich needs a platform specific hook in the signal-
receiver destruction.
ref #589
2013-09-26 15:58:04 +02:00
Martin Stein
e33ea2a8b7
hw: completely release signal-context resources
...
ref #589
2013-09-26 15:58:04 +02:00
Martin Stein
2223e72c7f
hw: no assert checks by default, enable opt-in
...
fix #528
2013-09-26 15:58:04 +02:00
Martin Stein
3070af9194
hw: thread in extra header with asserts reviewed
...
ref #528
2013-09-26 15:58:04 +02:00
Martin Stein
1843f10c62
hw: PD in extra header with asserts reviewed
...
ref #528
2013-09-26 15:58:04 +02:00
Martin Stein
5f64411ad7
hw: add missing include in singleton header
...
ref #528
2013-09-26 15:58:04 +02:00
Martin Stein
48f831af3c
hw: signal receiver in extra header without assert
...
ref #528
2013-09-26 15:58:04 +02:00
Martin Stein
bf37159eb9
base: provide class Genode::Fifo_element
...
ref #528
2013-09-26 15:58:04 +02:00
Martin Stein
9826294e6c
hw: IPC node in extra header
...
ref #528
2013-09-26 15:58:03 +02:00
Martin Stein
01e8ee2752
hw: IRQ receiver in extra header & reviewed
...
ref #528
2013-09-26 15:58:03 +02:00
Martin Stein
2c357a4f04
hw: scheduler in extra header & asserts reviewed
...
ref #528
2013-09-26 15:58:03 +02:00
Martin Stein
4a1c218fd0
hw: object in extra header & asserts reviewed
...
ref #528
2013-09-26 15:58:03 +02:00
Martin Stein
e67016ca08
hw: kernel configuration in dedicated header
...
ref #528
2013-09-26 15:58:03 +02:00
Martin Stein
a4ab2a4f30
hw: avoid syscall fptr. array + threads can crash
...
ref #528
2013-09-26 15:58:03 +02:00
Martin Stein
f7fd7b0b11
hw: no assertions in pagers
...
ref #528
2013-09-26 15:58:03 +02:00
Martin Stein
2afa25be1d
hw: no asserts in platform PD
...
ref #528
2013-09-26 15:58:03 +02:00
Martin Stein
36c453aa17
hw: no mandatory asserts in platform thread
...
ref #528
2013-09-26 15:58:03 +02:00
Martin Stein
e27c43acc0
hw: no implicit uint-to-int cast in signal submit
...
ref #528
2013-09-26 15:58:03 +02:00
Martin Stein
545a397fa6
hw: avoid mandatory function calls in assertions
...
ref #528
2013-09-26 15:58:03 +02:00
Christian Helmuth
f763e5ec2a
Move main bootstrap to platform-specific object
...
To prevent multiple execution of main-bootstrap, I moved the code to a
statically initialized object. The reason for this change is that
_main() is exeuted twice when starting dynamic binaries. Now, the object
is part of the base-common library which is linked with ld.lib.so.
2013-09-26 15:00:16 +02:00
Norman Feske
f1dcaa746d
Enable C++11 by default
2013-09-23 14:26:01 +02:00
Norman Feske
0f663991c1
base-hw: Pic::mask for rpi
2013-09-23 14:26:00 +02:00
Christian Helmuth
9f3c4c227e
Put entry point at start of text segment / binary
...
Fixes #881 .
2013-09-23 14:26:00 +02:00
Martin Stein
0d803266ea
hw: touch kernel scheduler and timer less often
...
fix #857
fix #855
2013-08-27 16:04:10 +02:00
Martin Stein
d0eaca9915
hw: don't unmask timer IRQ on any kernel pass
...
ref #855
2013-08-23 11:25:18 +02:00
Martin Stein
cbd1464ee3
hw: fix in signal-ack handling in kernel
...
ref #574
2013-08-23 11:23:47 +02:00
Norman Feske
149356f7ab
core: TRACE service interface and implementation
2013-08-15 09:22:47 +02:00
Norman Feske
fe4a6d7d81
base: User-level tracing support
2013-08-14 18:43:19 +02:00
Martin Stein
bb00aebc9e
hw & signal: consider initial SLAB blocks
...
By now Signal_session_component has allocated initial SLAB
blocks in constructor, wich crashed with the root
components assumptions about the RAM quota needs of
session creation. Thus, if the background allocator was already
exhausted from component allocation the session was created
with broken initial SLAB blocks.
fix #574
2013-08-13 17:08:26 +02:00
Norman Feske
35723d813d
core: evaluate CPU session affinity argument
2013-08-13 17:08:25 +02:00
Norman Feske
5fe29e8e4a
Express affinities via Cartesian coordinates
...
This patch introduces new types for expressing CPU affinities. Instead
of dealing with physical CPU numbers, affinities are expressed as
rectangles in a grid of virtual CPU nodes. This clears the way to
conveniently assign sets of adjacent CPUs to subsystems, each of them
managing their respective viewport of the coordinate space.
By using 2D Cartesian coordinates, the locality of CPU nodes can be
modeled for different topologies such as SMP (simple Nx1 grid), grids of
NUMA nodes, or ring topologies.
2013-08-13 17:08:24 +02:00
Alexander Boettcher
4ae1faf14d
base: add affinity support to pager construction
...
Propagating the affinity information is needed to allow for assigning
a pager thread that is local to the CPU of the to-be-created thread.
issue #814
2013-08-13 17:08:23 +02:00
Stefan Kalkowski
5d75e6676d
run-tool: be more failure tolerant in spawn_serial
...
Fixes #809
2013-07-15 13:06:08 +02:00
Stefan Kalkowski
09d81759ee
run-tool: unify building of u-boot image ( fix #807 )
2013-07-15 11:13:28 +02:00
Martin Stein
6c7a25d08c
base-hw: use generic signal_session/connection.h
...
base-hw extended the signal quota in a specific connection
implementation, which just conceals other issues if quota upgrade is
triggered.
Fixes #410 .
2013-07-12 16:41:33 +02:00
Stefan Kalkowski
e717ad656f
base-hw: preserve symbolic link bin/core
...
In this case "mv A B" works slightly different than "cp A B; rm A" as
symbolic links come into play. The statements should copy the contents
of A into the symboliv link at B (preserving it as is) and remove A. The
mv would replace the link B by the binary A.
Fixes #805 .
2013-07-12 15:23:33 +02:00
Stefan Kalkowski
ba273fb6fb
base-hw: disable L2 cache on Pandaboard ( fix #797 )
...
* Fix bitfield typo in TTBR0 register for ARMv7
2013-07-11 12:40:19 +02:00
Martin Stein
1b96e8a7e1
hw: use generic genode.ld
...
Ref #766
2013-07-05 12:37:43 +02:00
Martin Stein
6b42fff30e
hw: use generic crt0.s for progs other than core
...
Use '__initial_sp' instead of '_main_utcb' to receive a main threads
UTCB pointer outside core.
Ref #766
2013-07-05 12:37:42 +02:00
Martin Stein
e20b773bef
hw & arm: use sp to hand out main UTCB pointer
...
Also don't hand out UTCB pointers to cores main thread and to threads
other than main threads.
Ref #766
2013-07-05 12:37:42 +02:00
Martin Stein
5a3e340699
hw: initialize Platform_thread::_main_thread right
...
Ref #766
2013-07-05 12:37:42 +02:00
Stefan Kalkowski
e06a154294
Add __initial_sp variable to base-hw specific crt0
...
Fixes #756
2013-06-12 11:35:13 +02:00
Martin Stein
ee28a69c98
hw: fully functional Thread_base::cancel_blocking
...
Thread_base::cancel_blocking brings a thread back to execution
from every state, except the thread is created but not started yet.
Fix #745
2013-05-22 18:53:18 +02:00
Martin Stein
2e7802b799
base-hw: flush cached zeroes in 'clear_ds(...)'
...
Ref #706
2013-05-22 18:32:05 +02:00
Martin Stein
a0d182e25a
hw_arndale: userland timer driver
...
Ref #706
2013-05-22 18:32:05 +02:00
Martin Stein
65136c2289
hw_arndale: use core local timer in kernel
...
Ref #706
2013-05-22 18:32:05 +02:00