--- BasiliskII/src/Unix/sysdeps.h 1999/10/12 20:00:54 1.3 +++ BasiliskII/src/Unix/sysdeps.h 2000/04/10 18:53:08 1.10 @@ -1,7 +1,7 @@ /* * sysdeps.h - System dependent definitions for Unix * - * Basilisk II (C) 1997-1999 Christian Bauer + * Basilisk II (C) 1997-2000 Christian Bauer * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -69,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; @@ -93,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 @@ -107,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 @@ -114,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 @@ -207,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