Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Тексты(все).docx
Скачиваний:
4
Добавлен:
01.07.2025
Размер:
1 Мб
Скачать
☆

§3.1. Артиклем, как правило, не сопровождаются имена собственные:

Mary, John, Julius Caesar, Shakespeare, Pegasus (но the Gordons —

Гордоны как семья)

Russia, America (искл.: the Netherlands), Ukraine, Asia, Europe Moscow, London (искл.: the Hague), California, Ohio, Queen Street,

Venus, Mars,

Mount Vesuvius (если имя собственное стоит после собирательного назва­ния)

  1. Артикль также не ставится перед обращением:

Hi, friend! How are you?

  1. Артикль не ставится, когда обычным существительным даются временные имена или назначения, как, например, в диаграммах, записях суда и т. д.

Witness “A”, point Q, Column 2, part 365, Exhibit С.

Упражнение 6. Поставьте артикль там, где он нужен:

  1. Do you have match? match that you gave me didn’t light.

We’re having rice for dinner. There were books on the shelves.

There’s man waiting to see you. I told man waiting to see you to

come back tomorrow. I heard train approaching. train that I heard

approaching was going very fast.

  1. Prince of Wales; Prince Charles; Douglas Hall; Vatican;

sea of Azov; Potomac River; once month; President of

United States; __ President Bush; Witness Jones; chapter 2;

Упражнение 7. Поставьте артикли и переведите:

string “ABCDEDCBA” is palindrom because it is the same when

string is read from left to right as when string is read from right to

left. mirrored string is string for which when each of the elements

of string is changed to its reverse and string is read backwards

the result is the same as the original string. mirrored palindrome is

string that meets criteria of regular palindrome and crite­ria of mirrored string.

Лексика и чтение

Список слов к тексту урока

Прочтите вслух и допишите перевод однокоренных слов, используя знание суффиксов.

to figure out вычислять, постигать, разгадывать to trap захватывать to define определять

definition

defining

level уровень, степень

current ток; текущая запись, текущий

to store запоминать, хранить

storage

significant значительный, существенный

significance

value ценность, стоимость, оценка, значение free свободный, вольный, добровольный

freely

to set устанавливать, монтировать

set, subset

offset

flexible гибкий

flexibility

task задача

to accomplish совершать, выполнять, достигать

bitmask битовая маска

array матрица, массив, таблица

to correspond to... соответствовать, быть аналогичным чему-л.

particular специфический, особый, частный, детальный, тщательный

to encompass окружать, заключать

to hold удерживать; выполняться (об условии)

to provide обеспечивать, снабжать

to choose выбирать, избирать, предпочитать

to assume принимать (на себя); предполагать

permission разрешение

main главный, основной

integer целое число

Упражнение 8. Переведите следующие слова без словаря, а затем по словарю проверьте произношение:

to grant; code; segment; to determine; statically; to pack; to contain; location.

Упражнение 9. Вспомните перевод следующих служебных слов:

Always; one of these; rather than; against; through; less than; all-or-noth­ing; each; whenever; any; anywhere; therefore; which; within; by; for.

Упражнение 10. Переведите все формы неправильных глаголов и выучите их (см. Приложение 1 «Список неправильных глаголов»):

Начальная форма глагола

Настоящее время

Прошедшее

время

Причастие про­шедшего времени

Причастие насто­ящего времени

to understand

understand, understands

understood

understood

understanding

to go

go, goes

went

gone

going

to set

set, sets

set

set

setting

to choose

choose, shooses

chose

chosen

choosing

Упражнение 11. Переведите сказуемые (действия) из Текста, укажите вспомогательный глагол, поставьте глаголы в отрицательную, вопросительную формы, дописывая в послед­нюю соответствующее местоимение. (Если сказуемое состоит из нескольких компо­нентов, то первый и будет вспомогательным глаголом, а если из одного, то смотрим на конец слова: — суффикс -s — вспомогательный глагол does, суффикс нулевой — do, суффикс -ed — did):

