2012-12-08 02:15:04 +01:00
|
|
|
/*
|
|
|
|
* Utility functions needed for (some) EABI conformant tool chains.
|
|
|
|
*
|
|
|
|
* (C) Copyright 2009 Wolfgang Denk <wd@denx.de>
|
|
|
|
*
|
|
|
|
* This program is Free Software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*/
|
|
|
|
|
2015-07-08 23:18:11 +02:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <string.h>
|
2013-02-06 10:48:20 +01:00
|
|
|
#include <console/console.h>
|
2012-12-08 02:15:04 +01:00
|
|
|
|
|
|
|
/* FIXME(dhendrix): prototypes added for assembler */
|
2013-09-10 20:02:58 +02:00
|
|
|
int raise (int signum) __attribute__((used));
|
2012-12-08 02:15:04 +01:00
|
|
|
int raise (int signum)
|
|
|
|
{
|
2013-02-06 10:48:20 +01:00
|
|
|
printk(BIOS_CRIT, "raise: Signal # %d caught\n", signum);
|
2012-12-08 02:15:04 +01:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Dummy function to avoid linker complaints */
|
2013-09-10 20:02:58 +02:00
|
|
|
void __aeabi_unwind_cpp_pr0(void) __attribute__((used));
|
2012-12-08 02:15:04 +01:00
|
|
|
void __aeabi_unwind_cpp_pr0(void)
|
|
|
|
{
|
2015-07-08 23:18:11 +02:00
|
|
|
}
|
2012-12-08 02:15:04 +01:00
|
|
|
|
2013-09-10 20:02:58 +02:00
|
|
|
void __aeabi_unwind_cpp_pr1(void) __attribute__((used));
|
2012-12-08 02:15:04 +01:00
|
|
|
void __aeabi_unwind_cpp_pr1(void)
|
|
|
|
{
|
2015-07-08 23:18:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void __aeabi_memcpy(void *dest, const void *src, size_t n);
|
|
|
|
void __aeabi_memcpy(void *dest, const void *src, size_t n)
|
|
|
|
{
|
|
|
|
(void) memcpy(dest, src, n);
|
|
|
|
}
|
|
|
|
|
|
|
|
void __aeabi_memset(void *dest, size_t n, int c);
|
|
|
|
void __aeabi_memset(void *dest, size_t n, int c)
|
|
|
|
{
|
|
|
|
(void) memset(dest, c, n);
|
|
|
|
}
|