source: rtems/c/src/lib/libbsp/mips/jmr3904/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.5 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 <bsp.h>
22#include <libcpu/isr_entries.h>
23#include <bsp/bootcard.h>
24#include <bsp/irq-generic.h>
25#include <bsp/irq.h>
26#include <bsp/irq-generic.h>
27
28/* Structure filled in by get_mem_info.  Only the size field is
29 * actually used (to clear bss), so the others aren't even filled in.
30 */
31struct s_mem
32{
33  unsigned int size;
34  unsigned int icsize;
35  unsigned int dcsize;
36};
37
38void bsp_start( void );
39void clear_cache( void *address, size_t n );
40void get_mem_info( struct s_mem *mem );
41
42/*
43 *  bsp_start
44 *
45 *  This routine does the bulk of the system initialization.
46 */
47void bsp_start( void )
48{
49  mips_set_sr( 0xff00 );  /* all interrupts unmasked but globally off */
50                          /* depend on the IRC to take care of things */
51  bsp_interrupt_initialize();
52}
53
54/*
55 *  Required routine by some gcc run-times.
56 */
57void clear_cache( void *address, size_t n )
58{
59}
60
61
62void get_mem_info(
63  struct s_mem *mem
64)
65{
66  mem->size = 0x1000000;        /* XXX figure out something here */
67}
Note: See TracBrowser for help on using the repository browser.