| Limit(Bits
15-0) |
lower
16-bit
limit |
| Base
Address(Bits 15-0) |
lower
16-bit
base
address |
| Base
Address(Bits
23-16) |
middle
8-bit
base
address |
A
|
access
information,
whether it was read from(=0) or written to(=1) by the last access
|
| Type |
| Bit 41 |
for
date/stack segment it can be written to (=1)
for code segment it can be read from(=1) |
| Bit 42 |
for
date/stack
segment it indicates expansion direction, it grows downside(=1)
for code segment, confirming |
| Bit 43 |
whether
it is code
segment(=1) or it is a date/stack segment(=0) |
| Bit 44 |
must be
1 for
code/data segment |
|
| DPL |
descriptor
privilege
level, we are going to use 0-kernel privilege and 3-user privilege in
Skelix |
P
|
whether the
segment
is present. It is always be 1 in this tutorial. |
| Limit(19-16) |
middle 8-bit
limit |
| U |
user
defined |
| X |
not
used |
| D |
whether
handle
instructions and data as 32-bit(=1) or 16-bit(=0) |
| G |
whether the
limitation use unit 4K or 1 byte |
| Base
Address(Bits
31-24) |
higher 8-bit
base
address |