genode/base-foc/include/base
Stefan Kalkowski a5ea6765d1 Fiasco.OC: several capability ref-counter fixes.
This commit fixes several issues that were triggered e.g. by the
'noux_tool_chain' run-script (fix #208 in part). The following problems
are tackled:
* Don't reference count capability selectors within a task that are actually
  controlled by core (all beneath 0x200000), because it's undecideable which
  "version" of a capability selector we currently use, e.g. a thread gets
  destroyed and a new one gets created immediately some other thread might
  have a Native_capability pointing to the already destroyed thread's gate
  capability-slot, that is now a new valid one (the one of the new thread)
* In core we cannot invalidate and remove a capability from the so called
  Cap_map before each reference to it is destroyed, so don't do this in
  Cap_session_component::free, but only reference-decrement within there,
  the actual removal can only be done in Cap_map::remove. Because core also
  has to invalidate a capability to be removed in all protection-domains
  we have to implement a core specific Cap_map::remove method
* When a capability gets inserted into the Cap_map, and we detect an old
  invalid entry with the dame id in the tree, don't just overmap that
  invalid entry (as there exist remaining references to it), but just remove
  it from the tree and allocate an new entry.
* Use the Cap_session_component interface to free a Pager_object when it
  gets dissolved, as its also used for allocation
2012-09-03 10:59:54 +02:00
..
cap_alloc.h Fiasco.OC: several capability ref-counter fixes. 2012-09-03 10:59:54 +02:00
cap_map.h Fiasco.OC: several capability ref-counter fixes. 2012-09-03 10:59:54 +02:00
ipc_msgbuf.h Fiasco.OC: several capability ref-counter fixes. 2012-09-03 10:59:54 +02:00
ipc_pager.h Add support for allocating DMA memory 2012-06-20 09:17:48 +02:00
ipc.h Fiasco.OC: fix bugs in cap_map insertion/removal 2012-05-29 13:55:00 +02:00
native_types.h Fiasco.OC: smart-pointer for kernel capabilities. 2012-05-09 20:50:57 +02:00
thread_state.h Fiasco.OC: introduce Cap_index (fixes #149, #112) 2012-03-22 14:10:44 +01:00