typedef int32_t s32_t;
typedef uint32_t mem_ptr_t;
-#define PACK_STRUCT_FIELD(x) x __attribute__((packed))
+#define PACK_STRUCT_FIELD(x) x
#define PACK_STRUCT_STRUCT __attribute__((packed))
#define PACK_STRUCT_BEGIN
#define PACK_STRUCT_END
void handle_regs(struct fs_file *file)
{
- static unsigned char buf[2048];
+ static char buf[2048];
sprintf(buf,
"<html><head><title>Registers</title></head><body>"
void handle_backtrace(struct fs_file *file)
{
- static unsigned char buf[2048];
- static unsigned char buf2[64];
+ static char buf[2048];
+ static char buf2[64];
int i = 10;
unsigned long *pebp, *peip;
unsigned long ebp;
#define __FS_H__
struct fs_file {
- const unsigned char *data;
+ const char *data;
int len;
};
-static const unsigned char data_404_html[] =
+static const char data_404_html[] =
"<html><head><title>404 Not Found</title></head>"
"<body><h1>404 Not Found</h1><p>This is probably not the machine you're looking for...</p></body>"
"</html>";
-static const unsigned char data_index_html[] =
+static const char data_index_html[] =
"<html><head><title>NetWatch</title></head>"
"<body><h1>NetWatch</h1>"
"<iframe src=\"registers.html\" height=100 width=600></iframe><br>"
struct fsdata_file {
const struct fsdata_file *next;
- const unsigned char *name;
- const unsigned char *data;
+ const char *name;
+ const char *data;
const int len;
};
struct http_state {
u32_t left;
- const unsigned char *file;
+ const char *file;
u8_t retries;
};