Fork of the Genode OS framework
Go to file
Alexander Boettcher f02958b25f base: fix faults in rm_session de-constructor path
First make the clients inaccessible and dissolve them from the entrypoint. If
this isn't the first step the clients may be obtained again between
the unlock and lock steps in the destructor.

Additionally the clients may be removed in between the unlock and call
sequence, which renders such client pointers dangling and causes spurious page
faults. Keep instead a lock as long as possible and when it is required to
release a lock, then the pointer to the objects must be revalidated.

Replace the dissolve function with a remove_client implementation as suggested
by #13, which avoids that the cpu_session may call dissolve with a dangling
pointer of a already removed rm_client object. Instead the pager must be
released explicitly.

Related to issue #549
Related to issue #394
Related to issue #13
2013-02-11 12:01:25 +01:00
base base: fix faults in rm_session de-constructor path 2013-02-11 12:01:25 +01:00
base-codezero Update copyright headers to 2013 2013-01-10 21:44:47 +01:00
base-fiasco Update copyright headers to 2013 2013-01-10 21:44:47 +01:00
base-foc Core: Fix registration of CPU exception handler 2013-01-11 22:16:25 +01:00
base-host Update copyright headers to 2013 2013-01-10 21:44:47 +01:00
base-hw Update copyright headers to 2013 2013-01-10 21:44:47 +01:00
base-linux lx_hybrid_ctors: remove 'soname' link option 2013-01-28 11:34:14 +01:00
base-mb Update copyright headers to 2013 2013-01-10 21:44:47 +01:00
base-nova nova: ease debugging if no cap indexes are left 2013-01-24 11:09:15 +01:00
base-okl4 Update copyright headers to 2013 2013-01-10 21:44:47 +01:00
base-pistachio Update copyright headers to 2013 2013-01-10 21:44:47 +01:00
dde_ipxe Update copyright headers to 2013 2013-01-10 21:44:47 +01:00
dde_linux New Input::Event::FOCUS, rename keycode to code 2013-01-15 10:18:11 +01:00
dde_oss Audio: Replace old with new audio interface 2013-01-10 23:05:43 +01:00
demo New Input::Event::FOCUS, rename keycode to code 2013-01-15 10:18:11 +01:00
doc News item about road map 2013 2013-01-15 11:26:02 +01:00
gems Increase quota of d3m 2013-01-21 11:40:38 +01:00
hello_tutorial Remove timer from hello run script (fix #629) 2013-01-24 11:03:27 +01:00
libports nic_bridge: Add tests for static IP address configuration 2013-01-24 11:35:56 +01:00
os File system: Let session quota depend on word size 2013-01-27 18:31:35 +01:00
ports noux_bash.run: Don't require usb_drv on x86 2013-01-27 18:34:45 +01:00
ports-foc L4Android: re-enable x86 version (fix #632) 2013-01-25 11:29:02 +01:00
ports-okl4 New Input::Event::FOCUS, rename keycode to code 2013-01-15 10:18:11 +01:00
qt4 Adapt qt4 to Input::Event changes 2013-01-24 11:11:02 +01:00
tool Add acpi spec value for nova_x86_32 and foc_x86_32 2013-01-10 23:05:43 +01:00
.gitignore Add dde_oss contrib and download to .gitignore 2012-11-27 20:45:33 +01:00
LICENSE Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
README OSS: Open Sound System server 2012-11-27 15:32:39 +01:00

README

                      =================================
                      Genode Operating System Framework
                      =================================


This is the source tree of the reference implementation of the Genode OS
architecture. For a general overview about the architecture, please refer to
the project's official website:

:Official project website for the Genode OS Framework:

  [http://genode.org/documentation/general-overview]

The current implementation can be compiled for 8 different kernels: Linux,
L4ka::Pistachio, L4/Fiasco, OKL4, NOVA, Fiasco.OC, Codezero, and a custom
kernel for the MicroBlaze architecture. Whereas the Linux version serves us as
development vehicle and enables us to rapidly develop the generic parts of the
system, the actual target platforms of the framework are microkernels. There
is no "perfect" microkernel - and neither should there be one. If a microkernel
pretended to be fit for all use cases, it wouldn't be "micro". Hence, all
microkernels differ in terms of their respective features, complexity, and
supported hardware architectures.

Genode allows the use of each of the kernels listed above with a rich set of
device drivers, protocol stacks, libraries, and applications in a uniform way.
For developers, the framework provides an easy way to target multiple different
kernels instead of tying the development to a particular kernel technology. For
kernel developers, Genode contributes advanced workloads, stress-testing their
kernel, and enabling a variety of application use cases that would not be
possible otherwise. For users and system integrators, it enables the choice of
the kernel that fits best with the requirements at hand for the particular
usage scenario.


Directory overview
##################

The Genode source tree is composed of the following subdirectories:

:'doc':

  This directory contains general documentation. Please consider the following
  document for a quick guide to get started with the framework:

  ! doc/getting_started.txt

  If you are curious about the ready-to-use components that come with the
  framework, please review the components overview:

  ! doc/components.txt

:'base':

  This directory contains the source-code repository of the fundamental
  frameworks and interfaces of Genode. Furthermore, it contains the generic
  parts of core.

:'os':

  This directory contains the non-base OS components such as the init process,
  device drivers, and basic system services.

:'demo':

  This directory contains the source-code repository of various services and
  applications that we use for demonstration purposes. For example, a graphical
  application launcher called Launchpad and the Scout tutorial browser.

:'base-<platform>':
  These directories contain platform-specific source-code repositories
  complementing the 'base' repository. The following platforms are supported:

  :'linux':
    Linux kernel (both x86_32 and x86_64)

  :'nova':
    NOVA hypervisor developed at University of Technology Dresden
    See [http://genode.org/documentation/platforms/nova]

  :'foc':
    Fiasco.OC is a modernized version of the Fiasco microkernel with a
    completely revised kernel interface fostering capability-based
    security. It is not compatible with L4/Fiasco.
    See [http://genode.org/documentation/platforms/foc]

  :'hw':
    The hw platform allows the execution of Genode on bare ARM hardware
    without the need for a separate kernel. The kernel functionality is
    included in core.
    See [http://genode.org/documentation/platforms/hw]

  :'okl4':
    OKL4 kernel (x86_32 and ARM) developed at Open-Kernel-Labs.
    See [http://genode.org/documentation/platforms/okl4]

  :'pistachio':
    L4ka::Pistachio kernel developed at University of Karlsruhe.
    See [http://genode.org/documentation/platforms/pistachio]

  :'fiasco':
    L4/Fiasco kernel developed at University of Technology Dresden.
    See [http://genode.org/documentation/platforms/fiasco]

  :'codezero':
    Codezero microkernel developed by B-Labs
    See [http://genode.org/documentation/platforms/codezero]

  :'mb':
    Support for running Genode natively on the MicroBlaze softcore CPU.
    See [http://genode.org/documentation/platforms/microblaze]

  :'host':
    Pseudo platform documenting the interface between the generic and
    platform-specific parts of the base framework. This is not a functional
    base platform.

:'tool':

  Source-code management tools and scripts. Please refer to the README file
  contained in the directory.

:'hello_tutorial':

  Tutorial for creating a simple client-server scenario with Genode. This
  repository includes documentation and the complete source code.

:'libports':

  This source-code repository contains ports of popular open-source libraries
  to Genode, most importantly the C library. The repository contains no
  upstream source code but means to download the code and adapt it to Genode.
  For instructions about how to use this mechanism, please consult the README
  file at the top level of the repository.

:'dde_linux':

  This source-code repository contains the device driver environment for
  executing Linux device drivers natively on Genode. Currently, this
  repository hosts the USB stack.

:'linux_drivers':

  Deprecated version of the Linux device driver environment featuring audio
  drivers and the Intel GEM driver. This repository is in a transitionary
  phase. Its functionality will be incorporated into 'dde_linux'.

:'dde_ipxe':

  This source-code repository contains the device-driver environment for
  executing drivers of the iPXE project.

:'dde_oss':

  This source-code repository contains the device-driver environment for the
  audio drivers of the Open Sound System (OSS).

:'qt4':

  This source-code repository contains the Genode version of Qt4 framework.
  Please find more information about using Qt4 with Genode in the repository's
  'README' file.

:'ports':

  This source-code repository hosts ports of 3rd-party applications to
  Genode. The repository does not contain upstream source code but provides
  a mechanism for downloading the official source distributions and adapt
  them to the Genode environment. The used mechanism is roughly the same
  as used for the 'libports' repository. Please consult 'libports/README'
  for further information.

:'ports-<platform>':

  These platform-specific source-code repositories contain software that
  capitalizes special features of the respective kernel platform. I.e.,
  for the OKL4 base platform, a port of OKLinux is provided in 'ports-okl4'.
  For the Fiasco.OC platform, 'ports-foc' hosts a port of the L4Linux
  kernel. For further information, please refer to the README file at the
  top level of the respective repository.

:'gems':

  This source-code repository contains Genode applications that use
  both native Genode interfaces as well as features of other high-level
  repositories, in particular shared libraries provided by 'libports'.


Contact
#######

The best way to get in touch with Genode developers and users is the project's
mailing list. Please feel welcome to join in!

:Genode Mailing Lists:

  [http://genode.org/community/mailing-lists]