summaryrefslogtreecommitdiff
path: root/ecos
diff options
context:
space:
mode:
authorsave2007-06-21 14:39:34 +0000
committersave2007-06-21 14:39:34 +0000
commit8ba93ea353c25c89b4ccb0f19d24000837daa8f6 (patch)
treedecff18838337c255c25319c14756894265920ef /ecos
parent115740276ae70c434dada8b7950c9a0cc506f502 (diff)
unmask RTC interrupt at init
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@350 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'ecos')
-rw-r--r--ecos/packages/hal/maximus/arch/current/src/maximus_intr.c25
1 files changed, 3 insertions, 22 deletions
diff --git a/ecos/packages/hal/maximus/arch/current/src/maximus_intr.c b/ecos/packages/hal/maximus/arch/current/src/maximus_intr.c
index 29fe691191..5c7fd0a701 100644
--- a/ecos/packages/hal/maximus/arch/current/src/maximus_intr.c
+++ b/ecos/packages/hal/maximus/arch/current/src/maximus_intr.c
@@ -57,11 +57,10 @@ static void (*maximus_VSR)(void) = (void (*)(void)) 0;
// The current ISR status and mask registers, or rather software
// emulations thereof. These are not static since application-specific
-// VSRs may want to examine/manipulate these. They are also not
-// exported in any header file, forcing people writing such VSRs to
-// know what they are doing.
+// VSRs may want to examine/manipulate these.
volatile cyg_uint32 maximus_pending_isrs = 0;
-volatile cyg_uint32 maximus_masked_isrs = 0xFFFFFFFF;
+// RTC isr (0) is not masked : tick can arrive just after the init procedure
+volatile cyg_uint32 maximus_masked_isrs = 0xFFFFFFFE;
// The vector of interrupt handlers.
typedef struct maximus_isr_handler {
@@ -417,24 +416,6 @@ hal_idle_thread_action(cyg_uint32 loop_count)
{
uint32_t old_isr_register;
-#if 0
-#ifndef CYGIMP_HAL_IDLE_THREAD_SPIN
- cyg_hal_sys__newselect(0,
- (struct cyg_hal_sys_fd_set*) 0,
- (struct cyg_hal_sys_fd_set*) 0,
- (struct cyg_hal_sys_fd_set*) 0,
- (struct cyg_hal_sys_timeval*) 0);
-#endif
-#endif
-
-#if 0
- HAL_DIAG_WRITE_CHAR('I');
- HAL_DIAG_WRITE_CHAR('D');
- HAL_DIAG_WRITE_CHAR('L');
- HAL_DIAG_WRITE_CHAR('E');
- HAL_DIAG_WRITE_CHAR(' ');
-#endif
-
// save IRQ Register
old_isr_register = maximus_pending_isrs;
// call SCI Layer to tell us that we are in IDLE state