#define inline
#define ntohs(x) ((((x) & 0xFF) << 8) | (((x) & 0xFF00) >> 8))
+
+#define CPUTYPE CPUTYPE_6502
/* FIXME: should swap a/b inline ??? */
#define ntohs(x) ((((x) & 0xFF) << 8) | (((x) & 0xFF00) >> 8))
+
+#define CPUTYPE CPUTYPE_65C816
#define BIG_ENDIAN
#define CONFIG_STACKSIZE 1024
+
+#define CPUTYPE CPUTYPE_68000
#define gcc_miscompile_workaround() __asm("":::"memory")
#define BIG_ENDIAN
+
+#define CPUTYPE CPUTYPE_6809
#define used(x)
#define BIG_ENDIAN
+
+#define CPUTYPE CPUTYPE_68HC11
#define inline
#define const
+
+#define CPUTYPE CPU_8086
#define EMAGIC_2 0x3c
#define no_cache_udata()
+
+#define CPUTYPE CPUTYPE_MSP340X
#define BIG_ENDIAN
#define PDP_ENDIAN
+
+#define CPUTYPE CPUTYPE_PDP11
#define ntohs(x) ((((x) & 0xFF) << 8) | (((x) & 0xFF00) >> 8))
#define ntohl(x) ((((x) & 0xFF) << 24) | (((x) & 0xFF00) << 8) | \
(((x) & 0xFF0000) >> 8) | (((x >> 24) & 0xFF)))
+
+#define CPUTYPE CPUTYPE_Z80
#ifdef CONFIG_LEVEL_2\n\
CONF_LEVEL_2 |\n\
#endif\n\
- 0,\n\
{0, 0, 0},\n\
0,\n\
0,\n\
+ CPUTYPE,\n\
+ {0, 0, 0},\n\
+ {0, 0, 0, 0, 0, 0, 0, 0},\n\
/* Quoting to work around cc65 bug */\n\
\"%s\\0\"\"Fuzix\\0\"\"%s\\0\"\"%s\"\n\
};\n\n",
uint16_t loadavg[3];\n\
uint16_t swapk;\n\
uint16_t swapusedk;\n\
+ uint8_t cputype; /* CPU type information */\n\
+ uint8_t cpu[3]; /* CPU type specific data */\n\
+ uint16_t spare[8];\n\
char uname[%d];\n\
};\n\
\n", (int)(strlen(v) + strlen(sv) + strlen(p) + 9));
uint16_t config; /* Config flag mask */
uint16_t loadavg[3];
uint32_t spare;
+ uint16_t swapk;
+ uint16_t swapusedk;
+ uint8_t cputype; /* CPU type information */
+ uint8_t cpu[3]; /* CPU type specific data */
+ uint16_t spare[8];
};
/*