Skip to contentSkip to conversation

Fix out-of-range operand error in mpc83xx/start.S

PATCH New Timur Tabi 1 participant 1 message Jul 14, 2006

lore
Share & tools
lore

Timur Tabi

author
#0 lore raw

PATCH 1/1 Fix out-of-range operand error in mpc83xx/start.S

CHANGELOG

* Fixed syntax error in function init_e300_core() of mpc83xx/start.S if CONFIG_WATCHDOG is defined. An out-of-range constant was changed to its negative equivalent to make the compiler happy.

---

  cpu/mpc83xx/start.S |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

482af05a0aa630b1380b332804d491ed01149815

cpu/mpc83xx/start.S +1 -1
index 6e02cce..0ca4f4f 100644
@@ -458,7 +458,7 @@ init_e300_core: /* time t 10 */
 
  	li	r4, 0x556C
  	sth	r4, SWSRR at l(r3)
-	li	r4, 0xAA39
+	li	r4, -0x55C7  /* Equivalent to 0xAA39 */
  	sth	r4, SWSRR at l(r3)
  #else
  	/* Disable Wathcdog  */
Signature · 1 line
1.2.4