--- BasiliskII/src/Unix/sysdeps.h 1999/10/04 21:07:18 1.2 +++ BasiliskII/src/Unix/sysdeps.h 1999/11/03 10:56:29 1.9 @@ -26,6 +26,7 @@ #endif #include "config.h" +#include "user_strings_unix.h" #ifndef STDC_HEADERS #error "You don't have ANSI C header files." @@ -68,6 +69,9 @@ /* Is the Mac ROM write protected? */ #define ROM_IS_WRITE_PROTECTED 1 +/* ExtFS is supported */ +#define SUPPORTS_EXTFS 1 + /* Data types */ typedef unsigned char uint8; typedef signed char int8; @@ -92,9 +96,13 @@ typedef long int32; #if SIZEOF_LONG == 8 typedef unsigned long uint64; typedef long int64; +#define VAL64(a) (a ## l) +#define UVAL64(a) (a ## ul) #elif SIZEOF_LONG_LONG == 8 typedef unsigned long long uint64; typedef long long int64; +#define VAL64(a) (a ## LL) +#define UVAL64(a) (a ## uLL) #else #error "No 8 byte type, you lose." #endif @@ -106,6 +114,9 @@ typedef struct timespec tm_time_t; typedef struct timeval tm_time_t; #endif +/* Offset Mac->Unix time in seconds */ +#define TIME_OFFSET 0x7c25b080 + /* UAE CPU data types */ #define uae_s8 int8 #define uae_u8 uint8 @@ -113,10 +124,12 @@ typedef struct timeval tm_time_t; #define uae_u16 uint16 #define uae_s32 int32 #define uae_u32 uint32 +#define uae_s64 int64 +#define uae_u64 uint64 typedef uae_u32 uaecptr; /* Alignment restrictions */ -#if defined(__i386__) || defined(__powerpc__) +#if defined(__i386__) || defined(__powerpc__) || defined(__m68k__) # define CPU_CAN_ACCESS_UNALIGNED #endif @@ -206,15 +219,22 @@ static inline void do_put_mem_word(uae_u #define call_mem_put_func(func, addr, v) ((*func)(addr, v)) #define __inline__ inline #define CPU_EMU_SIZE 0 -#undef USE_MAPPED_MEMORY -#undef CAN_MAP_MEMORY #undef NO_INLINE_MEMORY_ACCESS #undef MD_HAVE_MEM_1_FUNCS -#undef USE_COMPILER #define ENUMDECL typedef enum #define ENUMNAME(name) name #define write_log printf +#ifdef USE_COMPILER +#define USE_MAPPED_MEMORY +#define CAN_MAP_MEMORY +#define NO_EXCEPTION_3 +#define NO_PREFETCH_BUFFER +#else +#undef USE_MAPPED_MEMORY +#undef CAN_MAP_MEMORY +#endif + #ifdef X86_ASSEMBLY #define ASM_SYM_FOR_FUNC(a) __asm__(a) #else