maybe this article can help u ... http://kerneltrap.org/node/5785 BRs Lin 2009/4/29 Onkar <onkar.n.m@xxxxxxxxx>: > I am getting error in compiling the module , I am trying to print the > contents of page dir. > I have taken this code to be used on i386 m/c. I am running on x86_64 based > machine. > > asm(" mov %%cr3, %%eax \n mov %%eax, %0 " : "=m" (ptdb) :: "ax" ); > > make -C /lib/modules/2.6.18/build M=/home/onkar/kern-mod modules > make[1]: Entering directory `/home/onkar/KERNELS/BUILD/linux-2.6.18' > CC [M] /home/onkar/kern-mod/pgdir.o > {standard input}: Assembler messages: > {standard input}:77: Error: suffix or operands invalid for `mov' > make[2]: *** [/home/onkar/kern-mod/pgdir.o] Error 1 > make[1]: *** [_module_/home/onkar/kern-mod] Error 2 > make[1]: Leaving directory `/home/onkar/KERNELS/BUILD/linux-2.6.18' > make: *** [default] Error 2 > > need help ! > > Regards, > Onkar > > -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