[PATCH] RTEMS: Include missing header and fix stub

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] RTEMS: Include missing header and fix stub

Sebastian Huber-4
Signed-off-by: Sebastian Huber <[hidden email]>
---
 newlib/libc/sys/rtems/crt0.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/newlib/libc/sys/rtems/crt0.c b/newlib/libc/sys/rtems/crt0.c
index 28db7132a..6b8b5f98f 100644
--- a/newlib/libc/sys/rtems/crt0.c
+++ b/newlib/libc/sys/rtems/crt0.c
@@ -13,6 +13,7 @@
 #include <sys/lock.h>
 #include <sys/stat.h>
 #include <sys/uio.h>
+#include <assert.h>
 #include <reent.h>
 #include <signal.h>
 #include <stdlib.h>
@@ -194,7 +195,7 @@ RTEMS_STUB(void *, _malloc_r(struct _reent * r, size_t s), { return 0; })
 RTEMS_STUB(void, _free_r(struct _reent *r, void *p), { })
 
 /* stubs for functions required by libc/stdlib */
-RTEMS_STUB(void, __assert_func(const char *file, int line, const char *failedexpr), { })
+RTEMS_STUB(void, __assert_func(const char *file, int line, const char *func, const char *failedexpr), { })
 
 #if defined(__arm__)
 RTEMS_STUB(void, __aeabi_read_tp(void), { })
--
2.16.4

Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] RTEMS: Include missing header and fix stub

Joel Sherrill
This is OK and RTEMS specific. I will push it.

--joel

On Fri, Mar 13, 2020 at 12:21 PM Sebastian Huber <
[hidden email]> wrote:

> Signed-off-by: Sebastian Huber <[hidden email]>
> ---
>  newlib/libc/sys/rtems/crt0.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/newlib/libc/sys/rtems/crt0.c b/newlib/libc/sys/rtems/crt0.c
> index 28db7132a..6b8b5f98f 100644
> --- a/newlib/libc/sys/rtems/crt0.c
> +++ b/newlib/libc/sys/rtems/crt0.c
> @@ -13,6 +13,7 @@
>  #include <sys/lock.h>
>  #include <sys/stat.h>
>  #include <sys/uio.h>
> +#include <assert.h>
>  #include <reent.h>
>  #include <signal.h>
>  #include <stdlib.h>
> @@ -194,7 +195,7 @@ RTEMS_STUB(void *, _malloc_r(struct _reent * r, size_t
> s), { return 0; })
>  RTEMS_STUB(void, _free_r(struct _reent *r, void *p), { })
>
>  /* stubs for functions required by libc/stdlib */
> -RTEMS_STUB(void, __assert_func(const char *file, int line, const char
> *failedexpr), { })
> +RTEMS_STUB(void, __assert_func(const char *file, int line, const char
> *func, const char *failedexpr), { })
>
>  #if defined(__arm__)
>  RTEMS_STUB(void, __aeabi_read_tp(void), { })
> --
> 2.16.4
>
>