changeset 2775:0f319c78e393

Fix thinko in last checkin.
author nickg
date Mon, 09 Feb 2009 16:46:42 +0000
parents 1a58c9c41c50
children 7dab99db1476
files packages/hal/arm/arch/current/ChangeLog packages/hal/arm/arch/current/src/vectors.S
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/packages/hal/arm/arch/current/ChangeLog
+++ b/packages/hal/arm/arch/current/ChangeLog
@@ -5,8 +5,8 @@ 2009-02-09  Nick Garnett  <nickg@ecoscen
 	the end of __bss_end. Usually this is benign, but when __bss_end
 	is at the very top of RAM, and the hardware generates an exception
 	for illegal accesses, this can crash the program before it even
-	starts. The fix is to use a BLT instructions which will terminate
-	the loop 1 word earlier.
+	starts. The fix is to use a BHI instructions and reverse the
+	compare, which will terminate the loop 1 word earlier.
 
 2009-02-02  Bart Veer  <bartv@ecoscentric.com>
 
--- a/packages/hal/arm/arch/current/src/vectors.S
+++ b/packages/hal/arm/arch/current/src/vectors.S
@@ -449,8 +449,8 @@ 2:
         cmp     r1,r2
         beq     2f
 1:      str     r0,[r1],#4
-        cmp     r1,r2
-        blt     1b
+        cmp     r2,r1
+        bhi     1b
 2:
 
         // Run kernel + application in THUMB mode