| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Can I have my IOPL segment as 32-bi |
Hello Mike!
Thus quoth Mike Bilow to Rinat Sadretdinow:
DE>> Nothing in OS/2 stops you from entering 32-bit segments and retaining
DE>> IOPL privileges after you went through a 16-bit ring-2 callgate. The
DE>> only problem is to set up or find a proper ring-2 32-bit code
DE>> selector, but it's possible - rest assured.
MB> Note that there is no way to make the necessary set up except from
MB> Ring 0, in which case all of this is pointless. Since OS/2 provides
MB> a facility for loading a 16-bit segment with IOPL, and for calling
MB> into such a 16-bit segment from a 32-bit segment, you should use the
MB> provided facilities.
I repeat: running code in a 32-bit segment with IOPL *is possible*, I have
working code here. There is *no setup from ring 0* needed to do this. And I
do 'dirty tricks' like these despite IBM's intentions, because running
32-bit code at ring 2 compiled and debugged by the same toolset as ordinary
ring 3 code sounds much more convenient and useful to me than using
assembler or an old fashioned 16-bit C compiler, not to mention not being
limited by a 16-bit environment. And it saves a lot of development time if
your only need is to access some IO ports but don't require interrupts or
DMAs. Once I had to implement a driver to a DSP coprocessor board; it was
finished after 2 hours using these techniques - I expect a much longer
development time if I had to implement a full device driver.
bye, Detlef
! mailto engert{at}ibm.net, 2:2490/2576.1{at}fidonet
--- Sqed/32 1.00/r00108
* Origin: Nachtigall/2, Nuernberg/Germany, +49-911-861319 (2:2490/2575.2)SEEN-BY: 50/99 78/0 270/101 620/243 711/401 409 410 413 430 808 809 934 955 SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809 @PATH: 2490/2575 2501 1050 1601 2444/4000 24/999 2/777 396/1 270/101 712/515 @PATH: 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.