All of lore.kernel.org
 help / color / mirror / Atom feed
* #if 0
@ 2008-01-27 23:10 Paolo Ciarrocchi
  2008-01-27 23:29 ` Bert Wesarg
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Paolo Ciarrocchi @ 2008-01-27 23:10 UTC (permalink / raw)
  To: kernel-janitors

Hi all,
I'm failing to understand why the following patch is changing the md5sum
of the relative .o file

-#if 0
-void Un_impl(void)
-{
-  u_char byte1, FPU_modrm;
-  unsigned long address = FPU_ORIG_EIP;
-
-  RE_ENTRANT_CHECK_OFF;
-  /* No need to check access_ok(), we have previously fetched these bytes. */
-  printk("Unimplemented FPU Opcode at eip=%p : ", (void __user *) address);
-  if ( FPU_CS = __USER_CS )
-    {
-      while ( 1 )
-       {
-         FPU_get_user(byte1, (u_char __user *) address);
-         if ( (byte1 & 0xf8) = 0xd8 ) break;
-         printk("[%02x]", byte1);
-         address++;
-       }
-      printk("%02x ", byte1);
-      FPU_get_user(FPU_modrm, 1 + (u_char __user *) address);
-
-      if (FPU_modrm >= 0300)
-       printk("%02x (%02x+%d)\n", FPU_modrm, FPU_modrm & 0xf8, FPU_modrm & 7);
-      else
-       printk("/%d\n", (FPU_modrm >> 3) & 7);
-    }
-  else
-    {
-      printk("cs selector = %04x\n", FPU_CS);
-    }
-
-  RE_ENTRANT_CHECK_ON;
-
-  EXCEPTION(EX_Invalid);
-
-}
-#endif  /*  0  */

Isn't the code included in the #if 0 #endif section supposed to be
ignored by the compiler?

I'm compiling as follow:
make clean && make arch/x86/math-emu/errors.o
before and after the patch.
And comparing the md5sum of the two .o files using the md5sum command.

Thanks!

Ciao,
-- 
Paolo
http://paolo.ciarrocchi.googlepages.com/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-01-28  8:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-27 23:10 #if 0 Paolo Ciarrocchi
2008-01-27 23:29 ` Bert Wesarg
2008-01-27 23:55 ` Paolo Ciarrocchi
2008-01-28  0:03 ` Bert Wesarg
2008-01-28  0:08 ` Paolo Ciarrocchi
2008-01-28  0:18 ` Bert Wesarg
2008-01-28  8:34 ` Adrian Bunk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.