source: rtems/c/src/exec/score/src/isr.c @ e4c07444

4.104.114.84.95
Last change on this file since e4c07444 was 08311cc3, checked in by Joel Sherrill <joel.sherrill@…>, on 11/17/99 at 17:51:34

Updated copyright notice.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*
2 *  ISR Handler
3 *
4 *
5 *  COPYRIGHT (c) 1989-1999.
6 *  On-Line Applications Research Corporation (OAR).
7 *
8 *  The license and distribution terms for this file may be
9 *  found in the file LICENSE in this distribution or at
10 *  http://www.OARcorp.com/rtems/license.html.
11 *
12 *  $Id$
13 */
14
15#include <rtems/system.h>
16#include <rtems/score/isr.h>
17#include <rtems/score/stack.h>
18#include <rtems/score/interr.h>
19#include <rtems/score/wkspace.h>
20
21/*  _ISR_Handler_initialization
22 *
23 *  This routine initializes the ISR handler.
24 *
25 *  Input parameters: NONE
26 *
27 *  Output parameters: NONE
28 */
29
30void _ISR_Handler_initialization( void )
31{
32  _ISR_Signals_to_thread_executing = FALSE;
33
34  _ISR_Nest_level = 0;
35
36#if ( CPU_ALLOCATE_INTERRUPT_STACK == TRUE )
37
38  if ( _CPU_Table.interrupt_stack_size < STACK_MINIMUM_SIZE )
39    _Internal_error_Occurred(
40      INTERNAL_ERROR_CORE,
41      TRUE,
42      INTERNAL_ERROR_INTERRUPT_STACK_TOO_SMALL
43    );
44
45  _CPU_Interrupt_stack_low =
46    _Workspace_Allocate_or_fatal_error( _CPU_Table.interrupt_stack_size );
47
48  _CPU_Interrupt_stack_high = _Addresses_Add_offset(
49    _CPU_Interrupt_stack_low,
50    _CPU_Table.interrupt_stack_size
51  );
52
53#endif
54
55#if ( CPU_HAS_HARDWARE_INTERRUPT_STACK == TRUE )
56  _CPU_Install_interrupt_stack();
57#endif
58
59}
Note: See TracBrowser for help on using the repository browser.