This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
thumb build fix for mcb2100
- From: Jani Monoses <jani at iv dot ro>
- To: ecos-patches at ecos dot sourceware dot org
- Date: Fri, 19 Nov 2004 12:03:21 +0200
- Subject: thumb build fix for mcb2100
My last so-called fix was broken.I hand-merged from other sources and then
failed to test if it builds.
sorry.
Jani
--- orig/packages/hal/arm/lpc2xxx/mcb2100/current/ChangeLog
+++ mod/packages/hal/arm/lpc2xxx/mcb2100/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-11-19 Jani Monoses <jani@iv.ro>
+
+ * include/hal_platform_setup.h:
+ Fix previous fix. LDR needs its operand prefixed with = not #.
+
2004-11-15 Jani Monoses <jani@iv.ro>
* include/hal_platform_setup.h:
--- orig/packages/hal/arm/lpc2xxx/mcb2100/current/include/hal_platform_setup.h
+++ mod/packages/hal/arm/lpc2xxx/mcb2100/current/include/hal_platform_setup.h
@@ -59,17 +59,15 @@
.macro _led_init
ldr r0,=CYGARC_HAL_LPC2XXX_REG_IO_BASE
- ldr r1,#0x00FF0000 // GPIO1 pins
- // 16..23
- // outputs
+ ldr r1,=0x00FF0000 //GPIO1 pins 16..23 outputs
str r1,[r0,#CYGARC_HAL_LPC2XXX_REG_IO1DIR]
.endm
.macro _led x
ldr r0,=CYGARC_HAL_LPC2XXX_REG_IO_BASE
- ldr r1,#0x00FF0000
+ ldr r1,=0x00FF0000
str r1,[r0,#CYGARC_HAL_LPC2XXX_REG_IO1CLR]
- ldr r1,#(\x<<16)
+ ldr r1,=(\x<<16)
str r1,[r0,#CYGARC_HAL_LPC2XXX_REG_IO1SET]
.endm