TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Mike Bilow
from: Denis Tonn
date: 1996-06-05 13:57:00
subject: Toolkit 1.3 from Devcon

Original from  Mike Bilow  to Denis Tonn on 06-05-1996
Original Subject: Toolkit 1.3 from Devcon

                         ---------------------------------------

  DT>  It looks like under Warp GA it was still possible to
  DT> "commit" the "nothing" addresses between the first and
  DT> second page (using  DosSetMem).
  DT>  After Connect, it is now impossible. The addresses are
  DT> "nothing" and will stay that way. Connect has closed a
  DT> "hole". 
 
MB> As far as I know, Mario's quote from the docs is just plain wrong.  The 
MB> allocation of memory results in some kind of selector being 
MB> mapped, and that selector will have whatever length is 
MB> appropriate for the allocation, subject to 4 KB 
MB> granularity.  That is, if 1 byte is allocated, then the 
MB> selector is mapped to a 4 KB area of memory.  You cannot 
MB> then call DosSetMem() to commit more memory than the 
MB> allocated selector length under any version of OS/2.

 Hmm.. I have allocated an address range without commit, then 
committed the pages one at a time. The tiled selector was automaticly 
adjusted in it's limit after each commit. It has to do this for 16/32 
code compatability (the reason for the tiled selector in the LDT). 

 I never tried to do what I suspect the documentation is saying, IE: 
allocate a 4K page and then commit additional pages beyond the 
original allocation size. It will take some testing to prove it one 
way or another. 

 If you are interested, selector 7 is a readonly selector to the 
base address of the LDT, and if you map this address into a LDT struc
then you can "watch" the tiling process take place. 
 


   Denis       

 Certified OS/2 Engineer, Certified OS/2 Instructor, Certifiable....
 All opinions are my very own, IBM has no claim upon them
 
.
--- Maximus/2 3.01
* Origin: T-Board - (604) 591-8208 (1:153/908)
SEEN-BY: 50/99 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
@PATH: 153/908 8086 800 270/101 712/515 711/808 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™.