region detection, cd states wip, fixes, stuff

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@25 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2007-01-28 22:51:16 +00:00
parent cb0316e4c5
commit 51a902ae25
26 changed files with 520 additions and 291 deletions

View file

@ -182,4 +182,14 @@ wait_irq:
.pool
.global set_if_not_changed @ int *val, int oldval, int newval
set_if_not_changed:
swp r3, r2, [r0]
cmp r1, r3
bxeq lr
strne r3, [r0] @ restore value which was changed there by other core
bx lr
@ vim:filetype=armasm: