source: rtems/c/src/lib/libbsp/mips/jmr3904/startup/bspstart.c @ 6a39cd4

4.104.115
Last change on this file since 6a39cd4 was 6a39cd4, checked in by Joel Sherrill <joel.sherrill@…>, on 09/14/08 at 21:38:25

2008-09-14 Joel Sherrill <joel.sherrill@…>

  • Makefile.am, startup/bspstart.c: Split out bsp_get_work_area() into its own file and use BSP Framework to perform more initialization.
  • startup/bspgetworkarea.c: New file.
  • Property mode set to 100644
File size: 1.3 KB
Line 
1/*
2 *  This routine starts the application.  It includes application,
3 *  board, and monitor specific initialization and configuration.
4 *  The generic CPU dependent initialization has been performed
5 *  before this routine is invoked.
6 *
7 *  COPYRIGHT (c) 1989-2008.
8 *  On-Line Applications Research Corporation (OAR).
9 *
10 *  The license and distribution terms for this file may be
11 *  found in the file LICENSE in this distribution or at
12 *  http://www.rtems.com/license/LICENSE.
13 *
14 *  $Id$
15 */
16
17#include <bsp.h>
18#include <bsp/bootcard.h>
19
20/*
21 *  bsp_start
22 *
23 *  This routine does the bulk of the system initialization.
24 */
25
26void bsp_start( void )
27{
28  extern void mips_install_isr_entries(void);
29
30  mips_set_sr( 0xff00 );  /* all interrupts unmasked but globally off */
31                          /* depend on the IRC to take care of things */
32  mips_install_isr_entries();
33}
34
35/*
36 *  Required routine by some gcc run-times.
37 */
38void clear_cache( void *address, size_t n )
39{
40}
41
42/* Structure filled in by get_mem_info.  Only the size field is
43 * actually used (to clear bss), so the others aren't even filled in.
44 */
45
46struct s_mem
47{
48  unsigned int size;
49  unsigned int icsize;
50  unsigned int dcsize;
51};
52
53void
54get_mem_info (mem)
55     struct s_mem *mem;
56{
57  mem->size = 0x1000000;        /* XXX figure out something here */
58}
Note: See TracBrowser for help on using the repository browser.