- disable IRQ during board init
git-svn-id: http://moon:8086/svn/mips@152 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
@@ -89,6 +89,9 @@ void board_init(void)
|
||||
{
|
||||
uint32_t volatile *pITIM_ctrl = (uint32_t*)SYS_ITIM_CTRL;
|
||||
|
||||
// Disable interrupts
|
||||
interrupt_global_disable();
|
||||
|
||||
// Disable timers
|
||||
*pITIM_ctrl = 0;
|
||||
|
||||
@@ -103,9 +106,9 @@ void board_init(void)
|
||||
|
||||
// Setup interrupt support
|
||||
interrupt_init();
|
||||
interrupt_global_enable();
|
||||
|
||||
// Do some initializations here
|
||||
|
||||
// Enable interrupts
|
||||
interrupt_global_enable();
|
||||
}
|
||||
|
||||
void dbg_putchar(char c)
|
||||
|
||||
@@ -87,6 +87,9 @@ void board_init(void)
|
||||
{
|
||||
uint32_t volatile *pITIM_ctrl = (uint32_t*)SYS_ITIM_CTRL;
|
||||
|
||||
// Disable interrupts
|
||||
interrupt_global_disable();
|
||||
|
||||
// Disable timers
|
||||
*pITIM_ctrl = 0;
|
||||
|
||||
@@ -101,9 +104,10 @@ void board_init(void)
|
||||
|
||||
// Setup interrupt support
|
||||
interrupt_init();
|
||||
|
||||
// Enable interrupts
|
||||
interrupt_global_enable();
|
||||
|
||||
// Do some initializations here
|
||||
}
|
||||
|
||||
void dbg_putchar(char c)
|
||||
|
||||
@@ -34,6 +34,9 @@ void board_init(void)
|
||||
{
|
||||
uint32_t volatile *pITIM_ctrl = (uint32_t*)SYS_ITIM_CTRL;
|
||||
|
||||
// Disable interrupts
|
||||
interrupt_global_disable();
|
||||
|
||||
// Disable timers
|
||||
*pITIM_ctrl = 0;
|
||||
|
||||
@@ -42,8 +45,8 @@ void board_init(void)
|
||||
|
||||
// Setup interrupt support
|
||||
interrupt_init();
|
||||
|
||||
// Enable interrupts
|
||||
interrupt_global_enable();
|
||||
|
||||
// Do some initializations here
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user