have to understand

must be understood

are defined

uses

can trap

is

will (always) have

Остальные сказуемые в Тексте переводите по аналогии.

Упражнение 12. Артикль the ставится перед существительным, которое определено порядковым числительным (первый, второй...) или превосходной степенью прилагательного (самый, наиболее, наименее), что тоже является своего рода идентификацией уникальности объекта. Найдите такие примеры в Тексте урока и подчеркните всё словосочетание от артикля до существительного, к которому артикль относится.

Упражнение 13. Вставьте пропущенные артикли, анализируя употребление слов вспоминая соответствующее правило. Проверьте себя по Тексту урока. Если вы допустили ошибки, проанализируйте употребление артиклей уже по Тексту:

То figure out how to grant I/O access to user mode app, you have

to understand how I/O protection is implemented in Windows NT. NT

doesn’t actually implement I/O protection on its own. Since CPU

can trap attempted I/O port access, NT depends on this feature. first

mechanism that must be understood is privilege-level system used

by 80x86 processors.

current privilege level of processor is stored in two least-

significant bits of CS (code segment) register.

CPU accomplishes this by using bitmask array, where each bit

corresponds to port. If bit is 1, access is disallowed and

exception occurs whenever access to corresponding port is attempted.

Упражнение 14. Подчеркните слово, к которому относится артикль, и переведите словосочетание, начиная с артикля:

... defines an I/O privilege level (IOPL) value, which is...

...in two bits of the processor’s EFLAGS register.

... I/O ports on a task-by-task basis.

Tlie I/O address space of processors...

Уражнение IS. Просмотрите Текст, подчеркните и отметьте в нем соответствующими цифрами перевод следующих словосочетаний, которые могут использоваться в профессиональном разговоре:

  1. сам по себе

  2. попытка обращения к порту ввода/вывода

  3. для полного доступа в режиме ядра

  4. текущий уровень привилегий

  5. в числовом отношении больше

  6. при совершении попытки обращения к порту

  7. обращение к порту в пользовательском режиме

  8. достигает этого, используя

  9. исключительная ситуация возникает

  10. когда бы ни предпринималась попытка обращения к соответству­ющему порту

  11. длиной 8192 байт

  12. существует даже гибкость в том, сколько

  13. вы можете выбрать, не предоставлять

  14. массив, называемый

  15. в специальном сегменте, на который ссылается селектор сегмента

Упражнение 16. Теперь вы можете сказать по-английски следующие словосочетания. Не забывайте о правилах использования артиклей и предлогов:

Он не может работать сам по себе; в числовом отношении больше, чем... ; они провалились (failed), когда пытались (при совершении попытки) сделать это; они достигают этого, используя последние достижения; исключительная ситуация возникает всегда, когда бы ни предпринимался доступ; у вас есть выбор, не делать этого; для некоторых людей жизнь могла бы (could) быть такой легкой без машины, называемой PC.

Упражнение 17. Подчеркните в предложениях сказуемые (действия) и подлежащие (то, о чем идет речь в предложении). Переведите предложения.

То figure out how to grant I/O access to a user mode app, you have to understand how I/O protection is implemented in Windows NT.

The first mechanism that must be understood is the privilege-level sys­tem used by the 80x86 processors Text.

Rather than statically defining which privilege levels can have access, the CPU defines an I/O privilege level value, which is compared against the CPL to determine if I/O instructions can be used freely.

Because the IOPL cannot be less than 0, programs running at privilege level 0(like kernel-mode device drivers) will always have direct port I/O access.

Any part of the bitmask that you do not provide is assumed to be 1, and therefore access is not granted to those ports.

Теперь вы можете прочесть Текст, хорошо понимая его.

Text

Accomplishing I/O Protection in NT To figure out how to grant I/O access to a user mode app, you have to understand how I/O protection is imple­mented in Windows NT. NT doesn't actually implement the

