Главная » Просмотр файлов » Volume 3 General-Purpose and System Instructions

Volume 3 General-Purpose and System Instructions (794097), страница 47

Файл №794097 Volume 3 General-Purpose and System Instructions (Intel and AMD manuals) 47 страницаVolume 3 General-Purpose and System Instructions (794097) страница 472019-04-28СтудИзба
Просмтор этого файла доступен только зарегистрированным пользователям. Но у нас супер быстрая регистрация: достаточно только электронной почты!

Текст из файла (страница 47)

The pseudo-descriptor is a memory location containing the GDTR base and limit. In legacyand compatibility mode, the pseudo-descriptor is 6 bytes; in 64-bit mode, it is 10 bytes.If the operand size is 16 bits, the high-order byte of the 6-byte pseudo-descriptor is not used.

The lowertwo bytes specify the 16-bit limit and the third, fourth, and fifth bytes specify the 24-bit base address.The high-order byte of the GDTR is filled with zeros.If the operand size is 32 bits, the lower two bytes specify the 16-bit limit and the upper four bytesspecify a 32-bit base address.In 64-bit mode, the lower two bytes specify the 16-bit limit and the upper eight bytes specify a 64-bitbase address. In 64-bit mode, operand-size prefixes are ignored and the operand size is forced to 64bits; therefore, the pseudo-descriptor is always 10 bytes.This instruction is only used in operating system software and must be executed at CPL 0. It istypically executed once in real mode to initialize the processor before switching to protected mode.LGDT is a serializing instruction.MnemonicOpcodeDescriptionLGDT mem16:320F 01 /2Loads mem16:32 into the global descriptor table register.LGDT mem16:640F 01 /2Loads mem16:64 into the global descriptor table register.Related InstructionsLIDT, LLDT, LTR, SGDT, SIDT, SLDT, STRrFLAGS AffectedNoneExceptionsExceptionVirtualReal 8086 ProtectedInvalid opcode, #UDXStack, #SSXInstruction ReferenceXCause of ExceptionXThe operand was a register.XA memory address exceeded the stack segment limit or wasnon-canonical.LGDT273AMD64 TechnologyException24594—Rev.

3.13—July 2007VirtualReal 8086 ProtectedXGeneral protection,#GPPage fault, #PF274XCause of ExceptionXA memory address exceeded the data segment limit or wasnon-canonical.XCPL was not 0.XThe new GDT base address was non-canonical.XA null data segment was used to reference memory.XA page fault resulted from the execution of the instruction.LGDTInstruction Reference24594—Rev. 3.13—July 2007AMD64 TechnologyLIDTLoad Interrupt Descriptor Table RegisterLoads the pseudo-descriptor specified by the source operand into the interrupt descriptor table register(IDTR). The pseudo-descriptor is a memory location containing the IDTR base and limit. In legacyand compatibility mode, the pseudo-descriptor is six bytes; in 64-bit mode, it is 10 bytes.If the operand size is 16 bits, the high-order byte of the 6-byte pseudo-descriptor is not used. The lowertwo bytes specify the 16-bit limit and the third, fourth, and fifth bytes specify the 24-bit base address.The high-order byte of the IDTR is filled with zeros.If the operand size is 32 bits, the lower two bytes specify the 16-bit limit and the upper four bytesspecify a 32-bit base address.In 64-bit mode, the lower two bytes specify the 16-bit limit, and the upper eight bytes specify a 64-bitbase address.

In 64-bit mode, operand-size prefixes are ignored and the operand size is forced to 64bits; therefore, the pseudo-descriptor is always 10 bytes.This instruction is only used in operating system software and must be executed at CPL 0. It isnormally executed once in real mode to initialize the processor before switching to protected mode.LIDT is a serializing instruction.MnemonicOpcodeDescriptionLIDT mem16:320F 01 /3Loads mem16:32 into the interrupt descriptor table register.LIDT mem16:640F 01 /3Loads mem16:64 into the interrupt descriptor table register.Related InstructionsLGDT, LLDT, LTR, SGDT, SIDT, SLDT, STRrFLAGS AffectedNoneExceptionsExceptionVirtualReal 8086 ProtectedInvalid opcode, #UDXStack, #SSXInstruction ReferenceXCause of ExceptionXThe operand was a register.XA memory address exceeded the stack segment limit or wasnon-canonical.LIDT275AMD64 TechnologyException24594—Rev.

