source: rtems/c/src/lib/libbsp/powerpc/shared/startup/pretaskinghook.c @ c0e00eb7

4.104.115
Last change on this file since c0e00eb7 was db77b92, checked in by Joel Sherrill <joel.sherrill@…>, on 09/15/08 at 22:05:19

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

  • shared/startup/bspstart.c, shared/startup/pretaskinghook.c: Add use of bsp_get_work_area() in its own file and rely on BSP Framework to perform more initialization.
  • shared/startup/bspgetworkarea.c: New file.
  • Property mode set to 100644
File size: 1.4 KB
Line 
1/*
2 *  bsp_pretasking_hook().
3 *  Initializes the heap, libc and VME.
4 *
5 *  COPYRIGHT (c) 1989-1998.
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.rtems.com/license/LICENSE.
11 *
12 *  Modified to support the MCP750.
13 *  Modifications Copyright (C) 1999 Eric Valette. valette@crf.canon.fr
14 *
15 *  $Id$
16 */
17
18#include <string.h>
19
20#include <bsp.h>
21#ifndef BSP_HAS_NO_VME
22#include <bsp/VME.h>
23#endif
24
25#ifdef SHOW_MORE_INIT_SETTINGS
26#include <rtems/bspIo.h>
27#endif
28
29#include <rtems/malloc.h>
30
31/*
32 *  bsp_pretasking_hook
33 *
34 *  Description:
35 *      BSP pretasking hook.  Called just before drivers are initialized.
36 *
37 *  NOTES:
38 *      Must not use libc (to do io) from here, since drivers are
39 *      not yet initialized.
40 *
41 */
42
43void bsp_pretasking_hook(void)
44{
45  /* Note that VME support may be omitted also by
46   * providing a no-op  BSP_vme_config routine
47   */
48#ifndef BSP_HAS_NO_VME
49  /*
50   * Initialize VME bridge - needs working PCI
51   * and IRQ subsystems...
52   *
53   * NOTE: vmeUniverse driver now uses shared interrupts.
54   *       this requires malloc/free which are not available
55   *       from bspstart()...
56   */
57#ifdef SHOW_MORE_INIT_SETTINGS
58  printk("Going to initialize VME bridge\n");
59#endif
60  BSP_vme_config();
61#endif
62
63#ifdef SHOW_MORE_INIT_SETTINGS
64  printk("Leaving bsp_pretasking_hook\n");
65#endif
66}
Note: See TracBrowser for help on using the repository browser.