Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:41

0001 /**
0002  * @file
0003  *
0004  * @ingroup RTEMSBSPsI386
0005  *
0006  * @brief Sizes of Global and Interrupt descriptor tables.
0007  */
0008 
0009 /*
0010  * This header file is also used in assembler modules.
0011  *
0012  * Copyright (C) 2014  Jan Doležal (dolezj21@fel.cvut.cz)
0013  *                     CTU in Prague.
0014  *
0015  *  The license and distribution terms for this file may be
0016  *  found in the file LICENSE in this distribution or at
0017  *  http://www.rtems.org/license/LICENSE.
0018  */
0019 
0020 #include <bspopts.h>
0021 
0022 #define IDT_SIZE (256)
0023 /* We have 3 fixed segments (NULL, text, data) + a GS segment for TLS */
0024 #ifdef RTEMS_SMP
0025 /* Need one GS segment for each processor (x86 can have up to 256 processors) */
0026 #define NUM_SYSTEM_GDT_DESCRIPTORS 3+256
0027 #else
0028 #define NUM_SYSTEM_GDT_DESCRIPTORS 3+1
0029 #endif
0030 #define GDT_SIZE (NUM_SYSTEM_GDT_DESCRIPTORS + NUM_APP_DRV_GDT_DESCRIPTORS)