During Stage 6, I had to read the following documentation (image attached):
I understand that while the machine is in unprivileged mode, and INT n instruction is called, the machine needs to push the contents of IP register to user stack and then make IP to point to the starting address of the physical memory page corresponding to the particular interrupt handler, so that after the machine switches to privileged mode, the correct instruction(that is stored in the physical memory page corresponding to interrupt n) is executed by the machine.
To do this, the machine will access the IVT(Interrupt Vector Table) even before the INT instruction switches the machine to privileged mode (As reading from the IVT is given as the 2nd thing INT instruction will do and switching is given as the 3rd thing INT instruction will do [The part where this is explained is attached below]).
As far as I understand, only the logical memory pages can be accessed in unprivileged mode. Right? So, I can't understand how the INT instruction manages to read from the physical memory page 0 for accessing the IVT even before it lets the machine to switch to privileged mode. How does INT instruction do this? Can someone explain this to me?