26.05.2012 16:48, Bart Oldeman wrote: > functions as follows: > > in prepare_ems_frame: > > static const u_short unmap[] = {0xffff, 0, 0xffff, 1, 0xffff, 2, 0xffff, > 3}; > if (MSDOS_CLIENT.ems_map_buffer == NULL) > MSDOS_CLIENT.ems_map_buffer = malloc(emm_get_size_for_page_map()); You need 4 pages, not emm_get_size_for_page_map() (which could even be less that 4 if you do the wrong setup). Of course you can still use "Get Partial Page Map" function, if you _really_ want to do that without allocating a handle. That should mostly be fine, but I find it a waste of time, especially because the EMS spec is talking about TSRs a lot itself. So allocating a few handles for TSR is a very very valid thing to do, is recommended by the specs, what's the use looking for the workarounds? Anyway, I won't argue against the Get Partial Page Map way.
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Dosemu-devel mailing list Dosemu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dosemu-devel