Question

Suppose a user wants to do a system call. Assume that the service routine of this...

Suppose a user wants to do a system call. Assume that the service routine of this system call is at physical address 500.

Suppose the user knows this address of the service routine. So instead of executing a system call, the user simply jumps to this location 500

(by executing “JMP 500”).

Assume that logical and physical addresses are the same and no memory protection is in place, i.e., cpu does not check that this address 500 is beyond the user’s memory space.

Will something go wrong while the service routine executes?

Explain in less than 100 words.

Homework Answers

Answer #1

Here, Few situations may arise. case 1: if their is subroutine or a part of a program to be executed at address 500 and is under the range of physical address capacity(or not used by another program currently in running or rest state), then simply nothing will  happen and program will execute as normal. case 2: The address is out of range. Operating system are their to manage memory ,protect memory, as here there's exists no concept of logical and physical address, our physical address is directly exposed to faulties ie,the system or memory may get corrupt as the JMP 500 instruction will try to access the address which is not part of its executable program range.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
QUESTION 1 Convert the following code fragment to assembly code fragment, using instructions discussed in class....
QUESTION 1 Convert the following code fragment to assembly code fragment, using instructions discussed in class. if X > Y then Y=X else X=Y 2 QUESTION Suppose a user wants to do a system call. Assume that the service routine of this system call is at physical address 500. Suppose the user knows this address of the service routine. So instead of executing a system call, the user simply jumps to this location 500 (by executing “JMP 500”). Assume that...
ISR (interrupt service routine) can be used with Time Capture to record event times. Assume that...
ISR (interrupt service routine) can be used with Time Capture to record event times. Assume that the ISR merely reads the time value from the Capture Register and then saves it to memory, and each execution of the ISR takes 50 CPU clock cycles (including the overhead of CPU stacking and unstacking). The CPU clock rate is 50 MHz. a. [5 pts] If the frequency of the events is 1 KHz and 100 KHz, respectively, what percentage of CPU time...
The Business Case for Agility “The battle is not always to the strongest, nor the race...
The Business Case for Agility “The battle is not always to the strongest, nor the race to the swiftest, but that’s the way to bet ’em!”  —C. Morgan Cofer In This Chapter This chapter discusses the business case for Agility, presenting six benefits for teams and the enterprise. It also describes a financial model that shows why incremental development works. Takeaways Agility is not just about the team. There are product-management, project-management, and technical issues beyond the team’s control. Lean-Agile provides...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT