/[gxemul]/trunk/src/include/misc.h
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/include/misc.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 10 by dpavlin, Mon Oct 8 16:18:27 2007 UTC revision 22 by dpavlin, Mon Oct 8 16:19:37 2007 UTC
# Line 28  Line 28 
28   *  SUCH DAMAGE.   *  SUCH DAMAGE.
29   *   *
30   *   *
31   *  $Id: misc.h,v 1.233 2005/06/20 05:52:49 debug Exp $   *  $Id: misc.h,v 1.236 2005/12/03 04:14:16 debug Exp $
32   *   *
33   *  Misc. definitions for gxemul.   *  Misc. definitions for gxemul.
34   */   */
# Line 97  struct memory; Line 97  struct memory;
97  #define EMUL_LITTLE_ENDIAN              0  #define EMUL_LITTLE_ENDIAN              0
98  #define EMUL_BIG_ENDIAN                 1  #define EMUL_BIG_ENDIAN                 1
99    
100    #ifdef HOST_LITTLE_ENDIAN
101    #define LE32_TO_HOST(x)     (x)
102    #define BE32_TO_HOST(x)     ((((x) & 0xff000000) >> 24) | ((x) << 24) | \
103                                 (((x) & 0xff0000) >> 8) | (((x) & 0xff00) << 8))
104    #else
105    #define LE32_TO_HOST(x)     ((((x) & 0xff000000) >> 24) | ((x) << 24) | \
106                                 (((x) & 0xff0000) >> 8) | (((x) & 0xff00) << 8))
107    #define BE32_TO_HOST(x)     (x)
108    #endif
109    
110  /*  Debug stuff:  */  /*  Debug stuff:  */
111  #define DEBUG_BUFSIZE           1024  #define DEBUG_BUFSIZE           1024
112    #define DEBUG_INDENTATION       4
113  #ifndef DEFAULT_BINTRANS_SIZE_IN_MB  #ifndef DEFAULT_BINTRANS_SIZE_IN_MB
114  #define DEFAULT_BINTRANS_SIZE_IN_MB     16  #define DEFAULT_BINTRANS_SIZE_IN_MB     16
115  #endif  #endif
# Line 132  size_t mystrlcat(char *dst, const char * Line 141  size_t mystrlcat(char *dst, const char *
141  #endif  #endif
142    
143    
 /*  of.c:  */  
 int of_emul(struct cpu *cpu);  
   
   
144  /*  pc_bios.c:  */  /*  pc_bios.c:  */
145  void pc_bios_simple_pmode_setup(struct cpu *cpu);  void pc_bios_simple_pmode_setup(struct cpu *cpu);
146  void pc_bios_init(struct cpu *cpu);  void pc_bios_init(struct cpu *cpu);

Legend:
Removed from v.10  
changed lines
  Added in v.22

  ViewVC Help
Powered by ViewVC 1.1.26