Commits
Andrey Mirkin authored and Pavel Emelianov committed 3aa1f18bc93
[PATCH] ia64: fix kernel thread exit code CPT during restore creates kernel thread to start iptables-restore. On ia64 start_kernel_thread is used for kernel thread creation. GLOBAL_ENTRY(start_kernel_thread) .prologue .save rp, r0 // this is the end of the call-chain .body alloc r2 = ar.pfs, 0, 0, 2, 0 mov out0 = r9 mov out1 = r11;; br.call.sptk.many rp = kernel_thread_helper;; << kernel_thread_helper just call CPT function, which in error case returns 0xff00 mov out0 = r8 br.call.sptk.many rp = sys_exit;; 1: br.sptk.few 1b // not reached END(start_kernel_thread) sys_exit() calls do_exit((error_code&0xff)<<8), so our error will be just ignored. On i386 and x86_64 do_exit is called directly in such place.