3.13—July 2007VirtualReal 8086 ProtectedXGeneral protection,#GPPage fault, #PF276XCause of ExceptionXA memory address exceeded the data segment limit or wasnon-canonical.XCPL was not 0.XThe new IDT base address was non-canonical.XA null data segment was used to reference memory.XA page fault resulted from the execution of the instruction.LIDTInstruction Reference24594—Rev. 3.13—July 2007AMD64 TechnologyLLDTLoad Local Descriptor Table RegisterLoads the specified segment selector into the visible portion of the local descriptor table (LDT). Theprocessor uses the selector to locate the descriptor for the LDT in the global descriptor table.

It thenloads this descriptor into the hidden portion of the LDTR.If the source operand is a null selector, the LDTR is marked invalid and all references to descriptors inthe LDT will generate a general protection exception (#GP), except for the LAR, VERR, VERW orLSL instructions.In legacy and compatibility modes, the LDT descriptor is 8 bytes long and contains a 32-bit baseaddress.In 64-bit mode, the LDT descriptor is 16-bytes long and contains a 64-bit base address. The LDTdescriptor type (02h) is redefined in 64-bit mode for use as the 16-byte LDT descriptor.This instruction must be executed in protected mode. It is only provided for use by operating systemsoftware at CPL 0.LLDT is a serializing instruction.MnemonicOpcodeLLDTreg/mem16DescriptionLoad the 16-bit segment selector into the local descriptortable register and load the LDT descriptor from the GDT.0F 00 /2Related InstructionsLGDT, LIDT, LTR, SGDT, SIDT, SLDT, STRrFLAGS AffectedNoneExceptionsExceptionVirtualReal 8086 ProtectedInvalid opcode, #UDXXCause of ExceptionThis instruction is only recognized in protected mode.Segment not present,#NP (selector)XThe LDT descriptor was marked not present.Stack, #SSXA memory address exceeded the stack segment limit or wasnon-canonical.XA memory address exceeded a data segment limit or wasnon-canonical.XCPL was not 0.XA null data segment was used to reference memory.General protection,#GPInstruction ReferenceLLDT277AMD64 TechnologyExceptionGeneral protection,#GP(selector)Page fault, #PF27824594—Rev.

3.13—July 2007VirtualReal 8086 ProtectedCause of ExceptionXThe source selector did not point into the GDT.XThe descriptor was beyond the GDT limit.XThe descriptor was not an LDT descriptor.XThe descriptor's extended attribute bits were not zero in 64bit mode.XThe new LDT base address was non-canonical.XA page fault resulted from the execution of the instruction.LLDTInstruction Reference24594—Rev. 3.13—July 2007AMD64 TechnologyLMSWLoad Machine Status WordLoads the lower four bits of the 16-bit register or memory operand into bits 3–0 of the machine statusword in register CR0. Only the protection enabled (PE), monitor coprocessor (MP), emulation (EM),and task switched (TS) bits of CR0 are modified.

Additionally, LMSW can set CR0.PE, but cannotclear it.The LMSW instruction can be used only when the current privilege level is 0. It is only provided forcompatibility with early processors.Use the MOV CR0 instruction to load all 32 or 64 bits of CR0.MnemonicOpcodeLMSW reg/mem16DescriptionLoad the lower 4 bits of the source into the lower 4 bits ofCR0.0F 01 /6Related InstructionsMOV (CRn), SMSWrFLAGS AffectedNoneExceptionsExceptionStack, #SSVirtualReal 8086 ProtectedCause of ExceptionXXA memory address exceeded the stack segment limit or wasnon-canonical.XXA memory address exceeded a data segment limit or was noncanonical.XCPL was not 0.XA null data segment was used to reference memory.XA page fault resulted from the execution of the instruction.General protection,#GPPage fault, #PFInstruction ReferenceXLMSW279AMD64 Technology24594—Rev.

3.13—July 2007LSLLoad Segment LimitLoads the segment limit from the segment descriptor specified by a 16-bit source register or memoryoperand into a specified 16-bit, 32-bit, or 64-bit general-purpose register and sets the zero (ZF) flag inthe rFLAGS register if successful. LSL clears the zero flag if the descriptor is invalid for any reason.In 64-bit mode, for both 32-bit and 64-bit operand sizes, 32-bit register results are zero-extended to 64bits.The LSL instruction checks that:••the segment selector is not a null selector.the descriptor is within the GDT or LDT limit.•the descriptor DPL is greater than or equal to both the CPL and RPL, or the segment is a conforming code segment.the descriptor type is valid for the LAR instruction.

Характеристики

Тип файла
PDF-файл
Размер
1,98 Mb
Материал
Тип материала
Высшее учебное заведение

Список файлов книги

Свежие статьи
Популярно сейчас
Как Вы думаете, сколько людей до Вас делали точно такое же задание? 99% студентов выполняют точно такие же задания, как и их предшественники год назад. Найдите нужный учебный материал на СтудИзбе!
Ответы на популярные вопросы
Да! Наши авторы собирают и выкладывают те работы, которые сдаются в Вашем учебном заведении ежегодно и уже проверены преподавателями.
Да! У нас любой человек может выложить любую учебную работу и зарабатывать на её продажах! Но каждый учебный материал публикуется только после тщательной проверки администрацией.
Вернём деньги! А если быть более точными, то автору даётся немного времени на исправление, а если не исправит или выйдет время, то вернём деньги в полном объёме!
Да! На равне с готовыми студенческими работами у нас продаются услуги. Цены на услуги видны сразу, то есть Вам нужно только указать параметры и сразу можно оплачивать.
Отзывы студентов
Ставлю 10/10
Все нравится, очень удобный сайт, помогает в учебе. Кроме этого, можно заработать самому, выставляя готовые учебные материалы на продажу здесь. Рейтинги и отзывы на преподавателей очень помогают сориентироваться в начале нового семестра. Спасибо за такую функцию. Ставлю максимальную оценку.
Лучшая платформа для успешной сдачи сессии
Познакомился со СтудИзбой благодаря своему другу, очень нравится интерфейс, количество доступных файлов, цена, в общем, все прекрасно. Даже сам продаю какие-то свои работы.
Студизба ван лав ❤
Очень офигенный сайт для студентов. Много полезных учебных материалов. Пользуюсь студизбой с октября 2021 года. Серьёзных нареканий нет. Хотелось бы, что бы ввели подписочную модель и сделали материалы дешевле 300 рублей в рамках подписки бесплатными.
Отличный сайт
Лично меня всё устраивает - и покупка, и продажа; и цены, и возможность предпросмотра куска файла, и обилие бесплатных файлов (в подборках по авторам, читай, ВУЗам и факультетам). Есть определённые баги, но всё решаемо, да и администраторы реагируют в течение суток.
Маленький отзыв о большом помощнике!
Студизба спасает в те моменты, когда сроки горят, а работ накопилось достаточно. Довольно удобный сайт с простой навигацией и огромным количеством материалов.
Студ. Изба как крупнейший сборник работ для студентов
Тут дофига бывает всего полезного. Печально, что бывают предметы по которым даже одного бесплатного решения нет, но это скорее вопрос к студентам. В остальном всё здорово.
Спасательный островок
Если уже не успеваешь разобраться или застрял на каком-то задание поможет тебе быстро и недорого решить твою проблему.
Всё и так отлично
Всё очень удобно. Особенно круто, что есть система бонусов и можно выводить остатки денег. Очень много качественных бесплатных файлов.
Отзыв о системе "Студизба"
Отличная платформа для распространения работ, востребованных студентами. Хорошо налаженная и качественная работа сайта, огромная база заданий и аудитория.
Отличный помощник
Отличный сайт с кучей полезных файлов, позволяющий найти много методичек / учебников / отзывов о вузах и преподователях.
Отлично помогает студентам в любой момент для решения трудных и незамедлительных задач
Хотелось бы больше конкретной информации о преподавателях. А так в принципе хороший сайт, всегда им пользуюсь и ни разу не было желания прекратить. Хороший сайт для помощи студентам, удобный и приятный интерфейс. Из недостатков можно выделить только отсутствия небольшого количества файлов.
Спасибо за шикарный сайт
Великолепный сайт на котором студент за не большие деньги может найти помощь с дз, проектами курсовыми, лабораторными, а также узнать отзывы на преподавателей и бесплатно скачать пособия.
Популярные преподаватели
Добавляйте материалы
и зарабатывайте!
Продажи идут автоматически
6417
Авторов
на СтудИзбе
307
Средний доход
с одного платного файла
Обучение Подробнее