Share to: share facebook share twitter share wa share telegram print page

Segment descriptor

In memory addressing for Intel x86 computer architectures, segment descriptors are a part of the segmentation unit, used for translating a logical address to a linear address. Segment descriptors describe the memory segment referred to in the logical address.[1] The segment descriptor (8 bytes long in 80286 and later) contains the following fields:[2]

  1. A segment base address
  2. The segment limit which specifies the segment size
  3. Access rights byte containing the protection mechanism information
  4. Control bits

Structure

The x86 and x86-64 segment descriptor has the following form:[3]

Where the fields stand for:

Base Address
Starting memory address of the segment. Its length is 32 bits and it is created from the lower part bits 16 to 31, and the upper part bits 0 to 7, followed by bits 24 to 31.
Segment Limit
Its length is 20 bits and is created from the lower part bits 0 to 15 and the upper part bits 16 to 19. It defines the address of the last accessible data. The length is one more than the value stored here. How exactly this should be interpreted depends on the Granularity bit of the segment descriptor.
G=Granularity
If clear, the limit is in units of bytes, with a maximum of 220 bytes. If set, the limit is in units of 4096-byte pages, for a maximum of 232 bytes.
D/B
D = Default operand size : If clear, this is a 16-bit code segment; if set, this is a 32-bit segment.
B = Big: If set, the maximum offset size for a data segment is increased to 32-bit 0xffffffff. Otherwise it's the 16-bit max 0x0000ffff. Essentially the same meaning as "D".
L=Long
If set, this is a 64-bit segment (and D must be zero), and code in this segment uses the 64-bit instruction encoding. "L" cannot be set at the same time as "D" aka "B". (Bit 21 in the image)
AVL=Available
For software use, not used by hardware (Bit 20 in the image with the label A)
P=Present
If clear, a "segment not present" exception is generated on any reference to this segment
DPL=Descriptor privilege level
Privilege level (ring) required to access this descriptor
S=System Segment
If clear, this is system segment, if 1, this is Code/Data segment.
Type
If bit 11 set, this is a code segment descriptor. If clear, this is a data/stack segment descriptor, which has "D" replaced by "B", "C" replaced by "E" and "R" replaced by "W". This is in fact a special case of the 2-bit type field, where the preceding bit 12 cleared as "0" refers to more internal system descriptors, for LDT, LSS, and gates.
C=Conforming
Code in this segment may be called from less-privileged levels.
E=Expand-Down
If clear, the segment expands from base address up to base+limit. If set, it expands from maximum offset down to limit, a behavior usually used for stacks.
R=Readable
If clear, the segment may be executed but not read from.
W=Writable
If clear, the data segment may be read but not written to.
A=Accessed
This bit is set to 1 by hardware when the segment is accessed, and cleared by software.

See also

References

  1. ^ Bovet, D.P., & Cesati, M. (2000). Understanding the Linux Kernel (First Edition). O'Reilly & Associates, Inc.
  2. ^ Tabak, Daniel (1995). Advanced Microprocessors. Mcgraw Hill Publishers. p. 149. ISBN 9780070628434.
  3. ^ AMD64 Architecture Programmer's Manual Volume 2: System Programming (PDF) (Technical report). 2013. p. 80. Archived from the original (PDF) on 2018-02-18.

Further reading


Read other articles:

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (أغسطس 2020) محطة سكة حديد مرسينمعلومات عامةالبلد  تركيا المالك سكك حديد الجمهورية التركية المحطات المجاورة محطة قطار مرسينعلى الخط: Adana–Mersin railway (en) باتجاه: Adana railway stat...

オルラン 10 インターエアロコム2010で展示されるオルラン 10 用途:偵察機 分類:無人航空機 製造者:特殊技術センター 運用者: ロシア 生産数:1,000[1] 運用開始:2010年[2] 表示 オルラン10(ロシア語: Орлан-10)は、ロシア連邦の特殊技術センターが開発した無人航空機(UAV)[3][4]。最高時速120キロ、18時間の航続が可能。日本の新聞社などは

