Re: rep instruction without ecx's control

2010-08-20 Thread arshad hussain
On Fri, Aug 20, 2010 at 8:16 AM, Parmenides mobile.parmeni...@gmail.com wrote: Hi, In the following code, the nop instruction prefixed by rep will execute several times. How many times the instruction executes  is controlled by ecx register. But, there is no explicit setting of ecx Looks

Re: is this page any more relevant

2010-08-20 Thread Anuz Pratap Singh Tomar
On Fri, Aug 20, 2010 at 10:48 AM, Michael Blizek mic...@michaelblizek.twilightparadox.com wrote: Hi! On 15:37 Thu 19 Aug , Anuz Pratap Singh Tomar wrote: Hi all, I came across this page about possible security exploit in kernel modules. This page is very old(circa 1999), but it

Re: Linux and Android

2010-08-20 Thread Tony Miller
I have read a few articles that suggest that they are actually quite different. http://mjg59.livejournal.com/100221.html On Thu, Aug 19, 2010 at 1:24 AM, Ryan Moore dogen.grow...@gmail.com wrote: On Thu, Aug 19, 2010 at 12:01 AM, Ashok Sharma ak...@yahoo.co.uk wrote: Hi, May I know about

Re: linux/module.h does not exist

2010-08-20 Thread Tapas Mishra
Hi Dave I could not understand your reply. -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ

Re: Linux and Android

2010-08-20 Thread Wouter Simons
On 08/20/2010 08:40 AM, Tony Miller wrote: I have read a few articles that suggest that they are actually quite different. http://mjg59.livejournal.com/100221.html Well, the article starts by saying two things: 1. I was not hired and may be bitter 2. Android is a Linux Kernel What is true is

Re: linux/module.h does not exist

2010-08-20 Thread Wouter Simons
On 08/20/2010 01:53 AM, Tapas Mishra wrote: Ok I looked at man page of gcc and searched for DMODULE D__KERNEL and DLINUX got following Pattern not found (press RETURN) GCC does not have information about compiling the kernel. The information that you were suggested to read it how to

Re: linux/module.h does not exist

2010-08-20 Thread Mulyadi Santosa
On Fri, Aug 20, 2010 at 15:29, Wouter Simons l...@woutersimons.org wrote: Your compiler should be told where to find the header files that are in the kernel sources. Which is exactly I suggest Tapas to check the -I (i capital, no el) :) -- regards, Mulyadi Santosa Freelance Linux trainer and

Re: Linux and Android

2010-08-20 Thread Bill Traynor
On 8/19/10 2:01 AM, Ashok Sharma wrote: Hi, May I know about any Tutorial links about relationship between Linux and Android Kernels There are many good resources here: http://elinux.org/Android_Portal Best Sharma

Re: linux/module.h does not exist

2010-08-20 Thread Tapas Mishra
GCC does not have information about compiling the kernel. The information that you were suggested to read it how to configure GCC so it can find the kernel headers. I checked these 2 documents http://www.open-std.org/JTC1/SC22/wg14/www/docs/n1124.pdf

Re: linux/module.h does not exist

2010-08-20 Thread Dave Hylands
Hi Tapas, Replying to all this time... On Fri, Aug 20, 2010 at 12:52 AM, Tapas Mishra wrote: Hi Dave I could not understand your reply. Go back to page 48 of the PDF, and look at the example. And then look at the code you posted. It's missing a line in the spot I indicated. -- Dave Hylands

Re: linux/module.h does not exist

2010-08-20 Thread Tapas Mishra
Yes you were right I had missed one line following. asmlinkage int alt_exit_function(int err_code) I have added this line so the program becomes now #include linux/kernel.h #include sys/syscall.h #include linux/module.h extern void *sys_table[]; asmlinkage int(*main_sys_exit)(int); asmlinkage

Re: linux/module.h does not exist

2010-08-20 Thread Tapas Mishra
Also I did a find on module.h which of them among here should I include? As some one pointed out to use -I flag /usr/src/linux-headers-2.6.28-11-generic/include/linux/module.h /usr/src/linux-headers-2.6.28-11/arch/alpha/include/asm/module.h

Re: linux/module.h does not exist

2010-08-20 Thread Dave Hylands
Hi Tapas, Replying to all this time... On Fri, Aug 20, 2010 at 6:07 PM, Tapas Mishra mightydre...@gmail.com wrote: Also I did a find on module.h which of them among here should I include? This one: /usr/src/linux-headers-2.6.28-11/include/linux/module.h I suspect that you'll also need to add

Re: linux/module.h does not exist

2010-08-20 Thread Tapas Mishra
Ohh Ok now it becomes a bit clear, On Sat, Aug 21, 2010 at 8:51 AM, Dave Hylands dhyla...@gmail.com wrote: This one: /usr/src/linux-headers-2.6.28-11/include/linux/module.h I suspect that you'll also need to add /usr/src//usr/src/linux-headers-2.6.28-11/arch/x86/include/asm to your search

Re: linux/module.h does not exist

2010-08-20 Thread Dave Hylands
Hi Tapas, On Fri, Aug 20, 2010 at 9:34 PM, Tapas Mishra mightydre...@gmail.com wrote: Ohh Ok now it becomes a bit clear, On Sat, Aug 21, 2010 at 8:51 AM, Dave Hylands dhyla...@gmail.com wrote: This one: /usr/src/linux-headers-2.6.28-11/include/linux/module.h I suspect that you'll also

Re: linux/module.h does not exist

2010-08-20 Thread Tapas Mishra
Apart from what you said I notice adding /linux to reduces the errors. So when I tried gcc -I /usr/src/linux-headers-2.6.28-11/arch/x86/include/asm/ -I /usr/src/linux-headers-2.6.28-11/include/linux/ -c sample2.c got less errors sample2.c:3:26: error: linux/module.h: No such file or directory

Re: linux/module.h does not exist

2010-08-20 Thread Dave Hylands
Hi Tapas, On Fri, Aug 20, 2010 at 10:27 PM, Dave Hylands dhyla...@gmail.com wrote: Hi Tapas, On Fri, Aug 20, 2010 at 10:24 PM, Tapas Mishra mightydre...@gmail.com wrote: Ya you were right I tried the following this time gcc -I /usr/src/linux-headers-2.6.28-11/arch/x86/include/asm/ -I

Emacs mode for Kconfig

2010-08-20 Thread Adam Jiang
Hello folks, Is there a tool or style checker for validating Kconfig? When I tried to edit Kconfig file with emacs, ./script/checkstyle.pl complains the format is no valid. How do you config emacs to do correct things? /Adam -- To unsubscribe from this list: send an email with unsubscribe

Re: linux/module.h does not exist

2010-08-20 Thread Dave Hylands
Hi Tapas, On Fri, Aug 20, 2010 at 10:24 PM, Tapas Mishra mightydre...@gmail.com wrote: Ya you were right I tried the following this time gcc -I /usr/src/linux-headers-2.6.28-11/arch/x86/include/asm/ -I /usr/src/linux-headers-2.6.28-11/include/linux/ -c sample2.c Almost there. why did you