-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move communication structs / defines into shared headers
- Loading branch information
Showing
36 changed files
with
222 additions
and
225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
#include "keystone-sbi.h" | ||
|
||
struct sbiret sbi_sm_create_enclave(struct keystone_sbi_create_t* args) { | ||
return sbi_ecall(KEYSTONE_SBI_EXT_ID, | ||
return sbi_ecall(SBI_EXT_EXPERIMENTAL_KEYSTONE_ENCLAVE, | ||
SBI_SM_CREATE_ENCLAVE, | ||
(unsigned long) args, 0, 0, 0, 0, 0); | ||
} | ||
|
||
struct sbiret sbi_sm_run_enclave(unsigned long eid) { | ||
return sbi_ecall(KEYSTONE_SBI_EXT_ID, | ||
return sbi_ecall(SBI_EXT_EXPERIMENTAL_KEYSTONE_ENCLAVE, | ||
SBI_SM_RUN_ENCLAVE, | ||
eid, 0, 0, 0, 0, 0); | ||
} | ||
|
||
struct sbiret sbi_sm_destroy_enclave(unsigned long eid) { | ||
return sbi_ecall(KEYSTONE_SBI_EXT_ID, | ||
return sbi_ecall(SBI_EXT_EXPERIMENTAL_KEYSTONE_ENCLAVE, | ||
SBI_SM_DESTROY_ENCLAVE, | ||
eid, 0, 0, 0, 0, 0); | ||
} | ||
|
||
struct sbiret sbi_sm_resume_enclave(unsigned long eid) { | ||
return sbi_ecall(KEYSTONE_SBI_EXT_ID, | ||
return sbi_ecall(SBI_EXT_EXPERIMENTAL_KEYSTONE_ENCLAVE, | ||
SBI_SM_RESUME_ENCLAVE, | ||
eid, 0, 0, 0, 0, 0); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
config BR2_TARGET_KEYSTONE_SM | ||
bool "Keystone security monitor" | ||
select BR2_TARGET_OPENSBI | ||
select BR2_TARGET_OPENSBI | ||
depends on BR2_PACKAGE_HOST_KEYSTONE_SDK | ||
help | ||
Keystone security monitor augmentations | ||
to OpenSBI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
config BR2_PACKAGE_KEYSTONE_DRIVER | ||
bool "Keystone driver" | ||
depends on BR2_PACKAGE_HOST_KEYSTONE_SDK | ||
help | ||
Linux driver for the Keystone TEE system |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
config BR2_PACKAGE_KEYSTONE_RUNTIME | ||
bool "Keystone Eyrie runtime" | ||
depends on BR2_PACKAGE_HOST_KEYSTONE_SDK | ||
help | ||
Eyrie runtime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#ifndef __EYRIE_CALL_H__ | ||
#define __EYRIE_CALL_H__ | ||
|
||
#define RUNTIME_SYSCALL_UNKNOWN 1000 | ||
#define RUNTIME_SYSCALL_OCALL 1001 | ||
#define RUNTIME_SYSCALL_SHAREDCOPY 1002 | ||
#define RUNTIME_SYSCALL_ATTEST_ENCLAVE 1003 | ||
#define RUNTIME_SYSCALL_GET_SEALING_KEY 1004 | ||
#define RUNTIME_SYSCALL_EXIT 1101 | ||
|
||
#endif // __EYRIE_CALL_H__ |
Oops, something went wrong.