OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [hal/] [i386/] [pc/] [v2_0/] [src/] [plf_stub.c] - Blame information for rev 174

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
//=============================================================================
2
//
3
//      plf_stub.c
4
//
5
//      Platform specific code for GDB stub support.
6
//
7
//=============================================================================
8
 
9
// - pjo, 28 sep 1999
10
// - Copied ARM version for use with i386/pc.
11
 
12
//####ECOSGPLCOPYRIGHTBEGIN####
13
// -------------------------------------------
14
// This file is part of eCos, the Embedded Configurable Operating System.
15
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
16
//
17
// eCos is free software; you can redistribute it and/or modify it under
18
// the terms of the GNU General Public License as published by the Free
19
// Software Foundation; either version 2 or (at your option) any later version.
20
//
21
// eCos is distributed in the hope that it will be useful, but WITHOUT ANY
22
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
23
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
24
// for more details.
25
//
26
// You should have received a copy of the GNU General Public License along
27
// with eCos; if not, write to the Free Software Foundation, Inc.,
28
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
29
//
30
// As a special exception, if other files instantiate templates or use macros
31
// or inline functions from this file, or you compile this file and link it
32
// with other works to produce a work based on this file, this file does not
33
// by itself cause the resulting work to be covered by the GNU General Public
34
// License. However the source code for this file must still be made available
35
// in accordance with section (3) of the GNU General Public License.
36
//
37
// This exception does not invalidate any other reasons why a work based on
38
// this file might be covered by the GNU General Public License.
39
//
40
// Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
41
// at http://sources.redhat.com/ecos/ecos-license/
42
// -------------------------------------------
43
//####ECOSGPLCOPYRIGHTEND####
44
//=============================================================================
45
//#####DESCRIPTIONBEGIN####
46
//
47
// Author(s):   gthomas (based on the old ARM/AEB hal_stub.c)
48
// Contributors:gthomas, jskov, pjo, nickg
49
// Date:        1999-02-15
50
// Purpose:     Platform specific code for GDB stub support.
51
//              
52
//####DESCRIPTIONEND####
53
//
54
//=============================================================================
55
 
56
#include <pkgconf/hal.h>
57
 
58
#ifdef CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
59
 
60
#ifdef CYGPKG_REDBOOT
61
#include <pkgconf/redboot.h>
62
#endif
63
 
64
#include <cyg/hal/hal_stub.h>
65
 
66
#include <cyg/hal/hal_io.h>             // HAL IO macros
67
#include <cyg/hal/hal_intr.h>           // HAL interrupt macros
68
 
69
#include <cyg/hal/plf_misc.h>
70
 
71
//-----------------------------------------------------------------------------
72
// Connect our VSR to the exception vectors.
73
 
74
externC void __default_exception_vsr(void);
75
 
76
#if defined(CYGSEM_REDBOOT_BSP_SYSCALLS)
77
externC void __syscall_tramp(void);
78
externC char idtStart[];
79
#endif // CYGSEM_REDBOOT_BSP_SYSCALLS
80
 
81
 
82
void hal_pc_stubs_init(void)
83
{
84
#if defined(CYGSEM_REDBOOT_BSP_SYSCALLS)
85
    cyg_hal_pc_set_idt_entry((CYG_ADDRESS)__syscall_tramp, (short *)(idtStart + (0x80 * 8)));
86
#endif // CYGSEM_REDBOOT_BSP_SYSCALLS
87
}
88
 
89
 
90
//-----------------------------------------------------------------------------
91
 
92
#endif // ifdef CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
93
// End of plf_stub.c

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.