Skip to content

Use TimeServer by group components #98

Description

@GoldenRice

The cdl have only one ep cap in the group CNode, even if the group have multiple components. The TimeServer distinguish sender by the badge of the sender ep. So, only one component can get response from the TimeServer.
for example,
import <std_connector.camkes>;
import <global-connectors.camkes>;
import <TimeServer/TimeServer.camkes>;

component Client {
control;
uses Timer timeout;
}

assembly {
composition {
group grp {
component Client c1;
component Client c2;
}

    component TimeServer time_server;
    
    connection seL4TimeServer ts1(from grp.c1.timeout, to time_server.the_timer);
    connection seL4TimeServer ts2(from grp.c2.timeout, to time_server.the_timer);
}   

configuration {
    time_server.timers_per_client = 1;
}   

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions