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

4.115
Last change on this file since a052181 was a052181, checked in by Sebastian Huber <sebastian.huber@…>, on 11/14/12 at 08:59:10

score: Add RTEMS_FATAL_SOURCE_EXIT

Include <bsp/default-initial-extension.h> in all BSPs. Call
rtems_fatal() with RTEMS_FATAL_SOURCE_EXIT as source and the exit()
status code as fatal code in every bsp_cleanup(). Move previous
bsp_cleanup() code into bsp_fatal_extension().

  • Property mode set to 100644
File size: 2.1 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 the file LICENSE in this distribution or at
27 *  http://www.rtems.com/license/LICENSE.
28 */
29
30#ifndef _BSP_H
31#define _BSP_H
32
33#ifdef __cplusplus
34extern "C" {
35#endif
36
37#include <bspopts.h>
38
39#define BSP_RESET_BOARD_AT_EXIT 1
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#include <bsp/default-initial-extension.h>
53
54/* Constants */
55
56/*
57 *  Information placed in the linkcmds file.
58 */
59
60extern int   end;        /* last address in the program */
61extern int   RAM_END;
62
63extern uint32_t   BSP_mem_size;
64
65#define BSP_Convert_decrementer( _value ) ( (unsigned long long) _value )
66
67/* macros */
68#define Processor_Synchronize() \
69  __asm__ (" eieio ")
70
71struct rtems_bsdnet_ifconfig;
72
73int
74rtems_ifsim_attach(struct rtems_bsdnet_ifconfig *ifcfg, int attaching);
75
76#define RTEMS_BSP_NETWORK_DRIVER_NAME   "ifsim1"
77#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_ifsim_attach
78
79#endif /* ASM */
80
81#define BSP_HAS_NO_VME
82
83#ifdef __cplusplus
84}
85#endif
86
87#endif
Note: See TracBrowser for help on using the repository browser.