[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.
.save rp, r0 // this is the end of the
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
mov out0 = r8
br.call.sptk.many rp = sys_exit;;
1: br.sptk.few 1b // not reached
sys_exit() calls do_exit((error_code&0xff)<<8), so our error will be just
On i386 and x86_64 do_exit is called directly in such place.