test ipc
This commit is contained in:
@@ -53,6 +53,16 @@ extern "C" void main() {
|
||||
|
||||
uint8_t cnt = 0;
|
||||
for (unsigned i = 1;; ++i) {
|
||||
if(id == 2){
|
||||
send(4, text, strlen(text), text, 5);
|
||||
write(1, text, strlen(text), 15, (int)id);
|
||||
}
|
||||
if(id == 4){
|
||||
char blubb[10];
|
||||
receive(blubb, 10);
|
||||
write(1, blubb, strlen(blubb), 15, (int)id);
|
||||
reply("toast", 5);
|
||||
}
|
||||
|
||||
//counter to see app running
|
||||
cnt=(cnt+1)%100;
|
||||
@@ -70,7 +80,5 @@ extern "C" void main() {
|
||||
unmap(ptr, 4096);
|
||||
|
||||
sleep(100);
|
||||
if(id == 4)
|
||||
*reinterpret_cast<uint8_t*>(0xdeadbeaf) = 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user