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 |
21 |
|
#ifndef SYSDEPS_H |
22 |
|
#define SYSDEPS_H |
23 |
|
|
24 |
+ |
#ifdef __POWERPC__ |
25 |
+ |
#define NO_STD_NAMESPACE |
26 |
+ |
#endif |
27 |
+ |
|
28 |
|
#include <assert.h> |
29 |
|
#include <support/SupportDefs.h> |
30 |
|
#include <support/ByteOrder.h> |
31 |
|
|
32 |
+ |
#include "user_strings_beos.h" |
33 |
+ |
|
34 |
|
// Are the Mac and the host address space the same? |
35 |
|
#ifdef __i386__ |
36 |
|
#define REAL_ADDRESSING 0 |
37 |
+ |
#undef WORDS_BIGENDIAN |
38 |
|
#else |
39 |
|
#define REAL_ADDRESSING 1 |
40 |
+ |
#define WORDS_BIGENDIAN 1 |
41 |
|
#endif |
42 |
|
|
43 |
< |
// Are we using a 68k emulator or the real thing? |
43 |
> |
// Using 68k emulator |
44 |
|
#define EMULATED_68K 1 |
45 |
|
|
46 |
< |
// Is the Mac ROM write protected? |
46 |
> |
// Mac ROM is write protected |
47 |
|
#define ROM_IS_WRITE_PROTECTED 1 |
48 |
|
|
49 |
+ |
// ExtFS is supported |
50 |
+ |
#define SUPPORTS_EXTFS 1 |
51 |
+ |
|
52 |
+ |
// mon is not supported |
53 |
+ |
#undef ENABLE_MON |
54 |
+ |
|
55 |
|
// Time data type for Time Manager emulation |
56 |
|
typedef bigtime_t tm_time_t; |
57 |
|
|
58 |
+ |
// Offset Mac->BeOS time in seconds |
59 |
+ |
#define TIME_OFFSET 0x7c25b080 |
60 |
+ |
|
61 |
|
// 64 bit file offsets |
62 |
|
typedef off_t loff_t; |
63 |
|
|
68 |
|
#define uae_u16 uint16 |
69 |
|
#define uae_s32 int32 |
70 |
|
#define uae_u32 uint32 |
71 |
+ |
#define uae_s64 int64 |
72 |
+ |
#define uae_u64 uint64 |
73 |
|
typedef uae_u32 uaecptr; |
74 |
+ |
#define VAL64(a) (a ## LL) |
75 |
+ |
#define UVAL64(a) (a ## uLL) |
76 |
+ |
typedef uint32 uintptr; |
77 |
+ |
typedef int32 intptr; |
78 |
|
|
79 |
|
// UAE CPU defines |
80 |
|
#ifdef __i386__ |
97 |
|
#endif |
98 |
|
|
99 |
|
#define X86_ASSEMBLY |
100 |
+ |
#define UNALIGNED_PROFITABLE |
101 |
+ |
#define OPTIMIZED_FLAGS |
102 |
|
#define ASM_SYM_FOR_FUNC(a) __asm__(a) |
103 |
|
#define REGPARAM __attribute__((regparm(3))) |
104 |
|
|
111 |
|
static inline void do_put_mem_word(uae_u16 *a, uae_u32 v) {*a = v;} |
112 |
|
|
113 |
|
#undef X86_ASSEMBLY |
114 |
+ |
#define UNALIGNED_PROFITABLE |
115 |
+ |
#undef OPTIMIZED_FLAGS |
116 |
|
#define ASM_SYM_FOR_FUNC(a) |
117 |
|
#define REGPARAM |
118 |
|
#endif |