I/O' protection on its own. Since the CPU can trap at­tempted I/O port access, NT depends on this feature. The first mechanism that must be understood is the privi­lege-level system used by the 80x86 processors. Four privileged levels are defined by the processor - 0, 1, 2, and 3 - and the CPU always operates at one of these levels. The most privileged level is 0; the least privi­leged, 3. NT uses only levels 0 and 3. Privilege level 0 is used for the full-access kernel mode and 3 for the more-restrictive user mode. The current privilege level (CPL) of the processor is stored in the two least- significant bits of the CS (code segment) register.

Rather than statically defining which privilege lev­els can have I/O access, the CPU defines an I/O privi­lege level (IOPL) value, which is compared against the CPL to determine if I/O instructions can be used freely. The IOPL is stored in two bits, of the processor's EFLAGS register. Any process with a CPL that is numeri­cally greater than the IOPL must go through the I/O protection mechanism when attempting port I/O access. Because the IOPL cannot be less than 0, programs running at privilege level '0 (like kernel-mode device drivers) will always have direct port I/O access. NT sets the IOPL to 0. User-mode code always has a CPL of 3, which is larger than the IOPL. Therefore, user-mode port I/O access attempts must go through the protection mecha­nism. Determining if CPL>IOPL is the first step in the protection mechanism. I/O protection is not all-or-noth­ing. The processor uses a flexible mechanism that allows the operating system to grant direct access to any sub­set of I/O ports on a task-by-task basis.

The CPU accomplishes this by using a bitmask array, where each bit corresponds to an I/O port. If the bit is a 1, access is disallowed and an exception occurs when­ever access to the corresponding port is attempted. If the bit is a 0, direct and unhampered access is granted to that particular port. The I/O address space of the 80x86 processors encompasses 65,536 8-bit ports. The bitmask array is 8192 (0x2000) bytes long, since the bitmask array is packed so that each byte holds eight bits of the array. There is even flexibility in how much of the bitmask array must be provided. You can provide anywhere from 0 to the full 8192 bytes of the table. The

table always starts from I/O address 0, but you can choose not to provide the bitmask for upper I/O address­es. Any part of the bitmask that you do'not provide is assumed to be 1, and therefore, access is not granted to those ports.

The bitmask array, called the I/O Permission bit Map (IOPM), is stored in the Task State Segment (TSS) struc­ture in main memory, which is contained in a special, segment referenced by the segment selector in the proc­essor' s Task Register (TR) . The location of the IOPM within the TSS is flexible. The offset of the IOPM within the TSS is stored in a 2-byte integer at location 0x66 in the TSS.

Упражнение 18. Вы внимательно читали Тексты (урок 5 и 6)? Можете ли теперь расшифровать сокращения?

DDK; CPL; CS; IOPL; TSS; TR; IOPM;

Упражнение 19. Переведите:

Listing Three

/‘From inspection of the TSS we know that NT’s default IOPM offset is 0x20AD.

From an inspection of a dump of a process structure, we can find the bytes ‘AD 20’ at offset 0x30. This is where NT stores the IOPM offset for each process, so that I/O access can be granted on a process-by- process basis.

This portion of the process structure is not documented in the DDK.

This kernel mode driver fragment illustrates the brute force method of poking the IOPM base into the process structure. */ void GivelO()

{

char*CurProc;

CurProc = loGetCurrentProcess();

((USHORT)(CurProc + 0x30)) = 0x88

Грамматика

Существительные с предлогами

Грамматика этого урока разнообразия ради рассчитана только на запомина­ние.

Фиксированные сочетания предлогов с существительными надо учить наи­зусть. Их правильное употребление в устной и письменной речи — хороший тон.

Как мы уже поняли, служебные слова крайне важны в английском, предлоги в частности. Есть два момента, которые надо помнить, имея дело с английским су­ществительным:

  1. С существительными надо употреблять правильные предлоги.

  2. Знать точное расположение предлогов — до или после существительного.