Faster memory access for 4G limit cases

A bit slower for <4G but usually it is 4G
This commit is contained in:
Stanislav Shwartsman 2007-12-10 19:08:13 +00:00
parent 92f7a3a805
commit e15f7445f8
2 changed files with 496 additions and 454 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: descriptor.h,v 1.20 2007-11-06 19:17:42 sshwarts Exp $
// $Id: descriptor.h,v 1.21 2007-12-10 19:08:13 sshwarts Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007 Stanislav Shwartsman
@ -40,9 +40,13 @@ typedef struct { /* bx_selector_t */
typedef struct
{
#define SegValidCache (0x1)
#define SegAccessROK (0x2)
#define SegAccessWOK (0x4)
#define SegValidCache (0x1)
#define SegAccessROK (0x2)
#define SegAccessWOK (0x4)
#define SegAccess4G (0x8)
#define SegAccessROK4G (SegAccessROK|SegAccess4G)
#define SegAccessWOK4G (SegAccessWOK|SegAccess4G)
unsigned valid; // Holds above values, Or'd together. Used to
// hold only 0 or 1.