mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2026-01-20 16:50:35 -05:00
Cleanup of redundant instructions
Signed-off-by: kar-rahul-aws <karahulx@amazon.com>
This commit is contained in:
parent
d6fff2a530
commit
e4d3814b31
3 changed files with 67 additions and 75 deletions
|
|
@ -83,12 +83,12 @@
|
|||
/*-----------------------------------------------------------*/
|
||||
|
||||
/*
|
||||
* Starts the first task executing. These functions are necessarily written in
|
||||
* assembly code so is implemented in portASM.s.
|
||||
* These functions are necessarily written in assembly code, so are implemented
|
||||
* in portASM.S.
|
||||
*/
|
||||
extern void vPortRestoreTaskContext( void );
|
||||
extern void vPortInitialiseFPSCR( void );
|
||||
extern uint32_t ulReadValueAPSR( void );
|
||||
extern uint32_t ulReadAPSR( void );
|
||||
|
||||
/*
|
||||
* Used to catch tasks that attempt to return from their implementing function.
|
||||
|
|
@ -220,7 +220,7 @@ BaseType_t xPortStartScheduler( void )
|
|||
|
||||
/* Only continue if the CPU is not in User mode. The CPU must be in a
|
||||
* Privileged mode for the scheduler to start. */
|
||||
ulAPSR = ulReadValueAPSR();
|
||||
ulAPSR = ulReadAPSR();
|
||||
|
||||
ulAPSR &= portAPSR_MODE_BITS_MASK;
|
||||
configASSERT( ulAPSR != portAPSR_USER_MODE );
|
||||
|
|
@ -321,4 +321,4 @@ void vPortTaskUsesFPU( void )
|
|||
/* Initialise the floating point status register. */
|
||||
vPortInitialiseFPSCR();
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
/*-----------------------------------------------------------*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue