Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write an assembly language program for ARM Cortex M 3 / 4 to handle Supervisor Call ( SVC ) exception. The program should meet the
Write an assembly language program for ARM Cortex M to handle Supervisor Call SVC exception. The program should meet the following requirements:
The SVC in decimal should be called from an application task running at Thread unprivileged Mode.
Two parameters that is decimal number & should be passed to the SVC handler through R &
R Register.
The SVC number should be determined dynamically by examining the actual SVC instruction in memory.
The SVC exception handler hould set up a stack pointer in SVC mode before handling the exception.
If the SVC number then handler should perform addition of the two passed parameters.
If the SVC number does not match then handler should perform subtraction of the two passed parameters.
Ensure that the program properly handles stack usage and resumes the application task after performing the required operation.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started