21.01.2015 Views

INtime® 3.1 Software - tenAsys

INtime® 3.1 Software - tenAsys

INtime® 3.1 Software - tenAsys

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 2: Understanding INtime software architecture<br />

Figure 2-5. Encapsulating Windows processes and threads into an RT thread<br />

Win32 threads<br />

RT threads<br />

Win32 subsystem<br />

RT API<br />

User mode - Ring 3<br />

Kernel mode - Ring 0<br />

highest<br />

Windows executive<br />

Windows kernel<br />

Windows HAL<br />

Device drivers/ISRs<br />

lowest<br />

Windows<br />

priorities<br />

Windows hardware task<br />

highest<br />

RT kernel<br />

lowest<br />

RT priorities<br />

RT hardware task<br />

When an interrupt occurs, the INtime runtime environment responds in one of<br />

these ways:<br />

Interrupt type Windows in control RT in control Shared control<br />

Windows Windows maintains control. RT maintains control. RT determines whether to maintain<br />

or relinquish control.<br />

RT<br />

RT takes control, pre-empting<br />

Windows activity.<br />

RT maintains control. RT maintains control.<br />

How the RT interface driver works<br />

Intel<br />

architecture<br />

CPU<br />

RTIF.SYS is a Windows device driver that provides centralized support for the OS<br />

encapsulation mechanism (OSEM). The RT Interface Driver facilitates communications<br />

between RT kernel threads and Windows threads.<br />

The RTIF driver begins execution as a Windows system service, early in the Windows<br />

boot process. During initialization, it allocates physically contiguous memory for the RT<br />

kernel’s memory pool.<br />

21

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!