Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update IVT when relocating inthandlers #55

Closed
stsp opened this issue Feb 4, 2019 · 1 comment
Closed

update IVT when relocating inthandlers #55

stsp opened this issue Feb 4, 2019 · 1 comment

Comments

@stsp
Copy link
Member

stsp commented Feb 4, 2019

When relocating the int handler, we need to update
IVT entry so that it always points to the handler, not
to PLT. This is needed so that the shared headers
can be added.
But first, it must be checked if its not the case already.

@stsp stsp closed this as completed in 3fc774e Feb 4, 2019
@stsp
Copy link
Member Author

stsp commented Feb 4, 2019

The idea of updating IVT didn't work: freedos
relocates to HMA after config.sys is processed
(to get the use of HMA driver, like ems.sys in
our case), which is too late. All loaded drivers have
remembered the int handler entries at that point.
So instead I added the shared headers right to
the relocation stubs.
You can now track the handlers (see int21/int2f
for instance) up to their HMA locations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant