X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yportenv.h;h=687f5e69bf1a0217bb3e1ad353824f6d735dc05d;hp=d962fca6b2dd3c034a468d12f952ca221e14135f;hb=25f6e492e7010f585367a4f6abf4d2e17c5c0e1a;hpb=4778ade2698a2de536594ee9cbf32db58346b59c diff --git a/yportenv.h b/yportenv.h index d962fca..687f5e6 100644 --- a/yportenv.h +++ b/yportenv.h @@ -47,6 +47,7 @@ #include #include #include +#include #define YCHAR char #define YUCHAR unsigned char @@ -71,8 +72,8 @@ #define YFREE_ALT(x) vfree(x) #define YMALLOC_DMA(x) YMALLOC(x) -/* KR - added for use in scan so processes aren't blocked indefinitely. */ #define YYIELD() schedule() +#define Y_DUMP_STACK() dump_stack() #define YAFFS_ROOT_MODE 0755 #define YAFFS_LOSTNFOUND_MODE 0700 @@ -153,12 +154,16 @@ #endif +#ifndef Y_DUMP_STACK +#define Y_DUMP_STACK() do { } while (0) +#endif #ifndef YBUG #define YBUG() do {\ T(YAFFS_TRACE_BUG,\ (TSTR("==>> yaffs bug: " __FILE__ " %d" TENDSTR),\ __LINE__));\ + Y_DUMP_STACK();\ } while (0) #endif