public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Unprivileged access from GCC on ARM
@ 2020-08-14  8:28 Jiri Dobry
  2020-08-17 19:28 ` Richard Earnshaw
  0 siblings, 1 reply; 2+ messages in thread
From: Jiri Dobry @ 2020-08-14  8:28 UTC (permalink / raw)
  To: gcc-help

Hello,

we need to load/store data from/to the pointer on system privilege
utilizing instruction with user privilege access. ARMs have such
instructions (LDRT/STRT). Is there some chance to force GCC compiler to use
LDRT/STRT instructions instead of usual LDR/STR?
I know that I can use an inline assembly, but I just need to know that I
don't miss some straight way.

Jiri

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Unprivileged access from GCC on ARM
  2020-08-14  8:28 Unprivileged access from GCC on ARM Jiri Dobry
@ 2020-08-17 19:28 ` Richard Earnshaw
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Earnshaw @ 2020-08-17 19:28 UTC (permalink / raw)
  To: Jiri Dobry, gcc-help

On 14/08/2020 09:28, Jiri Dobry via Gcc-help wrote:
> Hello,
> 
> we need to load/store data from/to the pointer on system privilege
> utilizing instruction with user privilege access. ARMs have such
> instructions (LDRT/STRT). Is there some chance to force GCC compiler to use
> LDRT/STRT instructions instead of usual LDR/STR?
> I know that I can use an inline assembly, but I just need to know that I
> don't miss some straight way.
> 
> Jiri
> 

Sorry, there's no way to do this.  You wouldn't want all access to use
LRDT anyway.

R.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-08-17 19:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-14  8:28 Unprivileged access from GCC on ARM Jiri Dobry
2020-08-17 19:28 ` Richard Earnshaw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).