linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* ring on PowerPC
@ 2007-10-31  5:05 Bai Shuwei
  2007-10-31  5:18 ` Grant Likely
  0 siblings, 1 reply; 5+ messages in thread
From: Bai Shuwei @ 2007-10-31  5:05 UTC (permalink / raw)
  To: linuxppc-embedded, linuxppc-dev

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

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

-- 

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: 675 bytes --]

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

* Re: ring on PowerPC
  2007-10-31  5:05 ring on PowerPC Bai Shuwei
@ 2007-10-31  5:18 ` Grant Likely
  2007-10-31  5:36   ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 5+ messages in thread
From: Grant Likely @ 2007-10-31  5:18 UTC (permalink / raw)
  To: Bai Shuwei; +Cc: linuxppc-dev, linuxppc-embedded

On 10/30/07, Bai Shuwei <baishuwei@gmail.com> 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!

Powerpc has 2 privilege levels; user and supervisor.  The kernel runs
in supervisor mode, and user-space runs in user mode.

g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195

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

* Re: ring on PowerPC
  2007-10-31  5:18 ` Grant Likely
@ 2007-10-31  5:36   ` Benjamin Herrenschmidt
  0 siblings, 0 replies; 5+ messages in thread
From: Benjamin Herrenschmidt @ 2007-10-31  5:36 UTC (permalink / raw)
  To: Grant Likely; +Cc: linuxppc-dev, linuxppc-embedded


On Tue, 2007-10-30 at 23:18 -0600, Grant Likely wrote:
> On 10/30/07, Bai Shuwei <baishuwei@gmail.com> 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!
> 
> Powerpc has 2 privilege levels; user and supervisor.  The kernel runs
> in supervisor mode, and user-space runs in user mode.

To be complete here, some implementations have 3 :-) Don't forget
hypervisor mode !

Ben.

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

* Re: ring on PowerPC
       [not found] ` <200710311412.36584.wangbj@lzu.edu.cn>
@ 2007-10-31  6:12   ` Wang, Baojun
  2007-10-31  7:09     ` Bai Shuwei
  0 siblings, 1 reply; 5+ messages in thread
From: Wang, Baojun @ 2007-10-31  6:12 UTC (permalink / raw)
  To: linuxppc-embedded, Bai Shuwei

[-- 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 --]

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

* Re: ring on PowerPC
  2007-10-31  6:12   ` Wang, Baojun
@ 2007-10-31  7:09     ` Bai Shuwei
  0 siblings, 0 replies; 5+ messages in thread
From: Bai Shuwei @ 2007-10-31  7:09 UTC (permalink / raw)
  To: Wang, Baojun; +Cc: linuxppc-embedded

[-- 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 --]

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

end of thread, other threads:[~2007-10-31  7:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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>
     [not found] ` <200710311412.36584.wangbj@lzu.edu.cn>
2007-10-31  6:12   ` Wang, Baojun
2007-10-31  7:09     ` Bai Shuwei

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).