#include #include #include // x86 instructions : nop, nop, nop, ret unsigned char stack_instructions[] = {0x90, 0x90, 0x90, 0xc3}; RAYENTRY KernelModuleEntry(char *arguments) { KPrintf("Starting stack execution test...\n"); __asm__ __volatile__ ("call *%0\n": : "r"(stack_instructions)); KPrintf ("This shouldnt happen!"); exit(-2); }