genode/base-foc/src
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
..
base Fiasco.OC: several capability ref-counter fixes. 2012-09-03 10:59:54 +02:00
bootstrap Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
core Fiasco.OC: several capability ref-counter fixes. 2012-09-03 10:59:54 +02:00
kernel Fiasco.OC: basic support for pandaboard 2012-05-29 13:55:00 +02:00
platform Fiasco.OC: several capability ref-counter fixes. 2012-09-03 10:59:54 +02:00
sigma0 Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
test/cap_integrity Fiasco.OC: several capability ref-counter fixes. 2012-09-03 10:59:54 +02:00