1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

fix size of the GDT (forgot null descriptor)

This commit is contained in:
Stefan Lankes 2017-08-21 00:07:38 +02:00 committed by GitHub
parent 3b8e6791ee
commit 81c7b8dac0

View file

@ -111,7 +111,7 @@ typedef struct {
} __attribute__ ((packed)) gdt_ptr_t;
// a TSS descriptor is twice larger than a code/data descriptor
#define GDT_ENTRIES (6+MAX_CORES*2)
#define GDT_ENTRIES (7+MAX_CORES*2)
#if GDT_ENTRIES > 8192
#error Too many GDT entries!