-
Alessandro Rubini authored
This commit fixes all copyright notes, using "git blame" as a reference. For simple files I just added a 2-lines boilerplate about being WR and GPL. Some parts I left untouched: trivial-init and related files (unclear to me what this is, and pf-microcode.h is magic binary pfilter values). tools/lm32-etheruart: I don't know what this is and who the author is libsdbfs: this comes from another repo and I'd better not change it sfp_lib.h and hal_shmem.h: I lost track about the origin of this, among the several packages. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
5e844431
check-error.c 1.27 KiB
/*
* This work is part of the White Rabbit project
*
* Copyright (C) 2013 - 2015 CERN (www.cern.ch)
* Author: Alessandro Rubini <rubini@gnudd.com>
*
* Released according to the GNU GPL, version 2 or any later version.
*/
/*
* This file includes stuff we don't want to link, so if it is
* called in error we get a clear error message, rather than a
* "doesn't fit in ram" error
*/
#include <stdio.h>
extern void __you_should_not_call_printf_from_wrpc_sw(void);
extern void __you_should_not_divide_ll_in_wrpc_sw(void);
extern void __please_call_pp_printf_not_mprintf(void);
int mprintf(const char *fmt, ...);
long long __moddi3 (long long A, long long B);
long long __divdi3 (long long A, long long B);
int printf(const char *fmt, ...)
{
__you_should_not_call_printf_from_wrpc_sw();
return 0;
}
int mprintf(const char *fmt, ...)
{
__please_call_pp_printf_not_mprintf();
return 0;
}
#ifdef CONFIG_PPSI /* with ppsi we can avoid libgcc code for division */
/* was used twice in picos_to_ts */
long long __moddi3 (long long A, long long B)
{
__you_should_not_divide_ll_in_wrpc_sw();
return 0;
}
/* was used in set_phase_shift, phase_to_cf_units */
long long __divdi3 (long long A, long long B)
{
__you_should_not_divide_ll_in_wrpc_sw();
return 0;
}
#endif /* config_ppsi */