Add port_fixed_stack for more builds

This commit is contained in:
Scott Shawcroft 2020-05-15 16:22:33 -07:00
parent 6aaab005c5
commit 3c1469b0a5
No known key found for this signature in database
GPG Key ID: 9349BC7E64B1921E
3 changed files with 13 additions and 1 deletions

View File

@ -318,6 +318,10 @@ void reset_cpu(void) {
reset();
}
supervisor_allocation* port_fixed_stack(void) {
return NULL;
}
extern uint32_t _ld_heap_start, _ld_heap_end, _ld_stack_top, _ld_stack_bottom;
uint32_t *port_stack_get_limit(void) {
return &_ld_heap_start;

View File

@ -185,6 +185,10 @@ uint32_t *port_heap_get_top(void) {
return port_stack_get_top();
}
supervisor_allocation* port_fixed_stack(void) {
return NULL;
}
uint32_t *port_stack_get_limit(void) {
return &_ebss;
}

View File

@ -176,7 +176,7 @@ safe_mode_t port_init(void) {
uint32_t tickstart = HAL_GetTick();
// H7/F7 untested with LSE, so autofail them until above move is done
#if (CPY_STM32F4)
#if (CPY_STM32F4)
bool lse_setupsuccess = true;
#else
bool lse_setupsuccess = false;
@ -281,6 +281,10 @@ uint32_t *port_heap_get_top(void) {
return &_ld_heap_end;
}
supervisor_allocation* port_fixed_stack(void) {
return NULL;
}
uint32_t *port_stack_get_limit(void) {
return &_ld_stack_bottom;
}