Put the assembler functions into the .text section.
Modified: trunk/reactos/ntoskrnl/ex/i386/interlck.c
--- trunk/reactos/ntoskrnl/ex/i386/interlck.c 2005-05-28 00:24:46 UTC (rev 15556) +++ trunk/reactos/ntoskrnl/ex/i386/interlck.c 2005-05-28 07:26:38 UTC (rev 15557) @@ -16,6 +16,11 @@
#if defined(__GNUC__)
+/*
+ * Do not declare any variable after this point!!
+ */
+__asm__("\n\t.text\n\t");
+
#ifdef CONFIG_SMP #define LOCK "lock ; " #else