genode/repos/os/src/app/rom_to_file
Norman Feske 4d442bca30 Streamline exception types
This patch reduces the number of exception types by facilitating
globally defined exceptions for common usage patterns shared by most
services. In particular, RPC functions that demand a session-resource
upgrade not longer reflect this condition via a session-specific
exception but via the 'Out_of_ram' or 'Out_of_caps' types.

Furthermore, the 'Parent::Service_denied', 'Parent::Unavailable',
'Root::Invalid_args', 'Root::Unavailable', 'Service::Invalid_args',
'Service::Unavailable', and 'Local_service::Factory::Denied' types have
been replaced by the single 'Service_denied' exception type defined in
'session/session.h'.

This consolidation eases the error handling (there are fewer exceptions
to handle), alleviates the need to convert exceptions along the
session-creation call chain, and avoids possible aliasing problems
(catching the wrong type with the same name but living in a different
scope).
2017-05-31 13:16:07 +02:00
..
main.cc Streamline exception types 2017-05-31 13:16:07 +02:00
README Component writing a ROM into a file-system session 2016-04-25 10:47:59 +02:00
target.mk rom_to_file: remove Server library 2017-02-28 12:59:30 +01:00

The rom_to_file component requests a ROM session and writes the content of the
ROM dataspace to a File_system. It responds to configuration and ROM-module
updates.

The name of the ROM module must be specified via the 'rom' attribute of the
components '<config>' node

! <config rom="pointer"/>

See run/rom_to_file.run for an example.