Diff of /daemon/liblegacy/opd_kernel.c [e3b412] .. [a8d9ee] Maximize Restore

  Switch to side-by-side view

--- a/daemon/liblegacy/opd_kernel.c
+++ b/daemon/liblegacy/opd_kernel.c
@@ -391,10 +391,10 @@
 }
  
 
+int opd_eip_is_kernel(unsigned long eip)
+{
+#ifdef __i386
 #define KERNEL_OFFSET 0xC0000000
-
-int opd_eip_is_kernel(unsigned long eip)
-{
 	/*
 	 * kernel_start == 0 when using --no-vmlinux.
 	 * This is wrong, wrong, wrong, wrong, but we don't have much
@@ -402,6 +402,7 @@
 	 */
 	if (!kernel_start)
 		return eip >= KERNEL_OFFSET;
+#endif
 
 	return eip >= kernel_start;
 }