All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Brown <davidb@codeaurora.org>
To: sen wang <wangchendu@gmail.com>
Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: questions about arm trustzone
Date: Mon, 24 Jan 2011 23:49:21 -0800	[thread overview]
Message-ID: <8yad3nlh18e.fsf@huya.qualcomm.com> (raw)
In-Reply-To: <AANLkTi=eCOiP7MrUSG4WRMN0kj_+ZWvZ=z7VYDfkshU_@mail.gmail.com> (sen wang's message of "Tue, 25 Jan 2011 10:15:14 +0800")

On Mon, Jan 24 2011, sen wang wrote:

> we need to build a little os in the secure mode,and run linux in the
> normal world.but, can I use gcc to compile the special instructions like 'smc'.
> which gcc version can work? and where can i find the example code
> switching between the secure and normal worlds?

In the 2.6.38-rc2 kernel, arch/arm/mach-msm/scm.c does this.  I don't
think there is any other code in the kernel, yet.

David

-- 
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.

WARNING: multiple messages have this Message-ID (diff)
From: davidb@codeaurora.org (David Brown)
To: linux-arm-kernel@lists.infradead.org
Subject: questions about arm trustzone
Date: Mon, 24 Jan 2011 23:49:21 -0800	[thread overview]
Message-ID: <8yad3nlh18e.fsf@huya.qualcomm.com> (raw)
In-Reply-To: <AANLkTi=eCOiP7MrUSG4WRMN0kj_+ZWvZ=z7VYDfkshU_@mail.gmail.com> (sen wang's message of "Tue, 25 Jan 2011 10:15:14 +0800")

On Mon, Jan 24 2011, sen wang wrote:

> we need to build a little os in the secure mode,and run linux in the
> normal world.but, can I use gcc to compile the special instructions like 'smc'.
> which gcc version can work? and where can i find the example code
> switching between the secure and normal worlds?

In the 2.6.38-rc2 kernel, arch/arm/mach-msm/scm.c does this.  I don't
think there is any other code in the kernel, yet.

David

-- 
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.

  reply	other threads:[~2011-01-25  7:49 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-25  2:15 questions about arm trustzone sen wang
2011-01-25  2:15 ` sen wang
2011-01-25  7:49 ` David Brown [this message]
2011-01-25  7:49   ` David Brown
2011-01-25  9:19   ` sen wang
2011-01-25  9:19     ` sen wang
2011-01-25 10:26     ` Russell King - ARM Linux
2011-01-25 10:26       ` Russell King - ARM Linux
2011-01-25 11:46       ` Santosh Shilimkar
2011-01-25 11:46         ` Santosh Shilimkar
2011-01-25 12:00         ` Russell King - ARM Linux
2011-01-25 12:00           ` Russell King - ARM Linux
2011-01-25 12:24         ` Dave Martin
2011-01-25 12:24           ` Dave Martin
2011-01-25 12:45           ` Russell King - ARM Linux
2011-01-25 12:45             ` Russell King - ARM Linux
2011-01-25 13:25             ` Dave Martin
2011-01-25 13:25               ` Dave Martin
2011-03-11 13:02         ` shiraz hashim
2011-03-11 13:02           ` shiraz hashim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8yad3nlh18e.fsf@huya.qualcomm.com \
    --to=davidb@codeaurora.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=wangchendu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.