2019-04-16 15:42:20 -03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <types.h>
|
|
|
|
|
|
|
|
/*
|
|
|
|
how to run the SYS_Core(Zero){Init,Shutdown} functions:
|
|
|
|
for init:
|
|
|
|
- FIRST run CoreZeroInit ONCE
|
|
|
|
- all cores must run CoreInit ONCE
|
|
|
|
|
|
|
|
for shutdown:
|
|
|
|
- all non-zero cores must call CoreShutdown
|
|
|
|
- core zero must call CoreZeroShutdown, then CoreShutdown
|
|
|
|
*/
|
|
|
|
|
|
|
|
void SYS_CoreZeroInit(void);
|
|
|
|
void SYS_CoreInit(void);
|
|
|
|
|
|
|
|
void SYS_CoreZeroShutdown(void);
|
2019-04-17 11:58:54 -03:00
|
|
|
void __attribute__((noreturn)) SYS_CoreShutdown(void);
|