summaryrefslogtreecommitdiffstats
path: root/bsps/i386/pc386/include/bsp/tblsizes.h
diff options
context:
space:
mode:
Diffstat (limited to 'bsps/i386/pc386/include/bsp/tblsizes.h')
-rw-r--r--bsps/i386/pc386/include/bsp/tblsizes.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/bsps/i386/pc386/include/bsp/tblsizes.h b/bsps/i386/pc386/include/bsp/tblsizes.h
new file mode 100644
index 0000000000..cea8619c8f
--- /dev/null
+++ b/bsps/i386/pc386/include/bsp/tblsizes.h
@@ -0,0 +1,24 @@
+/**
+ * @file
+ *
+ * @ingroup i386_pc386
+ *
+ * @brief Sizes of Global and Interrupt descriptor tables.
+ */
+
+/*
+ * This header file is also used in assembler modules.
+ *
+ * Copyright (C) 2014 Jan Doležal (dolezj21@fel.cvut.cz)
+ * CTU in Prague.
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#include <bspopts.h>
+
+#define IDT_SIZE (256)
+#define NUM_SYSTEM_GDT_DESCRIPTORS 4
+#define GDT_SIZE (NUM_SYSTEM_GDT_DESCRIPTORS + NUM_APP_DRV_GDT_DESCRIPTORS)