Научная литература
booksshare.net -> Добавить материал -> Лингвистика -> Гольцова Е.В. -> "Английский язык для пользователей ПК и программистов" -> 35

Английский язык для пользователей ПК и программистов - Гольцова Е.В.

Гольцова Е.В. Английский язык для пользователей ПК и программистов — Спб.: Учитель и ученик, 2002. — 480 c.
ISBN 5-7931-0086-5
Скачать (прямая ссылка): englishdlyapolzpk2002.djvu
Предыдущая << 1 .. 29 30 31 32 33 34 < 35 > 36 37 38 39 40 41 .. 165 >> Следующая


Упражнение 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) существует даже гибкость в том, сколько

106 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 system 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 implemented in Windows NT. NT doesn't actually implement the Английский для пользователей ПК

I/O' protection on its own. Since the CPU can trap attempted I/O port access, NT depends on this feature. The first mechanism that must be understood is the privilege-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 privileged, 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-signifі cant bits of the CS (code segment) register.

Rather than statically defining which privilege levels can have I/O access, the CPU defines an I/O privilege 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 numerically 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 1O (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 mechanism. Determining if CPL>I0PL is the first step in the protection mechanism. I/O protection is not all-or-nothing. The processor uses a flexible mechanism that allows the operating system to grant direct access to any subset 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 whenever 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
Предыдущая << 1 .. 29 30 31 32 33 34 < 35 > 36 37 38 39 40 41 .. 165 >> Следующая

Реклама

c1c0fc952cf0704ad12d6af2ad3bf47e03017fed

Есть, чем поделиться? Отправьте
материал
нам
Авторские права © 2009 BooksShare.
Все права защищены.
Rambler's Top100

c1c0fc952cf0704ad12d6af2ad3bf47e03017fed