Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

DJGPP - Mapping small blocks of physmem beyond 1MB - __dpmi? (Developers)

posted by Japheth Homepage, Germany (South), 14.07.2011, 09:15

> __dpmi_physical_address_mapping() but I read this function has some
> limits like minimum size should be 4kB and in multiple of 4kB blocks

> BTW why __dpmi_physical_address_mapping() needs size
> paramerer at all?

Because it consumes resources - linear address space and physical memory for page table entries. The larger the size, the more of these resources are needed.

> I checked that meminfo.address didn't changed when I
> changed the size and call __dpmi_physical_address_mapping() again...

Perhaps this will change if you do call int 31h, ax=0501h ( allocate memory ) between those calls?

---
MS-DOS forever!

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 185 users online (0 registered, 185 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum