즉, 내가 원하는 Tock OS식 보안 체계를 구현하기 위해서는 svc를 통해 user mode에서 kernel mode로 진입하는 것이 필수이므로 이 기능을 내 프로젝트에 가져와야 한다.
How??
User Request
유저 어플리케이션에서 커널 privileges를 필요로 하는 오퍼레이션을 요청한다.
SVC Instruction occur
해당 앱에서 'SVC number'를 포함한, 그래서 이게 SVC instruction임을 알 수 있는 명령어를 실행한다.
Mode switch from User mode to Kernel mode.
Kernel Handler
Control is transferred to the operating system's SVC handler or system call handler.
Service Execution:
The kernel handler uses the SVC number to determine the requested service and performs the operation on behalf of the application.
Return to User Mode:
After completing the task, the kernel returns control to the user application, which resumes execution in user mode.