unified: Remove k_thread_abort_handler() support

The new kernel doesn't support the thread abort handler concept,
so only the legacy API for this capability is needed.

Change-Id: Ie809092e73b784504c3d298911d216bed8dd8993
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
This commit is contained in:
Allan Stephens 2016-10-25 08:54:28 -05:00 committed by Andrew Boie
parent 749d153afa
commit e262615280
3 changed files with 4 additions and 3 deletions

View file

@ -250,7 +250,6 @@ extern void k_thread_priority_set(k_tid_t thread, int prio);
extern void k_thread_suspend(k_tid_t thread);
extern void k_thread_resume(k_tid_t thread);
extern void k_thread_abort_handler_set(void (*handler)(void));
extern void k_sched_time_slice_set(int32_t slice, int prio);

View file

@ -156,7 +156,7 @@ extern void _legacy_sleep(int32_t ticks);
#define task_priority_set(task, prio) k_thread_priority_set(task, (int)prio)
#define task_entry_set(task, entry) \
k_thread_entry_set(task, (k_thread_entry_t)entry)
#define task_abort_handler_set k_thread_abort_handler_set
extern void task_abort_handler_set(void (*handler)(void));
/**
* @brief Process an "offload" request

View file

@ -50,7 +50,9 @@ void k_thread_abort(k_tid_t thread)
}
#endif
void k_thread_abort_handler_set(void (*func)(void))
/* legacy API */
void task_abort_handler_set(void (*func)(void))
{
_current->fn_abort = func;
}