5 #define COMPILER_BARRIER __asm__ __volatile("":::"cc","memory")
7 /* force the kernel to map in 15k below SP, so we can safely poke
9 __attribute__((noinline
)) void make_below_sp_safe ( void )
15 for (i
= 0; i
< N
; i
++) {
22 for (i
= 0; i
< N
; i
++) {
23 r
= (r
<< 1) | (r
>> 31);
24 r
^= (unsigned int)a
[i
];
26 fprintf(stderr
, "Checksum: %08x\n", r
);
35 __asm__
__volatile__("movl -8192(%%rsp), %0"
36 : "=r"(res
) : : "memory","cc");
37 fprintf(stderr
, "Got %08x\n", res
);