ARM Technical Support Knowledge Articles

When would LDRT instruction be used?

Applies to: ARM Architecture and Instruction Sets


This instruction accesses memory as if the access were made by user-mode, even if actually in a privileged mode, and applies the permission check based on the code being "user". This is useful in a kernel where a user-space process passes a pointer to the kernel, and you want to ensure that the user process, not the kernel, had permissions to read the data.

This instruction could be used in a privileged code, such as an exception handler, to test whether an access is possible in thread mode. For example, if a user mode access were aborted, the exception handler may try to correct the problem by changing the memory protection settings. The LDRT could then be used to test whether the access was now possible.

Rate this article

Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential