Ignore:
Timestamp:
Jul 7, 2017, 3:22:59 PM (7 years ago)
Author:
max@…
Message:

we're gonna use an array of TSSs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/core/hal_segmentation.h

    r162 r164  
    3131#define NGDT_MEM        6       /* aligned */
    3232
    33 #define GDT_CPU0TSS_SEL 0       /* cpu0's tss */
    34 #define NGDT_DYN        (256 - (NGDT_MEM / 2) * 16)
     33#define GDT_CPUTSS_SEL  0       /* cpu TSS base index */
     34#define NGDT_DYN        CONFIG_MAX_LOCAL_CORES  /* one TSS per core */
    3535
    3636/*
Note: See TracChangeset for help on using the changeset viewer.