Skip to contentSkip to conversation

ring on PowerPC

DISCUSSION Wang, Baojun 2 participants 2 messages Oct 31, 2007 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

On Wednesday 31 October 2007 13:05:16, Bai Shuwei wrote:

Quoted 9 lines

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

Signature · 5 lines
Wang, Baojun                                        Lanzhou University
Distributed & Embedded System Lab              http://dslab.lzu.edu.cn
School of Information Science and Engeneering        [email protected]
Tianshui South Road 222. Lanzhou 730000                     .P.R.China
Tel:+86-931-8912025                                Fax:+86-931-8912022
#2 lore raw

thanks all

Quoted 32 lines · Baojun

On Wednesday 31 October 2007 13:05:16, Bai Shuwei wrote:

Quoted 2 lines

Hi, everyone
As we know, the program on the X86 can run on the differnt ring(0, 1,

2,

Quoted 1 line

3) and the linux kernel run in the ring 0 and user program in the ring

3.

Quoted 6 lines

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 [email protected] Tianshui South Road 222. Lanzhou 730000 .P.R.China Tel:+86-931-8912025 Fax:+86-931-8912022

Signature · 5 lines
Add: Tianshui South Road 222, Lanzhou, P.R.China
Tel: +86-931-8912025
Zip Code: 730000
URL: oss.lzu.edu.cn
Email: [email protected], [email protected]