Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Expose swapping and pinning to host + add visibility to linux module
[palacios.git] / test / geekos_test_vm / include / geekos / segment.h
index 06f302a..5277f8e 100644 (file)
 
 struct TSS;
 
-#if __TINYC__
-#define PACKED
-#else
-#define PACKED __attribute__((packed))
-#endif
-
 /*
  * The general format of a segment descriptor.
  */
 struct Segment_Descriptor {
-    ushort_t sizeLow        PACKED ;
-    uint_t baseLow     : 24 PACKED ;
-    uint_t type        : 4  PACKED ;
-    uint_t system      : 1  PACKED ;
-    uint_t dpl         : 2  PACKED ;
-    uint_t present     : 1  PACKED ;
-    uint_t sizeHigh    : 4  PACKED ;
-    uint_t avail       : 1  PACKED ;
-    uint_t reserved    : 1  PACKED ;  /* set to zero */
-    uint_t dbBit       : 1  PACKED ;
-    uint_t granularity : 1  PACKED ;
-    uchar_t baseHigh        PACKED ;
-};
+    ushort_t sizeLow;
+    uint_t baseLow     : 24;
+    uint_t type        : 4;
+    uint_t system      : 1;
+    uint_t dpl         : 2;
+    uint_t present     : 1;
+    uint_t sizeHigh    : 4;
+    uint_t avail       : 1;
+    uint_t reserved    : 1;  /* set to zero */
+    uint_t dbBit       : 1;
+    uint_t granularity : 1;
+    uchar_t baseHigh ;
+} __attribute__((packed));
 
 /**
  * Construct a segment selector.