diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-12-13 14:22:16 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-02-04 06:06:30 +0100 |
commit | 07e2eacf8977121ef342e2d3c323ea6c997307b8 (patch) | |
tree | 9a10ef1b299a6d4250b3582e2d8a6349e562b0ed /bsps/include/bsp | |
parent | stackchk: Add RTEMS_SYSINIT_ISR_STACK (diff) | |
download | rtems-07e2eacf8977121ef342e2d3c323ea6c997307b8.tar.bz2 |
bsps: Remove uses of BSP_GET_WORK_AREA_DEBUG
The code covered by BSP_GET_WORK_AREA_DEBUG was basically dead code
since there was no normal way to activate it (e.g. via a BSP
configuration option). A follow up patch will bring back this feature
through a CONFIGURE_VERBOSE_SYSTEM_INITIALIZATION configuration option.
Update #3838.
Diffstat (limited to 'bsps/include/bsp')
-rw-r--r-- | bsps/include/bsp/bootcard.h | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/bsps/include/bsp/bootcard.h b/bsps/include/bsp/bootcard.h index 02feaa47e8..6121ff9ba1 100644 --- a/bsps/include/bsp/bootcard.h +++ b/bsps/include/bsp/bootcard.h @@ -115,42 +115,7 @@ static inline void bsp_work_area_initialize_default( } #endif - /* - * The following may be helpful in debugging what goes wrong when - * you are allocating the Work Area in a new BSP. - */ - #ifdef BSP_GET_WORK_AREA_DEBUG - { - void *sp = __builtin_frame_address(0); - void *end = (char *) area.begin + area.size; - printk( - "work_area_start = 0x%p\n" - "work_area_size = %lu 0x%08lx\n" - "end = 0x%p\n" - "current stack pointer = 0x%p%s\n", - area.begin, - (unsigned long) area.size, /* decimal */ - (unsigned long) area.size, /* hexadecimal */ - end, - sp, - (uintptr_t) sp >= (uintptr_t) area.begin - && (uintptr_t) sp <= (uintptr_t) end ? - " OVERLAPS!" : "" - ); - } - #endif - _Workspace_Handler_initialization(&area, 1, NULL); - - #ifdef BSP_GET_WORK_AREA_DEBUG - printk( - "heap_start = 0x%p\n" - "heap_size = %lu\n", - area.begin, - (unsigned long) area.size - ); - #endif - RTEMS_Malloc_Initialize(&area, 1, NULL); } |