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 wr

Re: Boot from hard disk?

2013-02-03 Thread Fan Yang
Hi horseriver: The MBR contain a part of the grub code, because there is not enough space in MBR just 446 byte (I remembered.) to contain the boot loader code. So this code in the MBR must load the other part of the grub ,then the other part of the grub can load the kernel to memery So

Re: If I don't active the page mechanism

2012-11-02 Thread Fan Yang
Inefficiencies for swapping all segment from disk to memory and this way is no use in the Multiprocessor. regards Fan 2012/11/1 Fan Yang > > > > 2012/11/1 Mulyadi Santosa > >> Hi.. >> >> On Wed, Oct 31, 2012 at 9:30 PM, Fan Yang wrote: >> > Hi all: >

Re: If I don't active the page mechanism

2012-11-01 Thread Fan Yang
2012/11/1 Mulyadi Santosa > Hi.. > > On Wed, Oct 31, 2012 at 9:30 PM, Fan Yang wrote: > > Hi all: > > I have a problem, if i don't active the page mechanism just use the > > segment mechanism at the x86 cpu, how can I manage the Multi-tasking? > > mult

If I don't active the page mechanism

2012-10-31 Thread Fan Yang
Hi all: I have a problem, if i don't active the page mechanism just use the segment mechanism at the x86 cpu, how can I manage the Multi-tasking? My view is to use the different base and limit in segment mechanism to divides different task, but this way will cause another problem that is t

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

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

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

Rdefined GDT_ENTRY_DEFAULT_USER_DS

2012-10-23 Thread Fan Yang
Hi all: When I search the macro __USER_DS, I find that the GDT_ENTRY_DEFAULT_USER_DS has been redefined two times in the file arch/x86/asm/segment.h. Is that to compatible with the old kernel version? Thanks Fan ___ Kernelnewbies mailing list Kernel

Re: where are the bug ?

2012-10-20 Thread Fan Yang
2012/10/20 Rohan Puri > > > On Sat, Oct 20, 2012 at 7:35 AM, Fan Yang wrote: > >> >> >> 2012/10/19 Rohan Puri >> >>> >>> >>> On Fri, Oct 19, 2012 at 7:38 PM, Anuz Pratap Singh Tomar < >>> chambilketha...@gmail.com&

Re: where are the bug ?

2012-10-19 Thread Fan Yang
2012/10/19 Rohan Puri > > > On Fri, Oct 19, 2012 at 7:38 PM, Anuz Pratap Singh Tomar < > chambilketha...@gmail.com> wrote: > >> >> >> On Fri, Oct 19, 2012 at 2:46 PM, Fan Yang wrote: >> >>> >>> >>> 2012/10/19 Arun KS &

Re: where are the bug ?

2012-10-19 Thread Fan Yang
2012/10/19 Anuz Pratap Singh Tomar > > > On Fri, Oct 19, 2012 at 2:46 PM, Fan Yang wrote: > >> >> >> 2012/10/19 Arun KS >> > >> > Hi Fan, >> > >> > On Fri, Oct 19, 2012 at 6:50 PM, Fan Yang wrote: >> >> >>

Re: where are the bug ?

2012-10-19 Thread Fan Yang
2012/10/19 Fan Yang > > > 2012/10/19 Arun KS > > > > Hi Fan, > > > > On Fri, Oct 19, 2012 at 6:50 PM, Fan Yang wrote: > >> > >> HI ALL: > >> I just run a module on my machine, but it can't work. When the > module run t

Re: where are the bug ?

2012-10-19 Thread Fan Yang
2012/10/19 Arun KS > > Hi Fan, > > On Fri, Oct 19, 2012 at 6:50 PM, Fan Yang wrote: >> >> HI ALL: >> I just run a module on my machine, but it can't work. When the module run the kernel will painc. I don't know where is wrong. This is my code:

where are the bug ?

2012-10-19 Thread Fan Yang
HI ALL: I just run a module on my machine, but it can't work. When the module run the kernel will painc. I don't know where is wrong. This is my code: 1 #include 2 #include 3 #include 4 #include 5 6 int input = 1; 7 module_param (input, int, S_IRUGO); 8 9 static int __init pr

why the kernel need define ZONE_HIGHEM

2012-10-17 Thread Fan Yang
HI ALL: I don't knowe why the linux designer need to define the ZONE_HIGHEM, and why they defined it 896M. thanks yangfan ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelne

what will happen when the jiffies overflow ?

2012-09-20 Thread Fan Yang
hi all: As far as I known, the var jiffies in the kernel will overflow after 497days as the Hz defined 100. So what waill happen when the jiffies overflow? thanks ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelne

Re:

2012-08-13 Thread Fan Yang
2012/8/13 Vivek Panwar > HI, > > How KGDB works internally or how a gdb stub works internally with source > code for x86_64 arch. Can some one please suggest me the good docs for the > same.I am very new to this so want know whole detailed internally working > procedure for KGDB. > > Thanks > Viv

Re: How can I change cr0 register in redhat system

2012-07-23 Thread Fan Yang
2012/7/23 Ram Tummala > On Jul 23, 2012, at 9:32 AM, Fan Yang wrote: > > > hi all: > >when I change the cr0 register I get a "Segmentation fault (core > dumped)". > >my code is : > > > > > > .data > > .te

How can I change cr0 register in redhat system

2012-07-22 Thread Fan Yang
hi all: when I change the cr0 register I get a "Segmentation fault (core dumped)". my code is : .data .text .global _start _start: movl %eax, %cr0 this code can work well in ubuntu system when I use root to run it. So what can I do to work it in redhat system? t