Move the abort implementation into common so its shared among the libc. As part of this start using the common abort on newlib. Signed-off-by: Kumar Gala <kumar.gala@intel.com>
16 lines
209 B
C
16 lines
209 B
C
/*
|
|
* Copyright (c) 2020 Linaro Limited
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <stdlib.h>
|
|
#include <zephyr/kernel.h>
|
|
|
|
void abort(void)
|
|
{
|
|
printk("abort()\n");
|
|
k_panic();
|
|
CODE_UNREACHABLE;
|
|
}
|