typedef signed short int16_t;
typedef unsigned char uint8_t;
typedef signed char int8_t;
-typedef signed int size_t;
+typedef unsigned int size_t;
+typedef signed int ssize_t;
typedef uint8_t irqflags_t;
#define uputi uputw /* Copy user int type */
#define ugeti ugetw /* between user and kernel */
-extern void * memcpy(void *, void *, size_t);
+extern void * memcpy(void *, const void *, size_t);
extern void * memset(void *, int, size_t);
extern size_t strlen(const char *);
/* Sane behaviour for unused parameters */
#define used(x)
-/* No inline or const */
-
-#define inline
-
-#define const
-
-#define CPUTYPE CPU_8086
+#define CPUTYPE CPUTYPE_8086
-export CROSS_LD=ld86
-export CROSS_CC = bcc
-export CROSS_CCOPTS=-c -ansi -0 -O -I$(ROOT_DIR)/cpu-8086 -I$(ROOT_DIR)/platform-$(TARGET) -I$(ROOT_DIR)/include
+export CROSS_LD=ia16-elf-ld
+export CROSS_CC = ia16-elf-gcc
+export CROSS_CCOPTS=-Os -I$(ROOT_DIR)/cpu-8086 -I$(ROOT_DIR)/platform-$(TARGET) -I$(ROOT_DIR)/include -c
export CROSS_AS=$(CROSS_CC) $(CROSS_CCOPTS)
export CROSS_CC_SEG1=
export CROSS_CC_SEG2=