--- BasiliskII/src/BeOS/sysdeps.h 1999/10/12 20:00:51 1.2 +++ BasiliskII/src/BeOS/sysdeps.h 2001/07/03 15:59:46 1.13 @@ -1,7 +1,7 @@ /* * sysdeps.h - System dependent definitions for BeOS * - * Basilisk II (C) 1997-1999 Christian Bauer + * Basilisk II (C) 1997-2001 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 @@ -21,6 +21,10 @@ #ifndef SYSDEPS_H #define SYSDEPS_H +#ifdef __POWERPC__ +#define NO_STD_NAMESPACE +#endif + #include #include #include @@ -30,19 +34,30 @@ // Are the Mac and the host address space the same? #ifdef __i386__ #define REAL_ADDRESSING 0 +#undef WORDS_BIGENDIAN #else #define REAL_ADDRESSING 1 +#define WORDS_BIGENDIAN 1 #endif -// Are we using a 68k emulator or the real thing? +// Using 68k emulator #define EMULATED_68K 1 -// Is the Mac ROM write protected? +// Mac ROM is write protected #define ROM_IS_WRITE_PROTECTED 1 +// ExtFS is supported +#define SUPPORTS_EXTFS 1 + +// mon is not supported +#undef ENABLE_MON + // Time data type for Time Manager emulation typedef bigtime_t tm_time_t; +// Offset Mac->BeOS time in seconds +#define TIME_OFFSET 0x7c25b080 + // 64 bit file offsets typedef off_t loff_t; @@ -53,7 +68,13 @@ typedef off_t loff_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; +#define VAL64(a) (a ## LL) +#define UVAL64(a) (a ## uLL) +typedef uint32 uintptr; +typedef int32 intptr; // UAE CPU defines #ifdef __i386__ @@ -76,6 +97,8 @@ static inline void do_put_mem_word(uae_u #endif #define X86_ASSEMBLY +#define UNALIGNED_PROFITABLE +#define OPTIMIZED_FLAGS #define ASM_SYM_FOR_FUNC(a) __asm__(a) #define REGPARAM __attribute__((regparm(3))) @@ -88,6 +111,8 @@ static inline void do_put_mem_long(uae_u static inline void do_put_mem_word(uae_u16 *a, uae_u32 v) {*a = v;} #undef X86_ASSEMBLY +#define UNALIGNED_PROFITABLE +#undef OPTIMIZED_FLAGS #define ASM_SYM_FOR_FUNC(a) #define REGPARAM #endif @@ -99,8 +124,6 @@ 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