MSDOS Error Table Handling

Ove Kaaven ovehk at ping.uio.no
Sat Jan 5 16:29:33 CST 2002


On Sat, 5 Jan 2002 ccrayne at crayne.org wrote:

> That being the case, what do you think about removing the
> DOSMEM_InitErrorTable function entirely, and letting int2f funcion 0x122e
> subfunction 8 allocate the RMCB, and the associated real mode message
> buffer, the first time it is called? 

Well, while good in theory, it won't currently always work too well with
the current implementation, because DPMI_AllocRMCB allocates memory
directly from the DOS memory pool, not from memory reserved for DPMI,
which means that most executables, e.g. command.com, which by default
allocate *all* available DOS memory, will cause such a DOS memory
allocation to fail. So stuff like that must probably either be initialized
before the executable is loaded, or DPMI must reserve some DOS memory for
itself which it can allocate RMCBs from. (The latter may be a good idea
anyway, it may even be in the DPMI spec)





More information about the wine-devel mailing list