diff options
author | Jan Dolezal <dolezj21@fel.cvut.cz> | 2014-11-20 15:00:26 +0100 |
---|---|---|
committer | Gedare Bloom <gedare@rtems.org> | 2014-11-20 09:52:38 -0500 |
commit | ec494ffbfc88b2085d8d4824883333b782c50b5c (patch) | |
tree | 534dd0f5348e7d2301947f9f2ad3bae3cc340ab5 /c/src/lib/libbsp/i386/pc386/include | |
parent | dl01,dl02: Avoid non-runnable $(EXEEXT) files (diff) | |
download | rtems-ec494ffbfc88b2085d8d4824883333b782c50b5c.tar.bz2 |
i386/pc386: configurable size of descriptor tables
Diffstat (limited to 'c/src/lib/libbsp/i386/pc386/include')
-rw-r--r-- | c/src/lib/libbsp/i386/pc386/include/bsp.h | 6 | ||||
-rw-r--r-- | c/src/lib/libbsp/i386/pc386/include/tblsizes.h | 25 |
2 files changed, 27 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/i386/pc386/include/bsp.h b/c/src/lib/libbsp/i386/pc386/include/bsp.h index 21aa05484d..26d4fa47a1 100644 --- a/c/src/lib/libbsp/i386/pc386/include/bsp.h +++ b/c/src/lib/libbsp/i386/pc386/include/bsp.h @@ -51,6 +51,7 @@ #include <bspopts.h> #include <bsp/default-initial-extension.h> +#include <bsp/tblsizes.h> #include <rtems.h> #include <rtems/iosupp.h> @@ -166,11 +167,8 @@ extern int rtems_3c509_driver_attach(struct rtems_bsdnet_ifconfig *config); /*-------------------------------------------------------------------------+ | External Variables. +--------------------------------------------------------------------------*/ -#define IDT_SIZE 256 -#define GDT_SIZE 3 - extern interrupt_gate_descriptor Interrupt_descriptor_table[IDT_SIZE]; -extern segment_descriptors Global_descriptor_table [GDT_SIZE]; +extern segment_descriptors _Global_descriptor_table [GDT_SIZE]; /*-------------------------------------------------------------------------+ | Function Prototypes. diff --git a/c/src/lib/libbsp/i386/pc386/include/tblsizes.h b/c/src/lib/libbsp/i386/pc386/include/tblsizes.h new file mode 100644 index 0000000000..ef51ae743a --- /dev/null +++ b/c/src/lib/libbsp/i386/pc386/include/tblsizes.h @@ -0,0 +1,25 @@ +/** + * @file + * + * @ingroup i386_pc386 + * + * @brief Sizes of Global and Interrupt descriptor tables. + */ + +/* + * Definitions related to the PC386 BSP. + * 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 GDT_SIZE (3 + NUM_APP_DRV_GDT_DESCRIPTORS) + |