diff options
| author | Marcin Bukat <marcin.bukat@gmail.com> | 2012-01-25 09:57:59 +0100 |
|---|---|---|
| committer | Marcin Bukat <marcin.bukat@gmail.com> | 2012-02-22 08:33:26 +0100 |
| commit | b4eab599513324dcaffa4c5693345ae11f3f9725 (patch) | |
| tree | 58d66298269d2cec58102724565b573f250b5153 /lib/unwarminder/types.h | |
| parent | 680c6fcde1eabb45dd12c59718d708b2cda61f6a (diff) | |
| download | rockbox-b4eab599513324dcaffa4c5693345ae11f3f9725.zip rockbox-b4eab599513324dcaffa4c5693345ae11f3f9725.tar.gz rockbox-b4eab599513324dcaffa4c5693345ae11f3f9725.tar.bz2 rockbox-b4eab599513324dcaffa4c5693345ae11f3f9725.tar.xz | |
Arm stack unwinder
Simplified stack unwinder for ARM. This is port of
http://www.mcternan.me.uk/ArmStackUnwinding/
backtrace() is called from UIE() on native targets
and from panicf() on both native and ARM RaaA.
Change-Id: I8e4b3c02490dd60b30aa372fe842d193b8929ce0
Diffstat (limited to 'lib/unwarminder/types.h')
| -rw-r--r-- | lib/unwarminder/types.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/lib/unwarminder/types.h b/lib/unwarminder/types.h new file mode 100644 index 0000000..2e902f3 --- /dev/null +++ b/lib/unwarminder/types.h @@ -0,0 +1,39 @@ +/*************************************************************************** + * ARM Stack Unwinder, Michael.McTernan.2001@cs.bris.ac.uk + * + * This program is PUBLIC DOMAIN. + * This means that there is no copyright and anyone is able to take a copy + * for free and use it as they wish, with or without modifications, and in + * any context, commercially or otherwise. The only limitation is that I + * don't guarantee that the software is fit for any purpose or accept any + * liability for it's use or misuse - this software is without warranty. + **************************************************************************/ +/** \file + * Types common across the whole system. + **************************************************************************/ + +#ifndef TYPES_H +#define TYPES_H + +#define UPGRADE_ARM_STACK_UNWIND +#undef UNW_DEBUG + +typedef unsigned char Int8; +typedef unsigned short Int16; +typedef unsigned int Int32; + + +typedef signed char SignedInt8; +typedef signed short SignedInt16; +typedef signed int SignedInt32; + + +typedef enum +{ + FALSE, + TRUE +} Boolean; + +#endif + +/* END OF FILE */ |