Skip to content

Commit 8e54579

Browse files
authored
Demo/CORTEX_MPU_M3_MPS2_QEMU_GCC/syscall.c: remove unused g_ulBase (FreeRTOS#1224)
In FreeRTOS/Demo/CORTEX_MPU_M3_MPS2_QEMU_GCC/syscall.c the extern definition of g_ulBase ist not used, so remove it. Also move _heap_bottom and _heap_top to where they are used in syscall.c. Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com>
1 parent 6518cb1 commit 8e54579

File tree

1 file changed

+4
-5
lines changed
  • FreeRTOS/Demo/CORTEX_MPU_M3_MPS2_QEMU_GCC

1 file changed

+4
-5
lines changed

FreeRTOS/Demo/CORTEX_MPU_M3_MPS2_QEMU_GCC/syscall.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,6 @@ typedef struct UART_t
4545
#define UART_CTRL_TX_EN ( 1 << 0 )
4646
#define UART_CTRL_RX_EN ( 1 << 1 )
4747

48-
49-
extern unsigned long _heap_bottom;
50-
extern unsigned long _heap_top;
51-
extern unsigned long g_ulBase;
52-
5348
/**
5449
* @brief initializes the UART emulated hardware
5550
*/
@@ -85,6 +80,9 @@ FILE *const stdout = &__stdio;
8580

8681
#else
8782

83+
extern unsigned long _heap_bottom;
84+
extern unsigned long _heap_top;
85+
8886
static char * heap_end = ( char * ) &_heap_bottom;
8987

9088
/**
@@ -150,6 +148,7 @@ void * _sbrk( int incr )
150148

151149
return prev_heap_end;
152150
}
151+
153152
void _close( int fd )
154153
{
155154
( void ) fd;

0 commit comments

Comments
 (0)