176 Assembly Language Programming for the 68000 Family
Virtual Address Space
Physical Memory
page frames
Figure 15 Virtual memory mapping.
addresses. The CPU is another matter. Each user must think she has
access to all of the CPU’s capabilities, including user and supervisor states.
However, in order for the virtual machine operating system to maintain
control, the user must always run in user mode. We must be able to fool
a program into thinking that it is running in supervisor mode when it
actually isn’t.
Let’s say that a program is running in the user mode and executes
a privileged instruction. An exception will be generated and the virtual
operating system can take control. It can then verify and simulate the
execution of the privileged instruction. The user program will never know
that the instruction was not executed directly. The one problem that can
not be handled in this manner is the manipulation of the status register,
SR. A user on the 68000 can execute
Comments to this Manuals