Re: linux segment

2013-06-20 Thread Fan Yang
Hi Baoquan: Thank you for your answer. That is to say the designer use __USER_DS here deliberately to improve the efficiency jump from kernel space to user space? BTW,how can you find this email? I write this email On 10/24/2012. 2013/6/20 Baoquan He > On 10/24/2012 08:04 PM, Fan Yang wrote: >

Re: linux segment

2012-11-02 Thread Tobias Boege
On Tue, 30 Oct 2012, Fan Yang wrote: > 2012/10/29 Mulyadi Santosa > > > Hi Fan... > > > > On Sun, Oct 28, 2012 at 9:02 PM, Fan Yang wrote: > > > > > > [root@shell--box kernel_mod]# dmesg -c > > > ** > > > cs 60 96 > > > ds 7b 123 > > > ss 68 104 > > > es 7b 123 >

Re: linux segment

2012-10-31 Thread Mulyadi Santosa
On Tue, Oct 30, 2012 at 7:44 AM, Fan Yang wrote: > Hi Mulyadi Santosa >I get the same result during the kernel module init and exit. Then I try > to add a syscall to print these registers, and nothing changed. It is > strange. I think you need to observe deeper, something change this. BTW,

Re: linux segment

2012-10-29 Thread Fan Yang
2012/10/29 Mulyadi Santosa > Hi Fan... > > On Sun, Oct 28, 2012 at 9:02 PM, Fan Yang wrote: > > > > [root@shell--box kernel_mod]# dmesg -c > > ** > > cs 60 96 > > ds 7b 123 > > ss 68 104 > > es 7b 123 > > fs d8 216 > > gs e0 224 > > ***

Re: linux segment

2012-10-29 Thread Mulyadi Santosa
Hi Fan... On Sun, Oct 28, 2012 at 9:02 PM, Fan Yang wrote: > > [root@shell--box kernel_mod]# dmesg -c > ** > cs 60 96 > ds 7b 123 > ss 68 104 > es 7b 123 > fs d8 216 > gs e0 224 > ** > > The cs and ds in the kernel space is 60 and 7b

Re: linux segment

2012-10-28 Thread Fan Yang
2012/10/28 Fan Yang > > > 2012/10/27 Jun Hu > >> Can you post out your codes ? >> >> *From:* Fan Yang >> *Sent:* Wednesday, October 24, 2012 8:04 PM >> *To:* kernelnewbies@kernelnewbies.org >> *Subject:* linux segment >> >> Hi all

Re: linux segment

2012-10-28 Thread Fan Yang
2012/10/27 Jun Hu > Can you post out your codes ? > > *From:* Fan Yang > *Sent:* Wednesday, October 24, 2012 8:04 PM > *To:* kernelnewbies@kernelnewbies.org > *Subject:* linux segment > > Hi all: > I print the cs ds and ss register in the user space, and it is

Re: linux segment

2012-10-27 Thread Jun Hu
Can you post out your codes ? From: Fan Yang Sent: Wednesday, October 24, 2012 8:04 PM To: kernelnewbies@kernelnewbies.org Subject: linux segment Hi all: I print the cs ds and ss register in the user space, and it is same as the __USER_CS and __USER_DS which defined in kernel as 73 and

Re: linux segment

2012-10-26 Thread Mulyadi Santosa
On Wed, Oct 24, 2012 at 7:04 PM, Fan Yang wrote: > Hi all: > I print the cs ds and ss register in the user space, and it is same as > the __USER_CS and __USER_DS which defined in kernel as 73 and 7b. In the > kernel __KERNEL_CS and __KERNEL_DS defined as 60 and 68, but when I print > this two

linux segment

2012-10-24 Thread Fan Yang
Hi all: I print the cs ds and ss register in the user space, and it is same as the __USER_CS and __USER_DS which defined in kernel as 73 and 7b. In the kernel __KERNEL_CS and __KERNEL_DS defined as 60 and 68, but when I print this two value in my kernel module, I get 60 and 7b. Why ? It should