1 |
|
/* |
2 |
|
* sysdeps.h - System dependent definitions for BeOS |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-1999 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2001 Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
30 |
|
// Are the Mac and the host address space the same? |
31 |
|
#ifdef __i386__ |
32 |
|
#define REAL_ADDRESSING 0 |
33 |
+ |
#undef WORDS_BIGENDIAN |
34 |
|
#else |
35 |
|
#define REAL_ADDRESSING 1 |
36 |
+ |
#define WORDS_BIGENDIAN 1 |
37 |
|
#endif |
38 |
|
|
39 |
< |
// Are we using a 68k emulator or the real thing? |
39 |
> |
// Using 68k emulator |
40 |
|
#define EMULATED_68K 1 |
41 |
|
|
42 |
< |
// Is the Mac ROM write protected? |
42 |
> |
// Mac ROM is write protected |
43 |
|
#define ROM_IS_WRITE_PROTECTED 1 |
44 |
|
|
45 |
+ |
// ExtFS is supported |
46 |
+ |
#define SUPPORTS_EXTFS 1 |
47 |
+ |
|
48 |
+ |
// mon is not supported |
49 |
+ |
#undef ENABLE_MON |
50 |
+ |
|
51 |
|
// Time data type for Time Manager emulation |
52 |
|
typedef bigtime_t tm_time_t; |
53 |
|
|
54 |
+ |
// Offset Mac->BeOS time in seconds |
55 |
+ |
#define TIME_OFFSET 0x7c25b080 |
56 |
+ |
|
57 |
|
// 64 bit file offsets |
58 |
|
typedef off_t loff_t; |
59 |
|
|
64 |
|
#define uae_u16 uint16 |
65 |
|
#define uae_s32 int32 |
66 |
|
#define uae_u32 uint32 |
67 |
+ |
#define uae_s64 int64 |
68 |
+ |
#define uae_u64 uint64 |
69 |
|
typedef uae_u32 uaecptr; |
70 |
+ |
#define VAL64(a) (a ## LL) |
71 |
+ |
#define UVAL64(a) (a ## uLL) |
72 |
|
|
73 |
|
// UAE CPU defines |
74 |
|
#ifdef __i386__ |
91 |
|
#endif |
92 |
|
|
93 |
|
#define X86_ASSEMBLY |
94 |
+ |
#define UNALIGNED_PROFITABLE |
95 |
+ |
#define OPTIMIZED_FLAGS |
96 |
|
#define ASM_SYM_FOR_FUNC(a) __asm__(a) |
97 |
|
#define REGPARAM __attribute__((regparm(3))) |
98 |
|
|
105 |
|
static inline void do_put_mem_word(uae_u16 *a, uae_u32 v) {*a = v;} |
106 |
|
|
107 |
|
#undef X86_ASSEMBLY |
108 |
+ |
#define UNALIGNED_PROFITABLE |
109 |
+ |
#undef OPTIMIZED_FLAGS |
110 |
|
#define ASM_SYM_FOR_FUNC(a) |
111 |
|
#define REGPARAM |
112 |
|
#endif |