aboutsummaryrefslogtreecommitdiffstats
path: root/memdump/mystuff.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-09-21 16:52:35 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-09-21 16:52:35 -0700
commit5a16eeb519c87fa4c437e838af81731b8d355052 (patch)
treef59258a720429d5ad8beaf2070f73cab6a187077 /memdump/mystuff.h
parent31daeb2ddb972dc70b929da1c93288e821c87ed7 (diff)
downloadsyslinux-elf-5a16eeb519c87fa4c437e838af81731b8d355052.tar.gz
syslinux-elf-5a16eeb519c87fa4c437e838af81731b8d355052.tar.xz
syslinux-elf-5a16eeb519c87fa4c437e838af81731b8d355052.zip
memdump: a debugging utility to dump memory over a serial port
A memory-dumping utility which runs in real mode. Thus, it can be used to get memory dumps from a relatively pristine system.
Diffstat (limited to 'memdump/mystuff.h')
-rw-r--r--memdump/mystuff.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/memdump/mystuff.h b/memdump/mystuff.h
new file mode 100644
index 00000000..7c5ac6f5
--- /dev/null
+++ b/memdump/mystuff.h
@@ -0,0 +1,24 @@
+#ifndef MYSTUFF_H
+#define MYSTUFF_H
+
+#include <stdlib.h>
+
+typedef signed char int8_t;
+typedef unsigned char uint8_t;
+typedef signed short int16_t;
+typedef unsigned short uint16_t;
+typedef signed int int32_t;
+typedef unsigned int uint32_t;
+typedef signed long long int64_t;
+typedef unsigned long long uint64_t;
+
+unsigned int skip_atou(const char **s);
+unsigned long strtoul(const char *, char **, int);
+
+static inline int
+isdigit(int ch)
+{
+ return (ch >= '0') && (ch <= '9');
+}
+
+#endif /* MYSTUFF_H */