1
0
mirror of git://projects.qi-hardware.com/iris.git synced 2024-11-04 23:19:41 +02:00
iris/invoke.ccp

15 lines
447 B
Plaintext
Raw Normal View History

2009-05-20 23:07:56 +03:00
#pypp 0
#include "kernel.hh"
Capability *Memory::find_capability (unsigned code):
for Capability *c = capabilities; c; c = c->next:
if c == (Capability *)code:
return c
return NULL
void Capability::invoke (unsigned d0, unsigned d1, unsigned d2, unsigned d3, Capability *c0, Capability *c1, Capability *c2, Capability *c3):
if (unsigned)target & PAGE_MASK:
// TODO: Create message in receiver.
return
// TODO: Handle kernel request.