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 RayeR Homepage, CZ, 14.07.2011, 15:09

> > __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.

OK I understand. I didn't tried allocating mem between it.

What do you reccomend: should I better map let'say 64kB block and don't do the remapping or should I leave it as is when it's working. I would need to test it how it will behave with installed 4GB RAM when ACPI things will be probably close to 0xFFFFFFFF and mapping may roll over but when I will not read beyond...

---
DOS gives me freedom to unlimited HW access.

 

Complete thread:

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