Make IDT size public

This commit is contained in:
Eryn Wells 2016-03-13 13:14:45 -04:00
parent c581d1b99a
commit c9c64b154a

View file

@ -136,6 +136,12 @@ struct IDT
Descriptor descriptor() const;
};
/**
* Size of the table. IDTs shouldn't have any more than this many
* descriptors.
*/
static const size_t Size = 256;
static IDT& systemIDT();
IDT();
@ -149,12 +155,6 @@ struct IDT
void load() const;
private:
/**
* Size of the table. IDTs shouldn't have any more than this many
* descriptors.
*/
static const size_t Size = 256;
Descriptor mTable[Size];
};