From: "Wang, Baojun" <wangbj@lzu.edu.cn>
To: linuxppc-embedded@ozlabs.org, "Bai Shuwei" <baishuwei@gmail.com>
Subject: Re: ring on PowerPC
Date: Wed, 31 Oct 2007 14:12:34 +0800 [thread overview]
Message-ID: <393873503.24962@eyou.net> (raw)
Message-ID: <200710311412.36584.wangbj@lzu.edu.cn> (raw)
In-Reply-To: <393807697.25590@lzu.edu.cn>
[-- Attachment #1: Type: text/plain, Size: 1122 bytes --]
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
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-10-31 6:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-31 5:05 ring on PowerPC Bai Shuwei
2007-10-31 5:18 ` Grant Likely
2007-10-31 5:36 ` Benjamin Herrenschmidt
[not found] <393807697.25590@lzu.edu.cn>
2007-10-31 6:12 ` Wang, Baojun [this message]
2007-10-31 6:12 ` Wang, Baojun
2007-10-31 7:09 ` Bai Shuwei
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=393873503.24962@eyou.net \
--to=wangbj@lzu.edu.cn \
--cc=baishuwei@gmail.com \
--cc=linuxppc-embedded@ozlabs.org \
/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.