source: rtems/cpukit/score/cpu/i960/cpu.c @ bc85fd5a

4.104.114.84.95
Last change on this file since bc85fd5a was bc85fd5a, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 11, 2000 at 7:31:04 PM

Reworked score/cpu/i960 so it can be safely compiled multilib. All
routines and structures that require CPU model specific information
are now in libcpu. This required significant rework of the
score/cpu header files and the creation of multiple header files
and subdirectories in libcpu/i960.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/*
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 *  $Id$
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
29void _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 
44unsigned32 _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
68void _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}
Note: See TracBrowser for help on using the repository browser.