Mercurial > ecos
diff packages/hal/arm/arch/current/src/vectors.S @ 14:01ce82f3e11a ecos-sw-1999-06-11
Merge from eCos master repository on 1999-06-11-17:05:41-BST
| author | jlarmour |
|---|---|
| date | Fri, 11 Jun 1999 09:36:56 +0000 |
| parents | d3fbcdfa1b2f |
| children | 4f2df4ab82c8 |
line wrap: on
line diff
--- a/packages/hal/arm/arch/current/src/vectors.S +++ b/packages/hal/arm/arch/current/src/vectors.S @@ -126,15 +126,18 @@ reset_vector: str r2,[r0,#0x24] ldr r2,[r1,#0x08] // software interrupt str r2,[r0,#0x08] +#if defined(CYG_HAL_STARTUP_RAM) +// Ugly hack to get into supervisor mode ldr r2,[r1,#0x40] str r2,[r0,#0x28] swi // switch to supervisor mode +#endif // ========================================================================= // Real startup code. We jump here from the reset vector to set up the world. .globl start start: - + #if defined(CYG_HAL_STARTUP_RAM) && \ !defined(CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS) // If we get restarted, hang here to avoid corrupting memory @@ -532,6 +535,9 @@ 10: str r4,[r3] #endif +// TEMP + mov r0,v6 +// TEMP bl hal_IRQ_handler // determine interrupt source mov v1,r0 // returned vector # @@ -634,6 +640,7 @@ hal_interrupt_stack_call_pending_DSRs: ldmfd sp!,{r4,r5,pc} // return #endif // CYGIMP_HAL_COMMON_INTERRUPTS_USE_INTERRUPT_STACK + // Dummy functions
