aboutsummaryrefslogtreecommitdiffstats
path: root/ports/ARM7-LPC214x
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2007-12-18 10:10:24 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2007-12-18 10:10:24 +0000
commitd34507ec44db7333c8a81ae23ffd89a05ef3293d (patch)
treed0ad0b7181572aa49b6217628da6df1371bcec73 /ports/ARM7-LPC214x
parent63508437a31f19b5f5612bb3e1f3820e9edb1be1 (diff)
downloadChibiOS-d34507ec44db7333c8a81ae23ffd89a05ef3293d.tar.gz
ChibiOS-d34507ec44db7333c8a81ae23ffd89a05ef3293d.tar.bz2
ChibiOS-d34507ec44db7333c8a81ae23ffd89a05ef3293d.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@145 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'ports/ARM7-LPC214x')
-rw-r--r--ports/ARM7-LPC214x/GCC/chcore.c27
-rw-r--r--ports/ARM7-LPC214x/GCC/chcore2.s3
-rw-r--r--ports/ARM7-LPC214x/GCC/crt0.s4
3 files changed, 2 insertions, 32 deletions
diff --git a/ports/ARM7-LPC214x/GCC/chcore.c b/ports/ARM7-LPC214x/GCC/chcore.c
index 11f407627..51ead6542 100644
--- a/ports/ARM7-LPC214x/GCC/chcore.c
+++ b/ports/ARM7-LPC214x/GCC/chcore.c
@@ -40,33 +40,6 @@ void chSysPuts(char *msg) {
}
/*
- * Non-vectored IRQs handling here.
- */
-__attribute__((naked, weak))
-void IrqHandler(void) {
-
- chSysIRQEnterI();
-
- /* nothing */
-
- chSysIRQExitI();
-}
-
-/*
- * Timer 0 IRQ handling here.
- */
-__attribute__((naked, weak))
-void T0IrqHandler(void) {
-
- chSysIRQEnterI();
-
- T0IR = 1; /* Clear interrupt on match MR0. */
- chSysTimerHandlerI();
-
- chSysIRQExitI();
-}
-
-/*
* Common IRQ exit code, \p chSysIRQExitI() just jumps here.
*
* System stack frame structure after a context switch in the
diff --git a/ports/ARM7-LPC214x/GCC/chcore2.s b/ports/ARM7-LPC214x/GCC/chcore2.s
index ee1e6ad55..a31422cea 100644
--- a/ports/ARM7-LPC214x/GCC/chcore2.s
+++ b/ports/ARM7-LPC214x/GCC/chcore2.s
@@ -32,9 +32,9 @@
.text
.code 32
-.balign 4
#ifdef THUMB
+.balign 16
.globl chSysLock
chSysLock:
msr CPSR_c, #MODE_SYS | I_BIT
@@ -46,6 +46,7 @@ chSysUnlock:
bx lr
#endif
+.balign 16
.globl chSysSwitchI
chSysSwitchI:
#ifdef CH_CURRP_REGISTER_CACHE
diff --git a/ports/ARM7-LPC214x/GCC/crt0.s b/ports/ARM7-LPC214x/GCC/crt0.s
index b58e189e8..27e2eefcf 100644
--- a/ports/ARM7-LPC214x/GCC/crt0.s
+++ b/ports/ARM7-LPC214x/GCC/crt0.s
@@ -136,8 +136,6 @@ bssloop:
mov r1, r0
bl main
bl chSysHalt
-.weak hwinit
-hwinit: bx lr
#else
add r0, pc, #1
bx r0
@@ -147,8 +145,6 @@ hwinit: bx lr
mov r1, r0
bl main
bl chSysHalt
-.weak hwinit
-hwinit: bx lr
.code 32
#endif