Basic API for SMC handlers.

This commit is contained in:
Michael Scire
2018-02-17 15:48:34 -08:00
parent 049553aa91
commit 8ea1ac0ecc
2 changed files with 152 additions and 0 deletions

15
exosphere/smc_api.h Normal file
View File

@@ -0,0 +1,15 @@
#ifndef EXOSPHERE_SMC_API_H
#define EXOSPHERE_SMC_API_H
#include <stdint.h>
#define SMC_HANDLER_USER 0
#define SMC_HANDLER_PRIV 1
typedef struct {
uint64_t X[8];
} smc_args_t;
void call_smc_handler(unsigned int handler_id, smc_args_t *args);
#endif