RTEMS  5.1
tblsizes.h
Go to the documentation of this file.
1 
9 /*
10  * This header file is also used in assembler modules.
11  *
12  * Copyright (C) 2014 Jan Doležal (dolezj21@fel.cvut.cz)
13  * CTU in Prague.
14  *
15  * The license and distribution terms for this file may be
16  * found in the file LICENSE in this distribution or at
17  * http://www.rtems.org/license/LICENSE.
18  */
19 
20 #include <bspopts.h>
21 
22 #define IDT_SIZE (256)
23 /* We have 3 fixed segments (NULL, text, data) + a GS segment for TLS */
24 #ifdef RTEMS_SMP
25 /* Need one GS segment for each processor (x86 can have up to 256 processors) */
26 #define NUM_SYSTEM_GDT_DESCRIPTORS 3+256
27 #else
28 #define NUM_SYSTEM_GDT_DESCRIPTORS 3+1
29 #endif
30 #define GDT_SIZE (NUM_SYSTEM_GDT_DESCRIPTORS + NUM_APP_DRV_GDT_DESCRIPTORS)