Here you are! asm goto("1: jmp %l[t_no]\n" "2:\n" ".section .altinstructions,\"a\"\n" " .long 1b - .\n" " .long 0\n" /* no replacement */ " .word %P0\n" /* feature bit */ " .byte 2b - 1b\n" /* source len */ " .byte 0\n" /* replacement len */ ".previous\n" /* skipping size check since replacement size = 0 */ : : "i" (bit) : : t_no); return true; t_no: return false;
So how is it possible to use cil on kernel source? -------------------------------------------- On Sun, 8/24/14, Gabriel Kerneis <gabr...@kerneis.info> wrote: Subject: Re: [CIL users] Compile a single file in kernel source To: cil-users@lists.sourceforge.net Date: Sunday, August 24, 2014, 12:24 PM Le 2014-08-24 14:19, Ahmad Nouralizadeh a écrit : > I receive the following error: > > /usr/src/linux-headers-3.2.0-23-generic-pae/arch/x86/include/asm/cpufeature.h[341:0-0] > : syntax error This is likely a gcc syntax extension that CIL does not support. Could you copy/paste the content of cpufeature.h around line 341? Thanks, -- Gabriel ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ _______________________________________________ CIL-users mailing list CIL-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cil-users ------------------------------------------------------------------------------ Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ _______________________________________________ CIL-users mailing list CIL-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cil-users