Browse Source

* fix arm edsp test to load from aligned address

git-svn-id: trunk@10487 -
micha 17 years ago
parent
commit
4a7f6bccf9
1 changed files with 2 additions and 1 deletions
  1. 2 1
      rtl/arm/arm.inc

+ 2 - 1
rtl/arm/arm.inc

@@ -589,7 +589,8 @@ begin
   cpu_has_edsp:=true;
   in_edsp_test:=true;
   asm
-    ldrd r0,[sp]
+    bic r0,sp,#7
+    ldrd r0,[r0]
   end;
   in_edsp_test:=false;
   if cpu_has_edsp then