Skip to content
Permalink
Browse files

arch: all: Remove legacy code

The struct _kernel_ach exists only because ARC' s port needed it, in
all other ports this was defined as an empty struct. Turns out that
this struct is not required even for ARC anymore, this is a legacy
code from nanokernel time.

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
  • Loading branch information...
ceolin authored and andrewboie committed Apr 17, 2019
1 parent 13dfeba commit d61c679d43dc2390f2a70c82f96607fb22b6fadf
@@ -162,19 +162,6 @@ struct _callee_saved_stack {

typedef struct _callee_saved_stack _callee_saved_stack_t;

struct _kernel_arch {

char *rirq_sp; /* regular IRQ stack pointer base */

/*
* FIRQ stack pointer is installed once in the second bank's SP, so
* there is no need to track it in _kernel.
*/

};

typedef struct _kernel_arch _kernel_arch_t;

#endif /* _ASMLANGUAGE */

/* stacks */
@@ -55,12 +55,6 @@ typedef struct __esf _esf_t;

#ifndef _ASMLANGUAGE

struct _kernel_arch {
/* empty */
};

typedef struct _kernel_arch _kernel_arch_t;

#endif /* _ASMLANGUAGE */

#ifdef __cplusplus
@@ -47,12 +47,6 @@ extern "C" {

#ifndef _ASMLANGUAGE

struct _kernel_arch {
/* nothing for now */
};

typedef struct _kernel_arch _kernel_arch_t;

extern K_THREAD_STACK_DEFINE(_interrupt_stack, CONFIG_ISR_STACK_SIZE);

#endif /* _ASMLANGUAGE */
@@ -27,12 +27,6 @@ extern "C" {

#ifndef _ASMLANGUAGE

struct _kernel_arch {
/* empty */
};

typedef struct _kernel_arch _kernel_arch_t;

#endif /* _ASMLANGUAGE */

#ifdef __cplusplus
@@ -31,12 +31,6 @@ extern "C" {
#include <misc/dlist.h>
#include <kernel_internal.h>

struct _kernel_arch {
/* nothing for now */
};

typedef struct _kernel_arch _kernel_arch_t;

extern K_THREAD_STACK_DEFINE(_interrupt_stack, CONFIG_ISR_STACK_SIZE);

#endif /* _ASMLANGUAGE */
@@ -413,12 +413,6 @@ extern void z_x86_thread_entry_wrapper(k_thread_entry_t entry,
extern "C" {
#endif


struct _kernel_arch {
};

typedef struct _kernel_arch _kernel_arch_t;

#ifdef __cplusplus
}
#endif
@@ -6,6 +6,4 @@
#ifndef _KERNEL_ARCH_DATA_H
#define _KERNEL_ARCH_DATA_H

struct _kernel_arch { };

#endif /* _KERNEL_ARCH_DATA_H */
@@ -47,11 +47,6 @@ extern "C" {

typedef struct __esf __esf_t;

struct _kernel_arch {
};

typedef struct _kernel_arch _kernel_arch_t;

#endif /*! _ASMLANGUAGE && ! __ASSEMBLER__ */

#ifdef CONFIG_USE_SWITCH
@@ -36,7 +36,6 @@ GEN_OFFSET_SYM(_kernel_t, idle);
#endif

GEN_OFFSET_SYM(_kernel_t, ready_q);
GEN_OFFSET_SYM(_kernel_t, arch);

#ifndef CONFIG_SMP
GEN_OFFSET_SYM(_ready_q_t, cache);
@@ -167,9 +167,6 @@ struct z_kernel {
#if defined(CONFIG_THREAD_MONITOR)
struct k_thread *threads; /* singly linked list of ALL threads */
#endif

/* arch-specific part of _kernel */
struct _kernel_arch arch;
};

typedef struct z_kernel _kernel_t;

0 comments on commit d61c679

Please sign in to comment.
You can’t perform that action at this time.