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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [score/] [cpu/] [i960/] [cpu.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
/*
2
 *  Intel i960CA Dependent Source
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
 *  cpu.c,v 1.15 2000/07/11 19:31:03 joel Exp
13
 */
14
 
15
#include <rtems/system.h>
16
#include <rtems/score/isr.h>
17
 
18
/*  _CPU_Initialize
19
 *
20
 *  This routine performs processor dependent initialization.
21
 *
22
 *  INPUT PARAMETERS:
23
 *    cpu_table       - CPU table to initialize
24
 *    thread_dispatch - address of disptaching routine
25
 *
26
 *  OUTPUT PARAMETERS: NONE
27
 */
28
 
29
void _CPU_Initialize(
30
  rtems_cpu_table  *cpu_table,
31
  void      (*thread_dispatch)      /* ignored on this CPU */
32
)
33
{
34
 
35
  _CPU_Table = *cpu_table;
36
 
37
}
38
 
39
/*PAGE
40
 *
41
 *  _CPU_ISR_Get_level
42
 */
43
 
44
unsigned32 _CPU_ISR_Get_level( void )
45
{
46
  unsigned32 level;
47
 
48
  i960_get_interrupt_level( level );
49
 
50
  return level;
51
}
52
 
53
/*PAGE
54
 *
55
 *  _CPU__ISR_install_vector
56
 *
57
 *  Install the RTEMS vector wrapper in the CPU's interrupt table.
58
 *
59
 *  Input parameters:
60
 *    vector      - interrupt vector number
61
 *    old_handler - former ISR for this vector number
62
 *    new_handler - replacement ISR for this vector number
63
 *
64
 *  Output parameters:  NONE
65
 *
66
 */
67
 
68
void _CPU_ISR_install_vector(
69
  unsigned32  vector,
70
  proc_ptr    new_handler,
71
  proc_ptr   *old_handler
72
)
73
{
74
  proc_ptr ignored;
75
 
76
  *old_handler = _ISR_Vector_table[ vector ];
77
 
78
  _CPU_ISR_install_raw_handler( vector, _ISR_Handler, &ignored );
79
 
80
  _ISR_Vector_table[ vector ] = new_handler;
81
}

powered by: WebSVN 2.1.0

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