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