From c0925a0aedc354871939019833aaeb07b867456c Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" Date: Fri, 11 Dec 2020 20:30:14 +1100 Subject: [PATCH] set sections --- .../Source/GCC/gcc_gd32vf103_flashxip.ld | 4 ++-- .../gd32vf103/Common/Source/GCC/startup_gd32vf103.S | 12 +----------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/workspace/TS100/Core/BSP/Pine64/Vendor/SoC/gd32vf103/Board/gd32vf103v_eval/Source/GCC/gcc_gd32vf103_flashxip.ld b/workspace/TS100/Core/BSP/Pine64/Vendor/SoC/gd32vf103/Board/gd32vf103v_eval/Source/GCC/gcc_gd32vf103_flashxip.ld index 88943632..9b6264f8 100644 --- a/workspace/TS100/Core/BSP/Pine64/Vendor/SoC/gd32vf103/Board/gd32vf103v_eval/Source/GCC/gcc_gd32vf103_flashxip.ld +++ b/workspace/TS100/Core/BSP/Pine64/Vendor/SoC/gd32vf103/Board/gd32vf103v_eval/Source/GCC/gcc_gd32vf103_flashxip.ld @@ -258,13 +258,13 @@ SECTIONS { . = ABSOLUTE(__FLASH_END_ADDR__ - 2048); KEEP (*(.logo_page*)) - } > ROM + } > flash .settings_page (NOLOAD) : { . = ABSOLUTE(__FLASH_END_ADDR__ - 1024); KEEP (*(.settings_page*)) - } > ROM + } > flash . = ALIGN(4); PROVIDE( _edata = . ); PROVIDE( edata = . ); diff --git a/workspace/TS100/Core/BSP/Pine64/Vendor/SoC/gd32vf103/Common/Source/GCC/startup_gd32vf103.S b/workspace/TS100/Core/BSP/Pine64/Vendor/SoC/gd32vf103/Common/Source/GCC/startup_gd32vf103.S index 3574ad2c..c1896cfc 100644 --- a/workspace/TS100/Core/BSP/Pine64/Vendor/SoC/gd32vf103/Common/Source/GCC/startup_gd32vf103.S +++ b/workspace/TS100/Core/BSP/Pine64/Vendor/SoC/gd32vf103/Common/Source/GCC/startup_gd32vf103.S @@ -285,12 +285,6 @@ _start0800: /* ===== Startup Stage 2 ===== */ -#ifdef __riscv_flen - /* Enable FPU */ - li t0, MSTATUS_FS - csrs mstatus, t0 - csrw fcsr, x0 -#endif /* Enable mcycle and minstret counter */ csrci CSR_MCOUNTINHIBIT, 0x5 @@ -356,12 +350,8 @@ _start0800: li a0, 0 li a1, 0 -#ifdef RTOS_RTTHREAD - // Call entry function when using RT-Thread - call entry -#else call main -#endif + /* do post-main steps after main */ call _postmain_fini