mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-31 15:38:40 -04:00
Style: Revert uncrustify for portable directories (#122)
* Style: revert uncrustify portable directories * Style: Uncrustify Some Portable files Co-authored-by: Alfred Gedeon <gedeonag@amazon.com>
This commit is contained in:
parent
a6da1cd0ce
commit
86653e2a1f
273 changed files with 64802 additions and 65931 deletions
|
@ -240,6 +240,7 @@ static void prvTaskExitError( void )
|
|||
|
||||
__asm void vPortSVCHandler( void )
|
||||
{
|
||||
/* *INDENT-OFF* */
|
||||
PRESERVE8
|
||||
|
||||
/* Get the location of the current TCB. */
|
||||
|
@ -255,16 +256,18 @@ __asm void vPortSVCHandler( void )
|
|||
mov r0, # 0
|
||||
msr basepri, r0
|
||||
bx r14
|
||||
/* *INDENT-ON* */
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
__asm void prvStartFirstTask( void )
|
||||
{
|
||||
/* *INDENT-OFF* */
|
||||
PRESERVE8
|
||||
|
||||
/* Use the NVIC offset register to locate the stack. */
|
||||
ldr r0, = 0xE000ED08
|
||||
ldr r0, [ r0 ]
|
||||
ldr r0, =0xE000ED08
|
||||
ldr r0, [ r0 ]
|
||||
ldr r0, [ r0 ]
|
||||
/* Set the msp back to the start of the stack. */
|
||||
msr msp, r0
|
||||
|
@ -273,7 +276,7 @@ __asm void prvStartFirstTask( void )
|
|||
* before the scheduler was started - which would otherwise result in the
|
||||
* unnecessary leaving of space in the SVC stack for lazy saving of FPU
|
||||
* registers. */
|
||||
mov r0, # 0
|
||||
mov r0, #0
|
||||
msr control, r0
|
||||
/* Globally enable interrupts. */
|
||||
cpsie i
|
||||
|
@ -281,25 +284,28 @@ __asm void prvStartFirstTask( void )
|
|||
dsb
|
||||
isb
|
||||
/* Call SVC to start the first task. */
|
||||
svc 0
|
||||
svc 0
|
||||
nop
|
||||
nop
|
||||
nop
|
||||
/* *INDENT-ON* */
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
__asm void prvEnableVFP( void )
|
||||
{
|
||||
/* *INDENT-OFF* */
|
||||
PRESERVE8
|
||||
|
||||
/* The FPU enable bits are in the CPACR. */
|
||||
ldr.w r0, = 0xE000ED88
|
||||
ldr r1, [ r0 ]
|
||||
ldr.w r0, =0xE000ED88
|
||||
ldr r1, [ r0 ]
|
||||
|
||||
/* Enable CP10 and CP11 coprocessors, then save back. */
|
||||
orr r1, r1, # ( 0xf << 20 )
|
||||
str r1, [ r0 ]
|
||||
bx r14
|
||||
nop
|
||||
/* *INDENT-ON* */
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
@ -453,16 +459,17 @@ __asm void xPortPendSVHandler( void )
|
|||
extern pxCurrentTCB;
|
||||
extern vTaskSwitchContext;
|
||||
|
||||
/* *INDENT-OFF* */
|
||||
PRESERVE8
|
||||
|
||||
mrs r0, psp
|
||||
isb
|
||||
/* Get the location of the current TCB. */
|
||||
ldr r3, = pxCurrentTCB
|
||||
ldr r2, [ r3 ]
|
||||
ldr r3, =pxCurrentTCB
|
||||
ldr r2, [ r3 ]
|
||||
|
||||
/* Is the task using the FPU context? If so, push high vfp registers. */
|
||||
tst r14, # 0x10
|
||||
tst r14, #0x10
|
||||
it eq
|
||||
vstmdbeq r0 !, {
|
||||
s16 - s31
|
||||
|
@ -508,7 +515,7 @@ __asm void xPortPendSVHandler( void )
|
|||
}
|
||||
|
||||
msr psp, r0
|
||||
isb
|
||||
isb
|
||||
#ifdef WORKAROUND_PMU_CM001 /* XMC4000 specific errata */
|
||||
#if WORKAROUND_PMU_CM001 == 1
|
||||
push {
|
||||
|
@ -522,6 +529,7 @@ __asm void xPortPendSVHandler( void )
|
|||
#endif
|
||||
|
||||
bx r14
|
||||
/* *INDENT-ON* */
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
@ -749,10 +757,12 @@ void xPortSysTickHandler( void )
|
|||
|
||||
__asm uint32_t vPortGetIPSR( void )
|
||||
{
|
||||
/* *INDENT-OFF* */
|
||||
PRESERVE8
|
||||
|
||||
mrs r0, ipsr
|
||||
bx r14
|
||||
/* *INDENT-ON* */
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue