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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [host/] [infra/] [checkdata.cxx] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
//{{{  Banner                                           
2
 
3
//============================================================================
4
//
5
//      checkdata.cxx
6
//
7
//      Host side implementation of the check_func() and check_data()
8
//      utilities.
9
//
10
//============================================================================
11
// ####ECOSHOSTGPLCOPYRIGHTBEGIN####                                        
12
// -------------------------------------------                              
13
// This file is part of the eCos host tools.                                
14
// Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.            
15
//
16
// This program is free software; you can redistribute it and/or modify     
17
// it under the terms of the GNU General Public License as published by     
18
// the Free Software Foundation; either version 2 or (at your option) any   
19
// later version.                                                           
20
//
21
// This program is distributed in the hope that it will be useful, but      
22
// WITHOUT ANY WARRANTY; without even the implied warranty of               
23
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU        
24
// General Public License for more details.                                 
25
//
26
// You should have received a copy of the GNU General Public License        
27
// along with this program; if not, write to the                            
28
// Free Software Foundation, Inc., 51 Franklin Street,                      
29
// Fifth Floor, Boston, MA  02110-1301, USA.                                
30
// -------------------------------------------                              
31
// ####ECOSHOSTGPLCOPYRIGHTEND####                                          
32
//============================================================================
33
//#####DESCRIPTIONBEGIN####
34
//
35
// Author(s):   bartv
36
// Contact(s):  bartv
37
// Date:        1998/12/02
38
// Version:     0.01
39
// Purpose:     To provide a host-side implementation of two of the
40
//              eCos assertion facilities. facilities.
41
//
42
//####DESCRIPTIONEND####
43
//============================================================================
44
 
45
//}}}
46
//{{{  #include's                                       
47
 
48
#include "cyg/infra/cyg_ass.h"
49
 
50
//}}}
51
 
52
// -------------------------------------------------------------------------
53
// It is convenient to have cyg_check_data_ptr() and cyg_check_func_ptr()
54
// in a separate file from cyg_assert_fail(). That way users can override
55
// cyg_assert_fail() itself in application code without losing access to
56
// the check_data and check_func routines.
57
//
58
// The actual implementation is very limited. It might be possible to
59
// do better on specific platforms.
60
 
61
extern "C" cyg_bool
62
cyg_check_data_ptr( void * ptr )
63
{
64
    return 0 != ptr;
65
}
66
 
67
extern "C" cyg_bool
68
cyg_check_func_ptr ( void (*ptr)(void) )
69
{
70
    return 0 != ptr;
71
}

powered by: WebSVN 2.1.0

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