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

Comparing BasiliskII/src/Unix/sysdeps.h (file contents):
Revision 1.1 by cebix, 1999-10-03T14:16:25Z vs.
Revision 1.10 by cebix, 2000-04-10T18:53:08Z

# Line 1 | Line 1
1   /*
2   *  sysdeps.h - System dependent definitions for Unix
3   *
4 < *  Basilisk II (C) 1997-1999 Christian Bauer
4 > *  Basilisk II (C) 1997-2000 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 26 | Line 26
26   #endif
27  
28   #include "config.h"
29 + #include "user_strings_unix.h"
30  
31   #ifndef STDC_HEADERS
32   #error "You don't have ANSI C header files."
33   #endif
34  
35 < #include <sys/types.h>
35 > #ifdef HAVE_UNISTD_H
36 > # include <sys/types.h>
37 > # include <unistd.h>
38 > #endif
39 >
40   #include <netinet/in.h>
41   #include <assert.h>
42   #include <stdio.h>
# Line 39 | Line 44
44   #include <string.h>
45   #include <pthread.h>
46  
42 #ifdef HAVE_UNISTD_H
43 # include <unistd.h>
44 #endif
45
47   #ifdef HAVE_FCNTL_H
48   # include <fcntl.h>
49   #endif
# Line 68 | Line 69
69   /* Is the Mac ROM write protected? */
70   #define ROM_IS_WRITE_PROTECTED 1
71  
72 + /* ExtFS is supported */
73 + #define SUPPORTS_EXTFS 1
74 +
75   /* Data types */
76   typedef unsigned char uint8;
77   typedef signed char int8;
# Line 92 | Line 96 | typedef long int32;
96   #if SIZEOF_LONG == 8
97   typedef unsigned long uint64;
98   typedef long int64;
99 + #define VAL64(a) (a ## l)
100 + #define UVAL64(a) (a ## ul)
101   #elif SIZEOF_LONG_LONG == 8
102   typedef unsigned long long uint64;
103   typedef long long int64;
104 + #define VAL64(a) (a ## LL)
105 + #define UVAL64(a) (a ## uLL)
106   #else
107   #error "No 8 byte type, you lose."
108   #endif
# Line 106 | Line 114 | typedef struct timespec tm_time_t;
114   typedef struct timeval tm_time_t;
115   #endif
116  
117 + /* Offset Mac->Unix time in seconds */
118 + #define TIME_OFFSET 0x7c25b080
119 +
120   /* UAE CPU data types */
121   #define uae_s8 int8
122   #define uae_u8 uint8
# Line 113 | Line 124 | typedef struct timeval tm_time_t;
124   #define uae_u16 uint16
125   #define uae_s32 int32
126   #define uae_u32 uint32
127 + #define uae_s64 int64
128 + #define uae_u64 uint64
129   typedef uae_u32 uaecptr;
130  
131   /* Alignment restrictions */
132 < #if defined(__i386__) || defined(__powerpc__)
132 > #if defined(__i386__) || defined(__powerpc__) || defined(__m68k__)
133   # define CPU_CAN_ACCESS_UNALIGNED
134   #endif
135  
# Line 206 | Line 219 | static inline void do_put_mem_word(uae_u
219   #define call_mem_put_func(func, addr, v) ((*func)(addr, v))
220   #define __inline__ inline
221   #define CPU_EMU_SIZE 0
209 #undef USE_MAPPED_MEMORY
210 #undef CAN_MAP_MEMORY
222   #undef NO_INLINE_MEMORY_ACCESS
223   #undef MD_HAVE_MEM_1_FUNCS
213 #undef USE_COMPILER
224   #define ENUMDECL typedef enum
225   #define ENUMNAME(name) name
226   #define write_log printf
227  
228 + #ifdef USE_COMPILER
229 + #define USE_MAPPED_MEMORY
230 + #define CAN_MAP_MEMORY
231 + #define NO_EXCEPTION_3
232 + #define NO_PREFETCH_BUFFER
233 + #else
234 + #undef USE_MAPPED_MEMORY
235 + #undef CAN_MAP_MEMORY
236 + #endif
237 +
238   #ifdef X86_ASSEMBLY
239   #define ASM_SYM_FOR_FUNC(a) __asm__(a)
240   #else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines