ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/BeOS/sysdeps.h
(Generate patch)

Comparing BasiliskII/src/BeOS/sysdeps.h (file contents):
Revision 1.6 by cebix, 1999-10-27T17:50:06Z vs.
Revision 1.14 by cebix, 2001-07-06T17:36:07Z

# Line 1 | Line 1
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
# Line 21 | Line 21
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>
# Line 30 | Line 34
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 < #define ENABLE_MON 0
53 > #undef ENABLE_MON
54  
55   // Time data type for Time Manager emulation
56   typedef bigtime_t tm_time_t;
57  
52 // Offset Mac->BeOS time in seconds
53 #define TIME_OFFSET 0x7c25b080
54
58   // 64 bit file offsets
59   typedef off_t loff_t;
60  
# Line 67 | Line 70 | typedef off_t loff_t;
70   typedef uae_u32 uaecptr;
71   #define VAL64(a) (a ## LL)
72   #define UVAL64(a) (a ## uLL)
73 + typedef uint32 uintptr;
74 + typedef int32 intptr;
75  
76   // UAE CPU defines
77   #ifdef __i386__
# Line 89 | Line 94 | static inline void do_put_mem_word(uae_u
94   #endif
95  
96   #define X86_ASSEMBLY
97 + #define UNALIGNED_PROFITABLE
98 + #define OPTIMIZED_FLAGS
99   #define ASM_SYM_FOR_FUNC(a) __asm__(a)
100   #define REGPARAM __attribute__((regparm(3)))
101  
# Line 101 | Line 108 | static inline void do_put_mem_long(uae_u
108   static inline void do_put_mem_word(uae_u16 *a, uae_u32 v) {*a = v;}
109  
110   #undef X86_ASSEMBLY
111 + #define UNALIGNED_PROFITABLE
112 + #undef OPTIMIZED_FLAGS
113   #define ASM_SYM_FOR_FUNC(a)
114   #define REGPARAM
115   #endif
# Line 112 | Line 121 | static inline void do_put_mem_word(uae_u
121   #define call_mem_put_func(func, addr, v) ((*func)(addr, v))
122   #define __inline__ inline
123   #define CPU_EMU_SIZE 0
115 #undef USE_MAPPED_MEMORY
116 #undef CAN_MAP_MEMORY
124   #undef NO_INLINE_MEMORY_ACCESS
125   #undef MD_HAVE_MEM_1_FUNCS
126   #undef USE_COMPILER

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines