Connect two devices to vbus

Pierre Larus pierre.larus at laposte.net
Wed Jun 13 14:51:54 CEST 2012


Hi,

In my project, I have defined two io memory ressources as devices. I want
connect these two devices to vbus.
"io_bus.gpt2" is actually connected to vbus. But is it possible to also
connect "io_bus.intc" to vbus ?

local name = "l4rtos";
local DeviceFile = "beagle.devs"
local IOFile = "beagle.io"
local loader = L4.default_loader;

local io_bus =
  {
    gpt2 = loader:new_channel();
    intc = loader:new_channel();
  };

loader:start({
        caps = {
             gpt2 = io_bus.gpt2:svr(),
             intc = io_bus.intc:svr(),
             icu = L4.Env.icu,
             sigma0 = L4.cast(L4.Proto.Factory,
L4.Env.sigma0):create(L4.Proto.Sigma0),
                 },
              },
         "rom/io rom/" .. DeviceFile .. " rom/" .. IOFile);

loader:start(
    { caps = {
           vbus = io_bus.gpt2,
           icu = L4.Env.icu,
           log = L4.Env.log:m("rws"),
           },
    },
    "rom/" .. name);

Regards,

Pierre Larus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://os.inf.tu-dresden.de/pipermail/l4-hackers/attachments/20120613/dd4c59c9/attachment.html>


More information about the l4-hackers mailing list