blob: 72b0a200d739a0be2603752bc8e3fd4dabb5671f [file] [log] [blame]
#ifndef _CPU_H_
#define _CPU_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <seos.h>
#include <stdint.h>
#include <plat/inc/app.h>
void cpuInit(void);
uint64_t cpuIntsOff(void);
uint64_t cpuIntsOn(void);
void cpuIntsRestore(uint64_t state);
/* app loading, unloading & calling */
bool cpuInternalAppLoad(const struct AppHdr *appHdr, struct PlatAppInfo *platInfo);
bool cpuAppLoad(const struct AppHdr *appHdr, struct PlatAppInfo *platInfo);
void cpuAppUnload(const struct AppHdr *appHdr, struct PlatAppInfo *platInfo);
bool cpuAppInit(const struct AppHdr *appHdr, struct PlatAppInfo *platInfo, uint32_t tid);
void cpuAppEnd(const struct AppHdr *appHdr, struct PlatAppInfo *platInfo);
void cpuAppHandle(const struct AppHdr *appHdr, struct PlatAppInfo *platInfo, uint32_t evtType, const void* evtData);
#ifdef __cplusplus
}
#endif
#endif