Ramón Maria del Valle-Inclán Ramón María del Valle-Inclán Nascimento 28 de outubro de 1866Vilanova de Arousa, Espanha Morte 5 de janeiro de 1936 (69 anos)Santiago de Compostela, Espanha Nacionalidade Espanha espanhol Ocupação Escritor Magnum opus Sonata de Outono Escola/tradição Modernismo Estátua dedicada a Valle-Inclán pelo Círculo de Bellas Artes de Madrid, localizada no Paseo de Recoletos de Madri. Estátua de Valle-Inclán na Alameda de Santiago de Compostela. Ramó...

Сексмісія / Нові амазонкипол. Seksmisja Жанр комедіяРежисер Юліуш МахульськийПродюсер Махульський ЮліушСценарист Юліуш МахульськийЙоланта ГартвіґУ головних ролях Єжи ШтурОльгерд ЛукашевичБожена СтрийкувнаБогуслава ПавелецьОператор Єжи ЛукашевичКомпозитор Хенрік Кузьн

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (يوليو 2019) روجر فلاندرز معلومات شخصية الميلاد 3 فبراير 1901  لانكاستر  الوفاة 13 يوليو 1965 (64 سنة)   أوكلاهوما سيتي  مواطنة الولايات المتحدة  الحياة العملية المهن

هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (أبريل 2019) ديفيد برلين معلومات شخصية الميلاد 14 مايو 1951 (72 سنة)  مواطنة كندا  الحياة العملية المدرسة الأم جامعة شيكاغو  المهنة محرر  تعديل مصدري - تعديل   ديفي...

6294 ЧерніВідкриттяВідкривач Ерік Вальтер ЕльстМісце відкриття Обсерваторія Ла-СільяДата відкриття 11 лютого 1988ПозначенняНазвана на честь Карл ЧерніТимчасові позначення 1988 CX1 1983 VV2 1992 HX4Категорія малої планети Астероїд головного поясуОрбітальні характеристики[1] Еп...

2003 popular uprising in Georgia Rose RevolutionPart of the Colour revolutionsDemonstrators spending the night in front of the Georgian Parliament in TbilisiDate3–23 November 2003LocationGeorgiaCaused byEconomic mismanagementElectoral fraudPolitical corruptionPovertyState failureGoalsNew electionsResignation of Eduard ShevardnadzeAnti-corruption reformsReintegration of Abkhazia and South OssetiaEuropean integrationMethodsWidespread demonstrationsResulted inResignation of Eduard Shevardn...

Grundarfjarðarbær GrundarfjarðarbærMunisipalitas Lambang kebesaranNegara IslandiaRegionVesturlandLuas • Total149,08 km2 (5,756 sq mi)Populasi (2017) • Total877 • Kepadatan0,059/km2 (0,15/sq mi)LAU3709Situs webhttp://www.grundarfjordur.is/ Grundarfjarðarbær adalah salah satu munisipalitas di Islandia yang menjadi bagian region Vesturland. Kode LAU munisipalitas ini adalah 3709. Menurut sensus 2017, jumlah penduduk munisipa...

District of Kachin, Myanmar Not to be confused with Putuo District. This article does not cite any sources. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Putao District – news · newspapers · books · scholar · JSTOR (August 2013) (Learn how and when to remove this template message) Putao District (Burmese: ပူတာအိုခရိုင်) is the northernmo...

1991 greatest hits album by JourneyThe BalladeGreatest hits album by JourneyReleasedDecember 12, 1991Recorded1977-1986GenreRockLength57:05LabelSony Music DistributionJourney chronology Greatest Hits(1988) The Ballade(1991) Time3(1992) Professional ratingsReview scoresSourceRatingAllmusic [1] The Ballade is a Japanese-only compilation album by the American Rock band Journey. Released in 1991, it comprises fifteen of their most popular love songs, including the #2 chart hit Open...

