ERROR {standard input}:77: Error: suffix or operands invalid for `mov'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux