Why not use JALR to return from the interrupt handler?

What will be an ideal response?


We check for interrupts at the end of each instruction execution. Therefore, between enable interrupts and JALR $k0, we may get a new interrupt that will trash $k0 . JALR only saves to the return address register; if there are multiple interrupts then our $ra register will be overwritten and we'll lose our link.

Computer Science & Information Technology

You might also like to view...

Windows offers two types of user accounts.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Form tool is the most common tool for creating forms

Indicate whether the statement is true or false

Computer Science & Information Technology

API stands for ____________________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

A sort on a group of numbers that is sorted from highest to lowest is known as a(n) ________ sort

Fill in the blank(s) with correct word

Computer Science & Information Technology