Move source files to src/, add Makefile, fix all build and linkage errors, etc.
This commit is contained in:
21
exosphere/src/smc_api.h
Normal file
21
exosphere/src/smc_api.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#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 set_priv_smc_in_progress(void);
|
||||
void clear_priv_smc_in_progress(void);
|
||||
|
||||
uintptr_t get_smc_core012_stack_address(void);
|
||||
uintptr_t get_exception_entry_stack_address(unsigned int core_id);
|
||||
|
||||
void call_smc_handler(unsigned int handler_id, smc_args_t *args);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user