kernel: remove old kernel support in v2 code

Change-Id: I3675ff42c9742664351975294f61b920995f0c3a
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2016-11-07 10:29:53 -08:00
commit e51c4c2989
4 changed files with 1 additions and 12 deletions

View file

@ -24,13 +24,12 @@
#include <nano_private.h>
#ifdef CONFIG_KERNEL_V2
/*
* Define _k_neg_eagain for use in assembly files as errno.h is
* not assembly language safe.
* FIXME: wastes 4 bytes
*/
const int _k_neg_eagain = -EAGAIN;
#endif
#ifdef CONFIG_ERRNO
int *_get_errno(void)

View file

@ -25,10 +25,8 @@
#ifndef _NANO_INTERNAL__H_
#define _NANO_INTERNAL__H_
#ifdef CONFIG_KERNEL_V2
#define K_NUM_PRIORITIES \
(CONFIG_NUM_COOP_PRIORITIES + CONFIG_NUM_PREEMPT_PRIORITIES + 1)
#endif
#ifndef _ASMLANGUAGE

View file

@ -20,11 +20,8 @@
#define _kernel_nanokernel_include_wait_q__h_
#include <nano_private.h>
#ifdef CONFIG_KERNEL_V2
#include <misc/dlist.h>
#include <ksched.h>
#endif
#ifdef __cplusplus
extern "C" {

View file

@ -130,13 +130,8 @@ void _sys_k_event_logger_context_switch(void)
ARRAY_SIZE(data));
}
#ifdef CONFIG_KERNEL_V2
#define ASSERT_CURRENT_IS_COOP_THREAD() \
__ASSERT(_current.prio < 0, "must be a coop thread")
#else
#define ASSERT_CURRENT_IS_COOP_THREAD() \
__ASSERT(_nanokernel.current->flags & FIBER, "must be a fiber")
#endif
void sys_k_event_logger_register_as_collector(void)
{