source: rtems/c/src/lib/libbsp/mips/csb350/startup/bspstart.c @ 0c0181d

4.115
Last change on this file since 0c0181d was 0c0181d, checked in by Jennifer Averett <jennifer.averett@…>, on 04/04/12 at 13:39:46

PR 1993 - Convert MIPS to PIC IRQ model

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/**
2 *  @file
3 * 
4 *  This routine starts the application.  It includes application,
5 *  board, and monitor specific initialization and configuration.
6 *  The generic CPU dependent initialization has been performed
7 *  before this routine is invoked.
8 */
9
10/*
11 *  COPYRIGHT (c) 1989-2012.
12 *  On-Line Applications Research Corporation (OAR).
13 *
14 *  The license and distribution terms for this file may be
15 *  found in the file LICENSE in this distribution or at
16 *  http://www.rtems.com/license/LICENSE.
17 *
18 *  $Id$
19 */
20
21#include <string.h>
22
23#include <bsp.h>
24#include <libcpu/au1x00.h>
25#include <libcpu/isr_entries.h>
26#include <bsp/irq-generic.h>
27
28void bsp_start( void );
29
30au1x00_uart_t *uart0 = (au1x00_uart_t *)AU1X00_UART0_ADDR;
31au1x00_uart_t *uart3 = (au1x00_uart_t *)AU1X00_UART3_ADDR;
32
33/*
34 *  bsp_start
35 *
36 *  This routine does the bulk of the system initialization.
37 */
38void bsp_start( void )
39{
40  unsigned int compare = 0;
41
42  mips_set_sr( 0x7f00 );  /* all interrupts unmasked but globally off */
43                          /* depend on the IRC to take care of things */
44  __asm__ volatile ("mtc0 %0, $11\n" :: "r" (compare));
45  bsp_interrupt_initialize();
46}
Note: See TracBrowser for help on using the repository browser.