Open karcherm opened 2 years ago
Hi, thanks for the info. I haven't looked at this in a very long time. Is the existing pushf/cli/popf just redundant then? Is there a bug in the code as is? Cheers
It's just redundant. Your code works fine as it is now.
I was looking at port trapping in DOS in general, and SoftMPU came up quite high in Google as an open-source project on how to it with QEMM as well as EMM386. To be frank: the patch is more to "clean up code that might be use as reference code for QPI port trapping" than to improve stability, functionality or user experience of SoftMPU. Thus feel free to reject the pull request if you rather keep the known working state.
The QEMM QPI specification explicitly states that the handler is entered with interrupts disabled (and the original IF by the caller is passed as bit 9 in CX). This is the relevant snippet of the documentation: