!367 fix:修复Fault异常模块中FPU宏等问题

Merge pull request !367 from kenneth/fpu_simple
This commit is contained in:
openharmony_ci 2021-10-26 06:10:25 +00:00 committed by Gitee
commit 28bf057ded
31 changed files with 9 additions and 30 deletions

View File

@ -195,7 +195,7 @@ _hwiActiveCheck
RBIT R2, R3 RBIT R2, R3
CLZ R2, R2 CLZ R2, R2
AND R12, R12, #1 AND R12, R12, #1
ADD R2, R2, R12, LSL #5 ; calculate R2 (hwi number) as uwPid ADD R2, R2, R12, LSL #5 ; calculate R2 (hwi number) as pid
_ExcInMSP _ExcInMSP
CMP LR, #0xFFFFFFE9 CMP LR, #0xFFFFFFE9

View File

@ -268,7 +268,7 @@ _hwiActiveCheck:
RBIT R2, R3 RBIT R2, R3
CLZ R2, R2 CLZ R2, R2
AND R12, R12, #1 AND R12, R12, #1
ADD R2, R2, R12, LSL #5 // calculate R2 (hwi number) as uwPid ADD R2, R2, R12, LSL #5 // calculate R2 (hwi number) as pid
.fnend .fnend
.type _ExcInMSP, %function .type _ExcInMSP, %function
@ -282,10 +282,7 @@ _ExcInMSP:
PUSH {R3} PUSH {R3}
MRS R12, PRIMASK // store message-->exc: disable int? MRS R12, PRIMASK // store message-->exc: disable int?
PUSH {R4-R12} // store message-->exc: {R4-R12} PUSH {R4-R12} // store message-->exc: {R4-R12}
#if ((defined(__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \
(defined(__FPU_USED) && (__FPU_USED == 1U)))
VPUSH {D8-D15} VPUSH {D8-D15}
#endif
B _handleEntry B _handleEntry
.fnend .fnend
@ -341,10 +338,7 @@ _hwiActiveCheckNext:
MRS R12, PRIMASK MRS R12, PRIMASK
PUSH {R4-R12} PUSH {R4-R12}
#if ((defined(__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \
(defined(__FPU_USED) && (__FPU_USED == 1U)))
VPUSH {D8-D15} VPUSH {D8-D15}
#endif
// copy auto saved task register // copy auto saved task register

View File

@ -252,7 +252,7 @@ _hwiActiveCheck:
RBIT R2, R3 RBIT R2, R3
CLZ R2, R2 CLZ R2, R2
AND R12, R12, #1 AND R12, R12, #1
ADD R2, R2, R12, LSL #5 // calculate R2 (hwi number) as uwPid ADD R2, R2, R12, LSL #5 // calculate R2 (hwi number) as pid
.fnend .fnend
.type _ExcInMSP, %function .type _ExcInMSP, %function
@ -266,10 +266,7 @@ _ExcInMSP:
PUSH {R3} PUSH {R3}
MRS R12, PRIMASK // store message-->exc: disable int? MRS R12, PRIMASK // store message-->exc: disable int?
PUSH {R4-R12} // store message-->exc: {R4-R12} PUSH {R4-R12} // store message-->exc: {R4-R12}
#if ((defined(__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \
(defined(__FPU_USED) && (__FPU_USED == 1U)))
VPUSH {D8-D15} VPUSH {D8-D15}
#endif
B _handleEntry B _handleEntry
.fnend .fnend
@ -325,10 +322,7 @@ _hwiActiveCheckNext:
MRS R12, PRIMASK MRS R12, PRIMASK
PUSH {R4-R12} PUSH {R4-R12}
#if ((defined(__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \
(defined(__FPU_USED) && (__FPU_USED == 1U)))
VPUSH {D8-D15} VPUSH {D8-D15}
#endif
// copy auto saved task register // copy auto saved task register

View File

@ -268,7 +268,7 @@ _hwiActiveCheck:
RBIT R2, R3 RBIT R2, R3
CLZ R2, R2 CLZ R2, R2
AND R12, R12, #1 AND R12, R12, #1
ADD R2, R2, R12, LSL #5 // calculate R2 (hwi number) as uwPid ADD R2, R2, R12, LSL #5 // calculate R2 (hwi number) as pid
.fnend .fnend
.type _ExcInMSP, %function .type _ExcInMSP, %function
@ -282,10 +282,7 @@ _ExcInMSP:
PUSH {R3} PUSH {R3}
MRS R12, PRIMASK // store message-->exc: disable int? MRS R12, PRIMASK // store message-->exc: disable int?
PUSH {R4-R12} // store message-->exc: {R4-R12} PUSH {R4-R12} // store message-->exc: {R4-R12}
#if ((defined(__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \
(defined(__FPU_USED) && (__FPU_USED == 1U)))
VPUSH {D8-D15} VPUSH {D8-D15}
#endif
B _handleEntry B _handleEntry
.fnend .fnend
@ -341,10 +338,7 @@ _hwiActiveCheckNext:
MRS R12, PRIMASK MRS R12, PRIMASK
PUSH {R4-R12} PUSH {R4-R12}
#if ((defined(__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \
(defined(__FPU_USED) && (__FPU_USED == 1U)))
VPUSH {D8-D15} VPUSH {D8-D15}
#endif
// copy auto saved task register // copy auto saved task register

View File

