Make startup file unix like and add a hardcoded enable for the FPU

This commit is contained in:
Mario Hüttel 2020-06-04 21:20:17 +02:00
parent 76f5a4e9be
commit 6b4029f8c2
1 changed files with 519 additions and 513 deletions

View File

@ -99,6 +99,12 @@ LoopFillZerobss:
//bl __libc_init_array
/* Call the application's entry point.*/
/* Enable FPU hard */
LDR.W R0, =0xE000ED88
LDR R1, [R0]
ORR R1, R1, #(0xF << 20)
STR R1, [R0]
bl main
bx lr
.size Reset_Handler, .-Reset_Handler