Removed 2 arguments from l4_capability_control

l4_capability_control works well for almost all system calls
using a buffer pointer to the capability that it operates on.

Only for sharing/granting of capability lists, it is yet to be
decided how to provide a grant target id.
This commit is contained in:
Bahadir Balban
2009-12-02 16:47:05 +02:00
parent ae16df6307
commit 2c93de65bf
5 changed files with 62 additions and 28 deletions

View File

@@ -112,16 +112,14 @@ END_PROC(l4_map)
/*
* Reads/manipulates capabilities of a thread, particularly a pager.
* @r0 = request type, @r1 = request flags,
* @r2 = capid, @r3 = target thread id, @r4 = io buffer ptr
* @r0 = request type, @r1 = request flags, @r2 = Capability buffer pointer
*/
BEGIN_PROC(l4_capability_control)
stmfd sp!, {r4, lr}
ldr r4, [sp, #8] @ FIXME: Is this right?
stmfd sp!, {lr}
ldr r12, =__l4_capability_control
mov lr, pc @ We must return here to restore r4.
mov lr, pc
ldr pc, [r12]
ldmfd sp!, {r4, pc}
ldmfd sp!, {pc} @ Restore original lr and return.
END_PROC(l4_capability_control)
/*