Reimplemented atomic destructive read. Revised irq control capabilities.

This commit is contained in:
Bahadir Balban
2009-12-13 18:49:35 +02:00
parent c7069a8e8e
commit 0c4bd69357
3 changed files with 17 additions and 22 deletions

View File

@@ -63,4 +63,10 @@ BEGIN_PROC(__l4_mutex_unlock)
mov pc, lr
END_PROC(__l4_mutex_unlock)
BEGIN_PROC(l4_atomic_dest_readb)
mov r1, r0 @ Move byte address to r1
mov r2, #0 @ Move 0 to r2
swpb r0, r2, [r1] @ Write 0 to byte location, while reading its value to r0
mov pc, lr @ Return byte location value
END_PROC(l4_atomic_dest_readb)