1999-2000 South Korean television series This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Hur Jun TV series – news · newspapers · books · scholar · JSTOR (June 2013) (Learn how and when to remove this template message) Hur JunPromotional imageAlso known asThe Legendary Doctor Heo JunThe Way of Medicine: ...

Country in the Horn of Africa This article is about the country. For other uses, see Ethiopia (disambiguation). This article's lead section may be too long. Please read the length guidelines and help move details into the article's body. (October 2023)This article contains several patronymic names rather than family names. These persons are addressed by their given name, and not by their inherited name. Federal Democratic Republic of Ethiopiaየኢትዮጵያ ፌደራላዊ ዴሞክራሲ...

Sovereign state from 927 to 1707 For the country that is now part of the modern-day United Kingdom, see England. This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Kingdom of England – news · newspapers · books · scholar · JSTOR (March 2023) (Learn how and when to remove this template message) Kingdom of Englan...

Minivan by Kia Motor vehicle Kia CarnivalKia Carnival (KA4)OverviewManufacturerKiaAlso calledKia Sedona (1999–2021)ProductionSeptember 1998 – presentModel years2002–present (North America)Body and chassisClassMinivanBody style5-door minivanLayoutFront-engine, front-wheel-drive The Kia Carnival (Korean: 기아 카니발) is a minivan manufactured by Kia since 1998. It was marketed globally under various nameplates, prominently as the Kia Sedona. The first generation Carniv...

1965 studio album by Bobby VintonDrive-In Movie TimeStudio album by Bobby VintonReleased1965GenrePopLength30:35LabelEpicProducerBob MorganBobby Vinton chronology Bobby Vinton Sings for Lonely Nights(1965) Drive-In Movie Time(1965) Bobby Vinton Sings Satin Pillows and Careless(1966) Drive-In Movie Time: Bobby Vinton Sings Great Motion Picture Themes is Bobby Vinton's twelfth studio album, released by Epic Records. Consisting entirely of songs from films, it was recorded and released to...

Religion in Cambodia Religion in Cambodia (2019 World Factbook)[1]   Buddhism (97.1%)  Islam (2%)  Christianity (0.3%)  Other (0.5%) Buddhism is the state religion of Cambodia. Approximately 97% of Cambodia's population follows Theravada Buddhism, with Islam, Christianity, and tribal animism as well as Baha’i faith making up the bulk of the small remainder.[1][2] The wat (Buddhist monastery) and sangha (monkhood), together with...

Протекторат Бечуаналенд †англ. Bechuanaland Protectorate Одна из ранних марок протектората, 1897 (Sc #?). Надпечатка на марке Великобритании[^] Первые почтовые марки Стандартная 1888 Коммеморативная 1935 Доплатная 1926 Старинная английская карта протектората Бечуаналенд  Медиафайлы ...

Alive II Концертный альбом Kiss Дата выпуска 14 октября 1977 Дата записи апрель — сентябрь 1977 Жанры хард-рок глэм-рок хеви-метал Длительность 71:26 Продюсер Eddie Kramer Страна  США Язык песен английский Лейбл Casablanca Профессиональные рецензии Allmusic [1] Rolling Stone [2] Pitchfork Media [3]...

Consonantal sound represented by ⟨ʀ⟩ in IPA Uvular trill redirects here. For the voiceless consonant, see Voiceless uvular trill. Voiced uvular trillʀIPA Number123Audio sample source · helpEncodingEntity (decimal)ʀUnicode (hex)U+0280X-SAMPAR\Braille Image The voiced uvular trill is a type of consonantal sound, used in some spoken languages. The symbol in the International Phonetic Alphabet that represents this sound is ⟨ʀ⟩, a small capital version o...

Kembali kehalaman sebelumnya