@ -184,7 +184,7 @@ _hwiActiveCheck
RBIT R2, R3 RBIT R2, R3
CLZ R2, R2 CLZ R2, R2
AND R12, R12, #1 AND R12, R12, #1
ADD R2, R2, R12, LSL #5 ; calculate R2 (hwi number) as uwPid ADD R2, R2, R12, LSL #5 ; calculate R2 (hwi number) as pid
_ExcInMSP _ExcInMSP
CMP LR, #0xFFFFFFE9 CMP LR, #0xFFFFFFE9

View File

@ -267,7 +267,7 @@ _hwiActiveCheck:
RBIT R2, R3 RBIT R2, R3
CLZ R2, R2 CLZ R2, R2
AND R12, R12, #1 AND R12, R12, #1
ADD R2, R2, R12, LSL #5 // calculate R2 (hwi number) as uwPid ADD R2, R2, R12, LSL #5 // calculate R2 (hwi number) as pid
.fnend .fnend
.type _ExcInMSP, %function .type _ExcInMSP, %function

View File

@ -195,7 +195,7 @@ _hwiActiveCheck
RBIT R2, R3 RBIT R2, R3
CLZ R2, R2 CLZ R2, R2
AND R12, R12, #1 AND R12, R12, #1
ADD R2, R2, R12, LSL #5 ; calculate R2 (hwi number) as uwPid ADD R2, R2, R12, LSL #5 ; calculate R2 (hwi number) as pid
_ExcInMSP _ExcInMSP
CMP LR, #0xFFFFFFE9 CMP LR, #0xFFFFFFE9

View File

@ -268,7 +268,7 @@ _hwiActiveCheck:
RBIT R2, R3 RBIT R2, R3
CLZ R2, R2 CLZ R2, R2
AND R12, R12, #1 AND R12, R12, #1
ADD R2, R2, R12, LSL #5 // calculate R2 (hwi number) as uwPid ADD R2, R2, R12, LSL #5 // calculate R2 (hwi number) as pid
.fnend .fnend
.type _ExcInMSP, %function .type _ExcInMSP, %function
@ -282,10 +282,7 @@ _ExcInMSP:
PUSH {R3} PUSH {R3}
MRS R12, PRIMASK // store message-->exc: disable int? MRS R12, PRIMASK // store message-->exc: disable int?
PUSH {R4-R12} // store message-->exc: {R4-R12} PUSH {R4-R12} // store message-->exc: {R4-R12}
#if ((defined(__FPU_PRESENT) && (__FPU_PRESENT == 1U)) && \
(defined(__FPU_USED) && (__FPU_USED == 1U)))
VPUSH {D8-D15} VPUSH {D8-D15}
#endif
B _handleEntry B _handleEntry
.fnend .fnend

View File

@ -195,7 +195,7 @@ _hwiActiveCheck
RBIT R2, R3 RBIT R2, R3
CLZ R2, R2 CLZ R2, R2
AND R12, R12, #1 AND R12, R12, #1
ADD R2, R2, R12, LSL #5 ; calculate R2 (hwi number) as uwPid ADD R2, R2, R12, LSL #5 ; calculate R2 (hwi number) as pid
_ExcInMSP _ExcInMSP
CMP LR, #0xFFFFFFE9 CMP LR, #0xFFFFFFE9

0
testsuites/sample/kernel/dynlink/It_los_dynlink.c Normal file → Executable file
View File

0
testsuites/sample/kernel/dynlink/It_los_dynlink.h Normal file → Executable file
View File

0
testsuites/sample/kernel/dynlink/It_los_dynlink_001.c Normal file → Executable file
View File

0
testsuites/sample/kernel/dynlink/It_los_dynlink_002.c Normal file → Executable file
View File

0
testsuites/sample/kernel/dynlink/It_los_dynlink_003.c Normal file → Executable file
View File

0
testsuites/sample/kernel/dynlink/It_los_dynlink_004.c Normal file → Executable file
View File

0
testsuites/sample/kernel/dynlink/It_los_dynlink_005.c Normal file → Executable file
View File

0
testsuites/sample/kernel/dynlink/It_los_dynlink_006.c Normal file → Executable file
View File

0
testsuites/sample/kernel/dynlink/It_los_dynlink_007.c Normal file → Executable file
View File

0
testsuites/sample/kernel/dynlink/It_los_dynlink_008.c Normal file → Executable file
View File

0
testsuites/sample/kernel/dynlink/It_los_dynlink_009.c Normal file → Executable file
View File

0
testsuites/sample/kernel/dynlink/It_los_dynlink_011.c Normal file → Executable file
View File

0
testsuites/sample/kernel/dynlink/It_los_dynlink_012.c Normal file → Executable file
View File

0
testsuites/sample/kernel/dynlink/It_los_dynlink_013.c Normal file → Executable file
View File

0
testsuites/sample/kernel/dynlink/It_los_dynlink_014.c Normal file → Executable file
View File

0
testsuites/sample/kernel/dynlink/It_los_dynlink_015.c Normal file → Executable file
View File

0
testsuites/sample/kernel/dynlink/It_los_dynlink_016.c Normal file → Executable file
View File

0
testsuites/sample/kernel/dynlink/It_los_dynlink_017.c Normal file → Executable file
View File

0
testsuites/sample/kernel/dynlink/It_los_dynlink_018.c Normal file → Executable file
View File

0
testsuites/sample/kernel/dynlink/It_los_dynlink_019.c Normal file → Executable file
View File

0
testsuites/sample/kernel/dynlink/It_los_dynlink_020.c Normal file → Executable file
View File

0
testsuites/sample/kernel/dynlink/lib/shell.sh Normal file → Executable file
View File