source: rtems/c/src/lib/libbsp/powerpc/psim/include/bsp.h @ d34d8692

4.104.114.95
Last change on this file since d34d8692 was d34d8692, checked in by Joel Sherrill <joel.sherrill@…>, on 12/04/07 at 22:22:26

2007-12-04 Joel Sherrill <joel.sherrill@…>

  • include/bsp.h, startup/bspstart.c: Move interrupt_stack_size field from CPU Table to Configuration Table. Eliminate CPU Table from all ports. Delete references to CPU Table in all forms.
  • Property mode set to 100644
File size: 2.0 KB
Line 
1/*  bsp.h
2 *
3 *  This include file contains all Papyrus board IO definitions.
4 *
5 *  Author:     Andrew Bray <andy@i-cubed.co.uk>
6 *
7 *  COPYRIGHT (c) 1995 by i-cubed ltd.
8 *
9 *  To anyone who acknowledges that this file is provided "AS IS"
10 *  without any express or implied warranty:
11 *      permission to use, copy, modify, and distribute this file
12 *      for any purpose is hereby granted without fee, provided that
13 *      the above copyright notice and this notice appears in all
14 *      copies, and that the name of i-cubed limited not be used in
15 *      advertising or publicity pertaining to distribution of the
16 *      software without specific, written prior permission.
17 *      i-cubed limited makes no representations about the suitability
18 *      of this software for any purpose.
19 *
20 *  Derived from c/src/lib/libbsp/no_cpu/no_bsp/include/bsp.h
21 *
22 *  COPYRIGHT (c) 1989-1999.
23 *  On-Line Applications Research Corporation (OAR).
24 *
25 *  The license and distribution terms for this file may be
26 *  found in found in the file LICENSE in this distribution or at
27 *  http://www.rtems.com/license/LICENSE.
28 *
29 *  $Id$
30 */
31
32#ifndef _BSP_H
33#define _BSP_H
34
35#ifdef __cplusplus
36extern "C" {
37#endif
38
39#include <bspopts.h>
40
41#ifdef ASM
42/* Definition of where to store registers in alignment handler */
43#define ALIGN_REGS 0x0140
44
45#else
46#include <rtems.h>
47#include <rtems/console.h>
48#include <libcpu/io.h>
49#include <rtems/clockdrv.h>
50#include <rtems/iosupp.h>
51#include <bsp/vectors.h>
52
53/* Constants */
54
55/*
56 *  Information placed in the linkcmds file.
57 */
58
59extern int   RAM_END;
60extern int   end;        /* last address in the program */
61
62/*
63 *  Device Driver Table Entries
64 */
65
66/*
67 * NOTE: Use the standard Console driver entry
68 */
69
70/*
71 * NOTE: Use the standard Clock driver entry
72 */
73
74#define BSP_Convert_decrementer( _value ) ( (unsigned long long) _value )
75
76/* macros */
77#define Processor_Synchronize() \
78  asm(" eieio ")
79
80/* functions */
81
82void bsp_cleanup( void );
83
84extern rtems_configuration_table BSP_Configuration;     /* owned by BSP */
85
86#endif /* ASM */
87
88#ifdef __cplusplus
89}
90#endif
91
92#endif
Note: See TracBrowser for help on using the repository browser.