linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Bai Shuwei" <baishuwei@gmail.com>
To: "Wang, Baojun" <wangbj@lzu.edu.cn>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: ring on PowerPC
Date: Wed, 31 Oct 2007 15:09:28 +0800	[thread overview]
Message-ID: <f3566d60710310009g4fb46df2t1f854827561a21ac@mail.gmail.com> (raw)
In-Reply-To: <393873503.24962@eyou.net>

[-- Attachment #1: Type: text/plain, Size: 1208 bytes --]

thanks all

On 10/31/07, Wang, Baojun <wangbj@lzu.edu.cn> wrote:
>
> On Wednesday 31 October 2007 13:05:16, Bai Shuwei wrote:
> > Hi, everyone
> >    As we know, the program on the X86 can run on the differnt ring(0, 1,
> 2,
> > 3) and the linux kernel run in the ring 0 and user program in the ring
> 3.
> > And now I want to know wether there is a simple mechanism on the PowerPC
> > architecture? thx all!
> >
> > best regards!
> >
> > Buroc
>
> powerpc has a machine state register(MSR), bit MSR_PR present the current
> privilege level, if msr & MSR_PR, then it's from user space, otherwise(msr
> &
> MSR_PR == 0) it's kernel space.
>
> besides, the linux implementation only use ring0 and ring3 under i386,
> ring0
> is highest(kernel space), ring3 is lowest (userspace)
>
> Wang
> --
> Wang, Baojun Lanzhou University
> Distributed & Embedded System Lab http://dslab.lzu.edu.cn
> School of Information Science and Engeneering wangbj@lzu.edu.cn
> Tianshui South Road 222. Lanzhou 730000 .P.R.China
> Tel:+86-931-8912025 Fax:+86-931-8912022
>
>


-- 

Add: Tianshui South Road 222, Lanzhou, P.R.China
Tel: +86-931-8912025
Zip Code: 730000
URL: oss.lzu.edu.cn
Email: baishuwei@gmail.com, buroc@126.com

[-- Attachment #2: Type: text/html, Size: 1784 bytes --]

  reply	other threads:[~2007-10-31  7:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <393807697.25590@lzu.edu.cn>
     [not found] ` <200710311412.36584.wangbj@lzu.edu.cn>
2007-10-31  6:12   ` ring on PowerPC Wang, Baojun
2007-10-31  7:09     ` Bai Shuwei [this message]
2007-10-31  5:05 Bai Shuwei
2007-10-31  5:18 ` Grant Likely
2007-10-31  5:36   ` Benjamin Herrenschmidt

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=f3566d60710310009g4fb46df2t1f854827561a21ac@mail.gmail.com \
    --to=baishuwei@gmail.com \
    --cc=linuxppc-embedded@ozlabs.org \
    --cc=wangbj@lzu.edu.cn \
    /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 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 NNTP newsgroup(s).