--- np2/i386c/ia32/cpu.h 2005/03/12 12:32:54 1.33 +++ np2/i386c/ia32/cpu.h 2008/01/25 18:02:18 1.36 @@ -1,4 +1,4 @@ -/* $Id: cpu.h,v 1.33 2005/03/12 12:32:54 monaka Exp $ */ +/* $Id: cpu.h,v 1.36 2008/01/25 18:02:18 monaka Exp $ */ /* * Copyright (c) 2002-2003 NONAKA Kimihiro @@ -255,10 +255,13 @@ typedef struct { } I386STAT; typedef struct { - BYTE *ext; + UINT8 *ext; UINT32 extsize; + UINT8 *extbase; /* = ext - 0x100000 */ + UINT32 extlimit16mb; /* = extsize + 0x100000 (MAX:16MB) */ + UINT32 extlimit4gb; /* = extsize + 0x100000 */ UINT32 inport; - BYTE *ems[4]; + UINT8 *ems[4]; } I386EXT; typedef struct { @@ -284,6 +287,9 @@ extern I386CORE i386core; #define CPU_EXTMEM i386core.e.ext #define CPU_EXTMEMSIZE i386core.e.extsize +#define CPU_EXTMEMBASE i386core.e.extbase +#define CPU_EXTLIMIT16 i386core.e.extlimit16mb +#define CPU_EXTLIMIT i386core.e.extlimit4gb #define CPU_INPADRS i386core.e.inport #define CPU_EMSPTR i386core.e.ems @@ -452,10 +458,8 @@ do { \ #define REAL_FLAGREG ((CPU_FLAG & 0xf7ff) | (CPU_OV ? O_FLAG : 0) | 2) #define REAL_EFLAGREG ((CPU_EFLAG & 0xfffff7ff) | (CPU_OV ? O_FLAG : 0) | 2) -#if !defined(IA32_DONT_USE_SET_EFLAGS_FUNCTION) void set_flags(UINT16 new_flags, UINT16 mask); void set_eflags(UINT32 new_flags, UINT32 mask); -#endif #define CPU_INST_OP32 CPU_STATSAVE.cpu_inst.op_32 @@ -497,10 +501,6 @@ void set_eflags(UINT32 new_flags, UINT32 #define CPU_STAT_EXCEPTION_COUNTER_INC() CPU_STATSAVE.cpu_stat.nerror++ #define CPU_STAT_EXCEPTION_COUNTER_CLEAR() CPU_STATSAVE.cpu_stat.nerror = 0 -#define CPU_PREFETCH_CLEAR() -#define CPU_PREFETCHQ_REMAIN_ADD(d) -#define CPU_PREFETCHQ_REMAIN_SUB(d) - #define CPU_MODE_SUPERVISER 0 #define CPU_MODE_USER (1 << 3) #define CPU_SET_CPL(cpl) \