comments
This commit is contained in:
parent
7b7c724d28
commit
d01806e236
|
@ -76,9 +76,9 @@ typedef VirtualTimer virtual_timer_t;
|
||||||
* The following obscurantism is a hack to reduce stack usage, maybe even a questionable performance
|
* The following obscurantism is a hack to reduce stack usage, maybe even a questionable performance
|
||||||
* optimization.
|
* optimization.
|
||||||
*
|
*
|
||||||
* rusEfi main processing happends on IRQ so PORT_INT_REQUIRED_STACK has to be pretty large. Problem
|
* rusEfi main processing happens on IRQ so PORT_INT_REQUIRED_STACK has to be pretty large. Problem
|
||||||
* is that PORT_INT_REQUIRED_STACK is included within each user thread stack, thus this large stack multiplies
|
* is that PORT_INT_REQUIRED_STACK is included within each user thread stack, thus this large stack multiplies
|
||||||
* and this consumes a lot of valueable RAM. While forcing the comiler to inline helps to some degree,
|
* and this consumes a lot of valueable RAM. While forcing the compiler to inline helps to some degree,
|
||||||
* it would be even better not to waste stack on passing the parameter.
|
* it would be even better not to waste stack on passing the parameter.
|
||||||
*
|
*
|
||||||
* In the firmware we are using 'extern *Engine' - in the firmware Engine is a signleton
|
* In the firmware we are using 'extern *Engine' - in the firmware Engine is a signleton
|
||||||
|
|
|
@ -41,6 +41,9 @@ typedef int bool_t;
|
||||||
class Engine;
|
class Engine;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see firmware/global.h for explanation
|
||||||
|
*/
|
||||||
#define DECLARE_ENGINE_PARAMETER_F Engine *engine, engine_configuration_s *engineConfiguration, persistent_config_s *config, board_configuration_s *boardConfiguration
|
#define DECLARE_ENGINE_PARAMETER_F Engine *engine, engine_configuration_s *engineConfiguration, persistent_config_s *config, board_configuration_s *boardConfiguration
|
||||||
#define DECLARE_ENGINE_PARAMETER_S , Engine *engine, engine_configuration_s *engineConfiguration, persistent_config_s *config, board_configuration_s *boardConfiguration
|
#define DECLARE_ENGINE_PARAMETER_S , Engine *engine, engine_configuration_s *engineConfiguration, persistent_config_s *config, board_configuration_s *boardConfiguration
|
||||||
#define PASS_ENGINE_PARAMETER_F engine, engineConfiguration, config, boardConfiguration
|
#define PASS_ENGINE_PARAMETER_F engine, engineConfiguration, config, boardConfiguration
|
||||||
|
|
Loading…
Reference in New Issue