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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [hal/] [i386/] [pc/] [current/] [src/] [plf_stub.c] - Blame information for rev 856

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
//=============================================================================
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 Free Software Foundation, 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      
20
// version.                                                                 
21
//
22
// eCos is distributed in the hope that it will be useful, but WITHOUT      
23
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or    
24
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License    
25
// for more details.                                                        
26
//
27
// You should have received a copy of the GNU General Public License        
28
// along with eCos; if not, write to the Free Software Foundation, Inc.,    
29
// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.            
30
//
31
// As a special exception, if other files instantiate templates or use      
32
// macros or inline functions from this file, or you compile this file      
33
// and link it with other works to produce a work based on this file,       
34
// this file does not by itself cause the resulting work to be covered by   
35
// the GNU General Public License. However the source code for this file    
36
// must still be made available in accordance with section (3) of the GNU   
37
// General Public License v2.                                               
38
//
39
// This exception does not invalidate any other reasons why a work based    
40
// on this file might be covered by the GNU General Public License.         
41
// -------------------------------------------                              
42
// ####ECOSGPLCOPYRIGHTEND####                                              
43
//=============================================================================
44
//#####DESCRIPTIONBEGIN####
45
//
46
// Author(s):   gthomas (based on the old ARM/AEB hal_stub.c)
47
// Contributors:gthomas, jskov, pjo, nickg
48
// Date:        1999-02-15
49
// Purpose:     Platform specific code for GDB stub support.
50
//              
51
//####DESCRIPTIONEND####
52
//
53
//=============================================================================
54
 
55
#include <pkgconf/hal.h>
56
 
57
#ifdef CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
58
 
59
#ifdef CYGPKG_REDBOOT
60
#include <pkgconf/redboot.h>
61
#endif
62
 
63
#include <cyg/hal/hal_stub.h>
64
 
65
#include <cyg/hal/hal_io.h>             // HAL IO macros
66
#include <cyg/hal/hal_intr.h>           // HAL interrupt macros
67
 
68
#include <cyg/hal/plf_misc.h>
69
 
70
//-----------------------------------------------------------------------------
71
// Connect our VSR to the exception vectors.
72
 
73
externC void __default_exception_vsr(void);
74
 
75
#if defined(CYGSEM_REDBOOT_BSP_SYSCALLS)
76
externC void __syscall_tramp(void);
77
externC char idtStart[];
78
#endif // CYGSEM_REDBOOT_BSP_SYSCALLS
79
 
80
 
81
void hal_pc_stubs_init(void)
82
{
83
#if defined(CYGSEM_REDBOOT_BSP_SYSCALLS)
84
    cyg_hal_pc_set_idt_entry((CYG_ADDRESS)__syscall_tramp, (short *)(idtStart + (0x80 * 8)));
85
#endif // CYGSEM_REDBOOT_BSP_SYSCALLS
86
}
87
 
88
 
89
//-----------------------------------------------------------------------------
90
 
91
#endif // ifdef CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
92
// 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.