1 |
27 |
unneback |
#ifndef __CYGMON_MN10300_BOARD_H__
|
2 |
|
|
#define __CYGMON_MN10300_BOARD_H__
|
3 |
|
|
//==========================================================================
|
4 |
|
|
//
|
5 |
|
|
// board.h
|
6 |
|
|
//
|
7 |
|
|
// Cygmon board/platform configuration file
|
8 |
|
|
//
|
9 |
|
|
//==========================================================================
|
10 |
|
|
//####ECOSGPLCOPYRIGHTBEGIN####
|
11 |
|
|
// -------------------------------------------
|
12 |
|
|
// This file is part of eCos, the Embedded Configurable Operating System.
|
13 |
|
|
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
|
14 |
|
|
//
|
15 |
|
|
// eCos is free software; you can redistribute it and/or modify it under
|
16 |
|
|
// the terms of the GNU General Public License as published by the Free
|
17 |
|
|
// Software Foundation; either version 2 or (at your option) any later version.
|
18 |
|
|
//
|
19 |
|
|
// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
|
20 |
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
21 |
|
|
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
22 |
|
|
// for more details.
|
23 |
|
|
//
|
24 |
|
|
// You should have received a copy of the GNU General Public License along
|
25 |
|
|
// with eCos; if not, write to the Free Software Foundation, Inc.,
|
26 |
|
|
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
|
27 |
|
|
//
|
28 |
|
|
// As a special exception, if other files instantiate templates or use macros
|
29 |
|
|
// or inline functions from this file, or you compile this file and link it
|
30 |
|
|
// with other works to produce a work based on this file, this file does not
|
31 |
|
|
// by itself cause the resulting work to be covered by the GNU General Public
|
32 |
|
|
// License. However the source code for this file must still be made available
|
33 |
|
|
// in accordance with section (3) of the GNU General Public License.
|
34 |
|
|
//
|
35 |
|
|
// This exception does not invalidate any other reasons why a work based on
|
36 |
|
|
// this file might be covered by the GNU General Public License.
|
37 |
|
|
//
|
38 |
|
|
// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
|
39 |
|
|
// at http://sources.redhat.com/ecos/ecos-license/
|
40 |
|
|
// -------------------------------------------
|
41 |
|
|
//####ECOSGPLCOPYRIGHTEND####
|
42 |
|
|
//==========================================================================
|
43 |
|
|
//#####DESCRIPTIONBEGIN####
|
44 |
|
|
//
|
45 |
|
|
// Author(s): dmoseley
|
46 |
|
|
// Contributors: dmoseley
|
47 |
|
|
// Date: 2000-08-11
|
48 |
|
|
// Purpose:
|
49 |
|
|
// Description:
|
50 |
|
|
//
|
51 |
|
|
//
|
52 |
|
|
//####DESCRIPTIONEND####
|
53 |
|
|
//
|
54 |
|
|
//=========================================================================
|
55 |
|
|
// Hardware/platform/configuration specifics
|
56 |
|
|
|
57 |
|
|
// These defines are only necessary for using target_reg union in monitor.h
|
58 |
|
|
// It should be possible to remove that once the HAL integration is complete.
|
59 |
|
|
#if CYGHWR_HAL_MN10300_AM33_REVISION == 2
|
60 |
|
|
#define HAVE_FLOAT_REGS 1
|
61 |
|
|
#else
|
62 |
|
|
#define HAVE_FLOAT_REGS 0
|
63 |
|
|
#endif
|
64 |
|
|
#define HAVE_DOUBLE_REGS 0
|
65 |
|
|
|
66 |
|
|
#define HAVE_CACHE 0
|
67 |
|
|
#define HAVE_USAGE 0
|
68 |
|
|
#define USE_CYGMON_PROTOTYPES 1
|
69 |
|
|
#define NOMAIN 1
|
70 |
|
|
#define CYGMON_SYSTEM_SERVICES 0 // Not used, fall back to BSP/HAL support
|
71 |
|
|
|
72 |
|
|
#ifdef CYGDAT_CYGMON_USE_HELP
|
73 |
|
|
#define USE_HELP 1
|
74 |
|
|
#endif
|
75 |
|
|
|
76 |
|
|
#define USE_ECOS_HAL_EXCEPTIONS
|
77 |
|
|
#define USE_ECOS_HAL_BREAKPOINTS
|
78 |
|
|
#define USE_ECOS_HAL_SINGLESTEP
|
79 |
|
|
#define USE_ECOS_HAL_SAFE_MEMORY
|
80 |
|
|
extern int __read_mem_safe (void *dst, void *src, int count);
|
81 |
|
|
extern int __write_mem_safe (void *src, void *dst, int count);
|
82 |
|
|
|
83 |
|
|
|
84 |
|
|
#include "cpu_info.h"
|
85 |
|
|
extern void bp_print (target_register_t bp_val);
|
86 |
|
|
extern int __set_breakpoint (target_register_t addr);
|
87 |
|
|
extern int __remove_breakpoint (target_register_t addr);
|
88 |
|
|
extern void __install_breakpoint_list (void);
|
89 |
|
|
extern void __clear_breakpoint_list (void);
|
90 |
|
|
extern int __display_breakpoint_list (void (*print_func)(target_register_t));
|
91 |
|
|
|
92 |
|
|
#define bsp_skip_instruction(regs) __skipinst()
|
93 |
|
|
#define install_breakpoints() __install_breakpoints()
|
94 |
|
|
#define add_mon_breakpoint(bpt) __set_breakpoint((bpt).addr)
|
95 |
|
|
#define clear_mon_breakpoint(bpt) __remove_breakpoint((bpt).addr)
|
96 |
|
|
#define show_breakpoints() __display_breakpoint_list(bp_print)
|
97 |
|
|
#define clear_breakpoints() __clear_breakpoint_list()
|
98 |
|
|
|
99 |
|
|
#define bsp_get_signal(exc_nr, regs) __computeSignal(exc_nr)
|
100 |
|
|
#define bsp_get_pc(regs) get_register(PC)
|
101 |
|
|
#define bsp_set_pc(pc, regs) put_register(PC, pc);
|
102 |
|
|
|
103 |
|
|
#endif // __CYGMON_MN10300_BOARD_H__
|