mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:32:45 +01:00
cpu: cleanup unused/umimplemented isr stack code
- removed ISR_STACKSIZE define where unused (set to 0) - removed thread_arch_isr_stack_usage(), thread_arch_isr_stack_start(), and/or thread_arch_isr_stack_pointer() where not implemented
This commit is contained in:
parent
383d49412e
commit
9aad0e528f
@ -30,7 +30,6 @@ extern "C" {
|
||||
#define THREAD_EXTRA_STACKSIZE_PRINTF (8192)
|
||||
#define THREAD_EXTRA_STACKSIZE_PRINTF_FLOAT (8192)
|
||||
#define THREAD_STACKSIZE_MINIMUM (8192)
|
||||
#define ISR_STACKSIZE (0)
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -28,25 +28,6 @@ void thread_yield_higher(void)
|
||||
__asm__("svc 0\n");
|
||||
}
|
||||
|
||||
/* This function calculates the ISR_usage */
|
||||
int thread_arch_isr_stack_usage(void)
|
||||
{
|
||||
/* TODO */
|
||||
return -1;
|
||||
}
|
||||
|
||||
void *thread_arch_isr_stack_pointer(void)
|
||||
{
|
||||
/* TODO */
|
||||
return (void *)-1;
|
||||
}
|
||||
|
||||
void *thread_arch_isr_stack_start(void)
|
||||
{
|
||||
/* TODO */
|
||||
return (void *)-1;
|
||||
}
|
||||
|
||||
/*----------------------------------------------------------------------------
|
||||
* Processor specific routine - here for ARM7
|
||||
* sizeof(void*) = sizeof(int)
|
||||
|
@ -41,10 +41,6 @@ extern "C" {
|
||||
#ifndef THREAD_STACKSIZE_IDLE
|
||||
# define THREAD_STACKSIZE_IDLE (128)
|
||||
#endif
|
||||
|
||||
#ifndef ISR_STACKSIZE
|
||||
# define ISR_STACKSIZE (0)
|
||||
#endif
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -40,7 +40,6 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#define THREAD_STACKSIZE_IDLE (128)
|
||||
#define ISR_STACKSIZE (0)
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -40,7 +40,6 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#define THREAD_STACKSIZE_IDLE (128)
|
||||
#define ISR_STACKSIZE (0)
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -223,25 +223,6 @@ void thread_arch_stack_print(void)
|
||||
printf("stack size: %u bytes\n", size);
|
||||
}
|
||||
|
||||
/* This function calculates the ISR_usage */
|
||||
int thread_arch_isr_stack_usage(void)
|
||||
{
|
||||
/* TODO */
|
||||
return -1;
|
||||
}
|
||||
|
||||
void *thread_arch_isr_stack_pointer(void)
|
||||
{
|
||||
/* TODO */
|
||||
return (void *)-1;
|
||||
}
|
||||
|
||||
void *thread_arch_isr_stack_start(void)
|
||||
{
|
||||
/* TODO */
|
||||
return (void *)-1;
|
||||
}
|
||||
|
||||
void thread_arch_start_threading(void) __attribute__((naked));
|
||||
void thread_arch_start_threading(void)
|
||||
{
|
||||
|
@ -51,8 +51,6 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#define THREAD_STACKSIZE_IDLE (160)
|
||||
|
||||
#define ISR_STACKSIZE (0)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
@ -57,8 +57,6 @@ extern "C" {
|
||||
#define THREAD_STACKSIZE_IDLE (512 + THREAD_EXTRA_STACKSIZE_PRINTF)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define ISR_STACKSIZE (0)
|
||||
/** @} */
|
||||
|
||||
|
||||
|
@ -117,26 +117,6 @@ void thread_arch_stack_print(void)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* This function calculates the ISR_usage */
|
||||
int thread_arch_isr_stack_usage(void)
|
||||
{
|
||||
/* TODO */
|
||||
return -1;
|
||||
}
|
||||
|
||||
void *thread_arch_isr_stack_pointer(void)
|
||||
{
|
||||
/* TODO */
|
||||
return (void *)-1;
|
||||
}
|
||||
|
||||
void *thread_arch_isr_stack_start(void)
|
||||
{
|
||||
/* TODO */
|
||||
return (void *)-1;
|
||||
}
|
||||
|
||||
extern void __exception_restore(void);
|
||||
void thread_arch_start_threading(void)
|
||||
{
|
||||
|
@ -58,8 +58,6 @@ extern "C" {
|
||||
#define THREAD_STACKSIZE_IDLE (512 + THREAD_EXTRA_STACKSIZE_PRINTF)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define ISR_STACKSIZE (0)
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -59,8 +59,6 @@ extern "C" {
|
||||
#define THREAD_STACKSIZE_IDLE (512 + THREAD_EXTRA_STACKSIZE_PRINTF)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define ISR_STACKSIZE (0)
|
||||
/** @} */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -52,6 +52,7 @@ void *thread_arch_isr_stack_start(void)
|
||||
return (void *)-1;
|
||||
}
|
||||
|
||||
|
||||
NORETURN void cpu_switch_context_exit(void)
|
||||
{
|
||||
sched_active_thread = sched_threads[0];
|
||||
|
@ -1,25 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2016 Freie Universität Berlin
|
||||
*
|
||||
* This file is subject to the terms and conditions of the GNU Lesser
|
||||
* General Public License v2.1. See the file LICENSE in the top level
|
||||
* directory for more details.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @{
|
||||
*
|
||||
* @file
|
||||
* @author Martine Lenders <mlenders@inf.fu-berlin.de>
|
||||
*/
|
||||
|
||||
#include "arch/thread_arch.h"
|
||||
|
||||
/* This function calculates the ISR_usage */
|
||||
int thread_arch_isr_stack_usage(void)
|
||||
{
|
||||
/* TODO */
|
||||
return -1;
|
||||
}
|
||||
|
||||
/** @} */
|
Loading…
Reference in New Issue
Block a user