Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Questions regarding the necessity of ecall functions inside snake.edl #2

Open
AlexYaoRuihao opened this issue Aug 3, 2021 · 1 comment

Comments

@AlexYaoRuihao
Copy link

Hello! @djwessel I was reading the snake source code and had a questions regarding the ecall functions inside snake.edl. So in the main.cpp, which is the untrusted app gateway, located at /snake the only ECALL entry point is public void ecall_start_game(); I was wondering if it's necessary to write all other ecall functions like void ecall_speed_up([in, out] struct screen_t* screen, [in, out] struct snake_t* snake);, void ecall_setup_level_on_start([in, out] struct screen_t* screen, [in, out] struct snake_t* snake);, etc inside edl file as we are not really calling them from the untrusted application. They are more sort of like helper functions on the trusted part. Please correct me if I'm wrong. Any response is appreciated!

@djwessel
Copy link
Owner

djwessel commented Aug 6, 2021

Hey @AlexYaoRuihao, to be honest, it has been a long time since I worked on this project, and it was just a part of a course in university. I haven't really worked with SGX since, so I don't think it would be fair for me to give you a potentially wrong answer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants