--- /dev/null
+#include <stdint.h>
+
+#include "burn.h"
+#include "burnstack.h"
+
+
+#ifdef USE_STACKCLEAN
+
+/*
+ * burnstack - cleanup our stack
+ */
+void
+burnstack(int len)
+{
+ uint8_t stack[1024];
+ burn(stack, 1024);
+ if (len > 0)
+ burnstack(len-1024);
+}
+
+#endif