OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [score/] [src/] [isr.c] - Blame information for rev 773

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*
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: isr.c,v 1.2 2001-09-27 11:59:34 chris Exp $
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
 
30
void _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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.