Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use TimeServer by group components #98

Open
GoldenRice opened this issue Dec 6, 2021 · 0 comments
Open

Use TimeServer by group components #98

GoldenRice opened this issue Dec 6, 2021 · 0 comments

Comments

@GoldenRice
Copy link

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;
}   

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant