blob: 978cde2b3e8163599e59011274a97e25e8c859bb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/**
* @file
*
* @ingroup RTEMSBSPsI386
*
* @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)
/* We have 3 fixed segments (NULL, text, data) + a GS segment for TLS */
#ifdef RTEMS_SMP
/* Need one GS segment for each processor (x86 can have up to 256 processors) */
#define NUM_SYSTEM_GDT_DESCRIPTORS 3+256
#else
#define NUM_SYSTEM_GDT_DESCRIPTORS 3+1
#endif
#define GDT_SIZE (NUM_SYSTEM_GDT_DESCRIPTORS + NUM_APP_DRV_GDT_DESCRIPTORS)
|