[zaptel-commits] mattf: branch mattf/zaptel-1.4-stackcleanup r4163 - /team/mattf/zaptel-1.4-st...

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Wed Apr 9 17:02:03 CDT 2008


Author: mattf
Date: Wed Apr  9 17:02:03 2008
New Revision: 4163

URL: http://svn.digium.com/view/zaptel?view=rev&rev=4163
Log:
Put back in 4K stack detection code.  I remember why it was in there now...

Modified:
    team/mattf/zaptel-1.4-stackcleanup/kernel/wct4xxp/vpm450m.c

Modified: team/mattf/zaptel-1.4-stackcleanup/kernel/wct4xxp/vpm450m.c
URL: http://svn.digium.com/view/zaptel/team/mattf/zaptel-1.4-stackcleanup/kernel/wct4xxp/vpm450m.c?view=diff&rev=4163&r1=4162&r2=4163
==============================================================================
--- team/mattf/zaptel-1.4-stackcleanup/kernel/wct4xxp/vpm450m.c (original)
+++ team/mattf/zaptel-1.4-stackcleanup/kernel/wct4xxp/vpm450m.c Wed Apr  9 17:02:03 2008
@@ -491,13 +491,13 @@
 	 * stack unfriendly.  Stupid, stupid, stupid.  So we disable IRQs so we
 	 * don't run the risk of overflowing the stack while we initialize the
 	 * octasic. */
-#if 0
+#ifdef CONFIG_4KSTACKS
 	local_irq_save(flags);
 #endif
 	ulResult = Oct6100ChipOpen(vpm450m->pApiInstance, ChipOpen);
 	if (ulResult != cOCT6100_ERR_OK) {
 		printk("Failed to open chip, code %08x!\n", ulResult);
-#if 0
+#ifdef CONFIG_4KSTACKS
 		local_irq_restore(flags);
 #endif
 		kfree(vpm450m);
@@ -554,7 +554,7 @@
 		}
 	}
 
-#if 0
+#ifdef CONFIG_4KSTACKS
 	local_irq_restore(flags);
 #endif
 	kfree(ChipOpen);




More information about the zaptel-commits mailing list