This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM2431: I don't understand why I need to disable interrupts in TRM "7.2.4.1.2.2 Take and Release Spinlock"

Part Number: AM2431

Tool/software:

The TRM refers to spruim2g.pdf.

TRM "7.2.4.1.2.2 Take and Release Spinlock" states "A spinlock should only be held with interrupts disabled."
I would like to know the reason why interrupts must be disabled.

The background is as follows.
The explanation in TRM "7.2.1 Spinlock Overview" states "perform a lock operation of a device resource using a single read-access, avoiding the need of a read-modify write bus transfer that the programmable cores are not capable of."
Even if the read cycle is interrupted midway, the Spinlock module will probably respond to the first read and transition to a locked state.
In that case, I think that the locked state should be output as the read value for the next read (unless it is unlocked without locking).

Therefore, I do not understand why interrupts must be disabled.

Thank you in advance.