Skip to content

Commit

Permalink
Support link time optimization in RRF project
Browse files Browse the repository at this point in the history
  • Loading branch information
dc42 committed Mar 14, 2022
1 parent 61128fa commit c00350a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/syscalls.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ int errno;
#endif

extern char _end; // defined by the linker script
extern char _estack;
extern uint32_t _estack;

[[noreturn]] void OutOfMemoryHandler() noexcept; // this must be provided by the client application

const char *sysStackLimit = &_estack - SystemStackSize;
const char *sysStackLimit = (const char*)&_estack - SystemStackSize;

const char *heapLimit = &_estack - SystemStackSize;
const char *heapLimit = (const char*)&_estack - SystemStackSize;
char *heapTop = &_end;

/**
Expand Down

0 comments on commit c00350a

Please sign in to comment.