forked from Imagelibrary/rtems
i386/smp: Export _CPU_SMP_Prepare_start_multitasking as a function
When it's a macro, a function declaration causes a compiler error due to the macro being expanded. Partial log showing error: https://gist.github.com/AmaanC/ab3521141479aa6f61ea25f5d74ebb4d Closes #3331
This commit is contained in:
committed by
Joel Sherrill
parent
51614c0130
commit
efa0039ee9
@@ -804,6 +804,11 @@ uint32_t _CPU_SMP_Initialize( void )
|
||||
return (uint32_t) imps_probe();
|
||||
}
|
||||
|
||||
void _CPU_SMP_Prepare_start_multitasking( void )
|
||||
{
|
||||
/* Do nothing */
|
||||
}
|
||||
|
||||
bool _CPU_SMP_Start_processor( uint32_t cpu_index )
|
||||
{
|
||||
(void) cpu_index;
|
||||
|
||||
@@ -473,8 +473,7 @@ void _CPU_Context_Initialize(
|
||||
|
||||
void _CPU_SMP_Finalize_initialization( uint32_t cpu_count );
|
||||
|
||||
/* Nothing to do */
|
||||
#define _CPU_SMP_Prepare_start_multitasking() do { } while ( 0 )
|
||||
void _CPU_SMP_Prepare_start_multitasking( void );
|
||||
|
||||
uint32_t _CPU_SMP_Get_current_processor( void );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user